Skip to content
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

Installing specific version of the #83

Open
sskras opened this issue Dec 26, 2021 · 2 comments
Open

Installing specific version of the #83

sskras opened this issue Dec 26, 2021 · 2 comments

Comments

@sskras
Copy link

sskras commented Dec 26, 2021

I am trying to install gcc:

$ cygcheck -p bin/gcc
Found 10 matches for bin/gcc
gcc-core-10.2.0-1 - gcc-core: GNU Compiler Collection (C, OpenMP)
gcc-core-11.2.0-0 - gcc-core: GNU Compiler Collection (C, OpenMP)
gcc-core-11.2.0-1 - gcc-core: GNU Compiler Collection (C, OpenMP)
gcc-core-7.4.0-1 - gcc-core: GNU Compiler Collection (C, OpenMP)
gcc-core-9.3.0-2 - gcc-core: GNU Compiler Collection (C, OpenMP)
gcc-debuginfo-10.2.0-1 - gcc-debuginfo: Debug info for gcc
gcc-debuginfo-7.4.0-1 - gcc-debuginfo: Debug info for gcc
gcc-debuginfo-9.3.0-2 - gcc-debuginfo: Debug info for gcc
gccmakedep-1.0.2-1 - gccmakedep: X Makefile dependency tool for GCC (installed binaries and support files)
gccmakedep-1.0.3-1 - gccmakedep: X Makefile dependency tool for GCC (installed binaries and support files)

So I try to put the whole name into command line:

$ apt-cyg install gcc-core-10.2.0-1 2>&1 | tail
gpg: Signature made Fri Dec 24 15:52:56 2021 EET using RSA key ID E2E56300
gpg: Good signature from "Cygwin <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5640 5CF6 FCC8 1574 682A  5D56 1A69 8DE9 E2E5 6300
signature verified: setup.ini.sig
Updated setup.ini

Installing gcc-core-10.2.0-1
Package gcc-core-10.2.0-1 not found or ambiguous name, exiting

As the format seems to be wrong, I try another format -- now using = before the version:

$ apt-cyg install gcc-core=10.2.0-1 2>&1 | tail
gpg: Signature made Fri Dec 24 15:52:56 2021 EET using RSA key ID E2E56300
gpg: Good signature from "Cygwin <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5640 5CF6 FCC8 1574 682A  5D56 1A69 8DE9 E2E5 6300
signature verified: setup.ini.sig
Updated setup.ini

Installing gcc-core=10.2.0-1
Package gcc-core=10.2.0-1 not found or ambiguous name, exiting

But it also fails.
Can this be fixed, please?


Now if I try pointing the latter format to the Cygwin installer:

$ Downloads/setup-x86_64.exe -P gcc-core=9.3.0-2
note: Hand installation over to elevated child process.

... it parses this fine and goes forward:
image

@kou1okada
Copy link
Owner

Thank you.
I had missed that the version selection feature has been implemented to the setup-x86_64.exe command line.

I'm sorry, but the current apt-cyg does not support the version selection feature.
However, setup-x86_64.exe has that feature, so the following subcommand can be a good alternative, until it is implemented to apt-cyg.

apt-cyg setup -- -nqBP gcc-core=9.3.0-2

Perhaps, I can prepare the fallback routine for using the version selection with above subcommand.

@sskras
Copy link
Author

sskras commented Jan 3, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants