Open ahamaline opened 11 months ago
Thank you for sharing your experience with Cygwin.
It sounds like a defect on apt-cyg
not to install necessary dependencies (https://github.com/transcode-open/apt-cyg/issues/110) and you may need to install a fork (here or others), but your solution may be useful for other Cygwin users.
I tested that apt-cyg
command only install targeted single package, without checking dependencies(Not like pacman
in msys2 and it literaly cause me LOTS OF DAMAGE on installing X11 etc.). If any required reliable packages is needed for the toolchain may to re-run the Cygwin installer setup-x86_64.exe
and install it will do.
I am still not sure which apt-cyg
you guys are using, but I have tried Cygwin and a version of apt-cyg
in Windows Sandbox. It seems working well.
The apt-cyg
was installed (for temporary testing) by
curl https://github.com/kou1okada/apt-cyg/archive/refs/heads/master.tar.gz | tar xz
ln -s "$(realpath apt-cyg-master/apt-cyg)" /usr/local/bin/
and I had to install libiconv
and wget
to use apt-cyg
.
That being said, I agree that using setup-x86_64.exe
is the safest way to install the required packages.
In the Wiki page on installation, the command to install required packages in Cygwin is given as
apt-cyg install gcc-g++ libgmp-devel make ruby zlib-devel
. But after running this, the.\configure
command failed for me in two ways, due to missing or incompatible packages.First, I got the error message "no acceptable C compiler found in $PATH", which I fixed using
apt-cyg install gcc-core
.Then I got the error message " C compiler cannot create executables. See `config.log' for more details". In the logfile I found the error message "error while loading shared libraries: cygmpc-3.dll: cannot open shared object file: No such file or directory". Google told me that cygmpc-3.dll is part of libgmp. So it seems that libgmp-devel, the version recommended in the wiki, is not compatible with something. I reran the Cygwin installer and included all of the available variations of libgmp, and sure enough that solved the problem. But I don't know which is the one that worked...
Happily my build works now. I am sharing this info for others and so the instructions may be corrected.
In case it is relevant, I am using Cygwin installed without admin rights, as described here.