-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cygwin re-installed #719
Comments
Hi @FeodorFitsner , It that a script available for users ? |
I put script here for mostly "internal" purposes, but also some people could re-use the same approach for other software. |
@FeodorFitsner FWIW, these packages are very old and were recently removed from Cygwin. The replacements are the mingw-w64-XXX packages, which can target either 32-bit or 64-bit. |
Thank you, will take a look. |
What would be an updated installation command then? |
I typically just install the
I think the corresponding MinGW-w64 content is all installed by installing the I spent a few minutes poking at the Cygwin package database, in INI file format, because I couldn't find a web interface. There are no packages that start with If you wanted to be explicit, then I think the closest analogues are:
When I tested the MSYS2 package list, it also installed compilers for Fortran, Ada, and Objective-C. I'm guessing we aren't that interested in those languages. I didn't see a toplevel package that included them. |
I'm doing a clean install and I don't get an error while trying to install
Looks like those |
AFACT, the Cygwin installer doesn't complain if -P names a non-existent package. I ran the installer with That said, I did notice that the http://cygwin.mirror.constant.com mirror still has the packages for those files at http://cygwin.mirror.constant.com/x86_64/release/mingw-runtime/. The corresponding directory on the http://mirrors.kernel.org/sourceware/cygwin mirror, on the other hand, is missing. The two mirrors do have the same In the package selection page of the Cygwin installer, there are no packages starting with |
OK, thank you for your suggestions! After writing a parser to get dependencies in that ini file I've figured out that cygwin thing 😄 We, basically, need only these 2 packages:
and we're going to leave that random stuff:
So, updated installer code would look like this: Write-Host "Installing Cygwin x86..." -ForegroundColor Cyan
if(Test-Path C:\cygwin) {
Write-Host "Deleting existing installation..."
Remove-Item C:\cygwin -Recurse -Force
}
# download installer
New-Item -Path C:\cygwin -ItemType Directory -Force
$exePath = "C:\cygwin\setup-x86.exe"
(New-Object Net.WebClient).DownloadFile('https://cygwin.com/setup-x86.exe', $exePath)
# install cygwin
cmd /c start /wait $exePath -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P mingw64-i686-gcc-g++ -P mingw64-x86_64-gcc-g++ -P gcc-g++ -P autoconf -P automake -P bison -P libtool -P make -P python -P gettext-devel -P intltool -P libiconv -P pkg-config -P wget -P curl
Write-Host "Installed Cygwin x86" -ForegroundColor Green EDIT: Sorry, forgot to add their |
Installation script:
The text was updated successfully, but these errors were encountered: