Installer curl avec openssl
J'ai juste téléchargé et installé OpenSSL de http://www.openssl.org/source/ [http://www.openssl.org/source/openssl-1.0.1c.tar.gz]
./config
make
make test
make install
Maintenant, j'ai téléchargé CURL - http://curl.haxx.se/download/curl-7.27.0.tar.gz. Essayez de configurer curl avec openssl me donne l'erreur ci-dessous -
.............................................................
checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in -lssl... (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where specified!
[[email protected]]# ls -l /usr/local/ssl
total 40
drwxr-xr-x 2 root root 4096 Sep 28 01:21 bin
drwxr-xr-x 2 root root 4096 Sep 28 01:21 certs
drwxr-xr-x 3 root root 4096 Sep 28 01:21 include
drwxr-xr-x 4 root root 4096 Sep 28 01:21 lib
drwxr-xr-x 6 root root 4096 Sep 28 01:21 man
drwxr-xr-x 2 root root 4096 Sep 28 01:21 misc
-rw-r--r-- 1 root root 10835 Sep 28 01:21 openssl.cnf
drwxr-xr-x 2 root root 4096 Sep 28 01:21 private
[[email protected]]#
Je ne suis pas sûr de savoir comment je peux corriger cette erreur?
OriginalL'auteur Programmer | 2012-09-28
Vous devez vous connecter pour publier un commentaire.
Essayer cela lorsque vous configurez la libcurl
/usr/local/ssl
est où openssl contient les fichiers d'en-tête et la bibliothèqueOriginalL'auteur rajeshk
Si vous êtes sur RHEL, et que vous voulez construire curl (par exemple v7.45) avec statiquement libs (autonome binaire), vous pouvez également:
Votre binaire sera produite sur
./src/curl
.openssl-devel
version 1.0.1 e installe:OriginalL'auteur Jose Alban
Résoudre ce problème avec le drapeau --with-darwinssl
Aller au dossier avec curl code source
Le télécharger ici
https://curl.haxx.se/download.html
redémarrer votre console et c'est fait!
OriginalL'auteur Максим Мартынов