Я на: OSX 10.11.6, Homebrew версия 0.9.9m OpenSSL 0.9.8zg 14 июля 2015Homebrew отказ связать OpenSSL
Я пытаюсь играть с dotnetcore и следуя их instructions,
Я модернизировал/установил последнюю версию OpenSSL:
> brew install openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
Already downloaded: /Users/administrator/Library/Caches/Homebrew/openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==> Pouring openssl-1.0.2h_1.el_capitan.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
Но когда я пытаюсь связать OpenSSL я продолжаю работать в этой связывающей ошибки:
> brew link --force openssl
Warning: Refusing to link: openssl
Linking keg-only OpenSSL means you may end up linking against the insecure,
deprecated system version while using the headers from the Homebrew version.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
Опция включения флагов компилятора для меня не имеет смысла, поскольку я не компилирую эти библиотеки, от которых я зависим.
EDIT dotnetcore не обновил свои инструкции:
brew update
brew install openssl
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
Для .NET Ядра вам нужна поддерживаемая версия OpenSSL, которая будет быть версией 1.0.1 или 1.0.2. Поскольку вы сообщаете о версии 0.9.8, возможно, вам нужно сначала завести обновление openssl'? – bartonjs
Я уже это сделал. Я должен был уточнить, но я не добавил этих шагов к вопросу. Но я уже делал 'brew update' и' brew install openssl'. Это попытка установить поддерживаемую версию. – daviddeath
Похоже, что Homebrew явно заблокировал его: https://github.com/Homebrew/brew/commit/b999edb3448793529aea8b29c01b3851bbc3b3eb. – bartonjs