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

Problem with CGAL installation via VCPKG #4546

Closed
Frank-Dz opened this issue Feb 27, 2020 · 2 comments
Closed

Problem with CGAL installation via VCPKG #4546

Frank-Dz opened this issue Feb 27, 2020 · 2 comments

Comments

@Frank-Dz
Copy link

When I tried to install CGAL with qt5 via VCPKG. I always met such a problem.

-- Using source at C:/local/vcpkg/buildtrees/icu/src/c-65_1-src-702c9cff96 -- Acquiring MSYS2... -- Using cached C:/local/vcpkg/downloads/msys2-base-x86_64-20181211.tar.xz gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: starting migration from earlier GnuPG versions gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent gpg: migration succeeded gpg: Generating pacman keyring master key... gpg: key D275FF753336897E marked as ultimately trusted gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/23B2FA5E0368BDA2AC1B653BD275FF753336897E.rev' gpg: Done ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u ==> Appending keys from msys2.gpg... ==> Locally signing trusted keys in keyring... -> Locally signing key D55E7A6D7CE9BA1587C0ACACF40D263ECA25678A... -> Locally signing key 123D4D51A1793859C2BE916BBBE514E53E0D0813... -> Locally signing key B91BCF3303284BF90CC043CA9F418C233E652008... -> Locally signing key 9DD0D4217D75A33B896159E6DA7EF2ABAEEA755C... ==> Importing owner trust values... gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: setting ownertrust to 4 gpg: inserting ownertrust of 4 ==> Updating trust database... gpg: marginals needed: 3 completes needed: 1 trust model: pgp gpg: depth: 0 valid: 1 signed: 4 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: depth: 1 valid: 4 signed: 3 trust: 0-, 0q, 0n, 4m, 0f, 0u gpg: depth: 2 valid: 3 signed: 0 trust: 3-, 0q, 0n, 0m, 0f, 0u :: Synchronizing package databases... downloading mingw32.db... error: failed retrieving file 'mingw32.db' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds downloading mingw32.db... error: failed retrieving file 'mingw32.db' from sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds downloading mingw32.db... error: failed retrieving file 'mingw32.db' from www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw32.db' from mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed to update mingw32 (download library error) downloading mingw64.db... error: failed retrieving file 'mingw64.db' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw64.db' from sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds downloading mingw64.db... error: failed retrieving file 'mingw64.db' from www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'mingw64.db' from mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed to update mingw64 (download library error) downloading msys.db... error: failed retrieving file 'msys.db' from repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds downloading msys.db... error: failed retrieving file 'msys.db' from sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds downloading msys.db... error: failed retrieving file 'msys.db' from www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed retrieving file 'msys.db' from mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds error: failed to update msys (download library error) error: failed to synchronize all databases

The cause is that CGAL with QT5 needs msys2-base-x86_64-20181211.tar.xz.
But when install this pkg, there is something wrong with the command which has been reported in here
Seems like we need to add some commands to cancel time-out setting.

ENV: windows-64, vs17.

How can we fix such a problem?

Best,
Frank

@Frank-Dz
Copy link
Author

It is an endless loop:
image

@Frank-Dz
Copy link
Author

Frank-Dz commented Feb 28, 2020

Problem solved following these steps:

  • Go to:
    ...\vcpkg\downloads\tools\msys2\msys64\msys2.exe

  • Enter in the terminal
    pacman -Syyuu --disable-download-timeout --noconfirm --needed --overwrite '*'

  • Set proxy (if necessary) in the terminal
    export http_proxy=http://www-myproxy.example.com:8080
    export https_proxy=$http_proxy
    export ftp_proxy=$http_proxy

  • Install
    pacman -Syyuu --disable-download-timeout --noconfirm --needed --overwrite '*'

  • try again
    vcpkg install icu:x64-windows
    vcpkg install cgal[qt]:x64-windows

Thank you!

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

1 participant