Installing "gnatmake" for Cygwin - cygwin

How do I install gnatmake on Cygwin? There is no Cygwin package by that name... Is it a part of any other package? I read here, that GNAT is now part of the GCC... So what do I do?

Related

When I'm trying to ./configure qbittorrent it says couldn't find qmake but I already have qmake

Okay so I'm trying to install qbittorrent on my linux. I installed pkg-config I installed libtorrent and then I wrote ./configure on the terminal and it says
checking for Qt5 qmake >= 5.5.1... not found
configure: error: Could not find qmake
but I already have it installed. I reinstalled it 4-5 times but nothing changed.
And when I wrote QTDIR=/usr/share/qt5 qmake --version
to the terminal it says QMake version 3.1
Using Qt version 5.9.2 in /usr/lib/x86_64-linux-gnu
so it's not about me using an older version of qmake it's late latest one.

Cygwin and "failed to run aclocal: No such file or directory"

I'm trying to test our Autotools stuff on Cygwin. When I open a prompt:
$ autoreconf --install --force
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf-2.69: failed to run aclocal: No such file or directory
I re-ran the Cygwin package manager and verified autoconf, automake and libtool were installed. There is no package aclocal to install.
Searching is not returning useful hits in the context of Cygwin.
What is the problem, and how do I fix it?
So it looks like it is not enough to install Autoconf 2.69, Automake 1.15 and Libtool. There are other packages that need to be installed, but Cygwin does not install them.
First, I needed the package called automake: wrapper for multiple versions of Automake. Second, I needed the package called libtool: generic library support script.
The package called autoconf: wrapper for multiple versions of Autoconf was already installed, so it did not need to be installed.
If the Autools package needs them, then it should probably install them when users select packages like Autoconf 2.69 and Automake 1.15.

Fedora - Reinstalling GMP with C++ support

I'm trying to install a library that uses gmp and am running the ./configure on it.
So far, I've gotten past several snags, such as requiring gcc, g++, and m4 by using:
yum install gcc
yum install gcc-g++
yum install m4
Now I'm getting this error:
checking for the GMP library version 4.1.3 or above... no
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.
As such, I tried both installing and updating gmp using yum:
yum install gmp
yum update gmp
Install tells me it's already installed and is v. 5.1.2
Updating says there's nothing to update.
I went to the gmp site and it is currently v. 6.0.0
I downloaded it and ran configure (using --enable-cxx), make, and make install.
Yet, nothing has changed. It still says I have v. 5.1.2 and the configure for the library still says it can't find 4.1.3 and above / try enabling c++.
The gmp files (such as gmp.h) are being placed in /usr/local/lib and /include
I've been at this for hours without any progress. I'm rather new to linux so I imagine there's something I just don't know about.
Am I not installing 6.0.0 correctly to overwrite the already installed one?
Or is there a way to reinstall the original with the c++ option?
Any help would be appreciated. Thanks.
dnf install gmp-devel resolved this for me on rhel
When you manually install something, as you have, it doesn't get installed in the normal /usr/lib directory and therefore it doesn't overwrite it. This is a good thing. In general, you shouldn't mess with files installed by the package manager. (Except in the case that they are config files that are meant to be edited.)
When you install manually, it is installed to /usr/local/lib. Fortunately, GCC and other compilers don't care which directory something is installed in, they will find it (when it's in standard places like /usr/* or /usr/local/*).
Just include the C++ header and add the correct -l library flag.
I figured it out.
Under the --help section of the ./configure for the library I was trying to install, there was actually a feature just for this:
--with-gmp-include=DIR
--with-gmp-lib=DIR
Using these, I was able to get it to install.
Thanks for the help.
I think I was too focused on trying to update the system install of gmp.

cygwin newbie compiling and running c program files

I just installed cygwin, latest version. wanted to compile and run a simple file. when i open cygwin terminal and type any of the commands :gcc,cc,g++ it says command not found. what am I missing here
You're missing the gcc, cc, and g++ commands.
Not all packages are installed by default. You need to run setup.exe again and select gcc and gcc-g++ for installation. You'll find them under the Devel (development) category.

Formats Error (could not find ldd binary)!

I'm using CentOS5 and trying to install a script that requires ldd.
I've tried:
yum install gcc glibc glibc-common
yum update gcc glibc glibc-common
Yum reinstall yum gcc glibc glibc-common
The first two say it's already installed, the latter obviously just reinstalls without error.
So my problem is the script I'm using (AVS) still claims the ldd binary is missing.
Is there a default directory where it should be installed? I have the following files:
ld
ldd
lddlibc4
In both /usr/bin and /usr/local/bin
Any help is greatly appreciated.
ldd is not a binary, it is a Text file, with bash script inside. You should debug your script (AVS) or contact with its author.
You may have removed ldd executable manually and yum/rpm can not detect that. You can download the "glibc-common" rpm package from some mirror and reinstall it by force.

Resources