des ennuis avec RVM et OpenSSL
Essayer de mettre en place un nouveau macbook pour un collègue. Ne va pas bien.
J'ai d'abord installer OpenSSL:
Heathers-MacBook-Pro:~ heather$ rvm pkg install openssl
Fetching openssl-1.0.1c.tar.gz to /Users/heather/.rvm/archives
######################################################################## 100.0%
Extracting openssl to /Users/heather/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
Compiling openssl in /Users/heather/.rvm/src/openssl-1.0.1c.
Installing openssl to /Users/heather/.rvm/usr
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Updating openssl certificates
Alors j'essaie d'installer ruby avec openssl...
Heathers-MacBook-Pro:website heather$ rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr
Fetching yaml-0.1.4.tar.gz to /Users/heather/.rvm/archives
Extracting yaml to /Users/heather/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/heather/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/heather/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/heather/.rvm/usr
Installing Ruby from source to: /Users/heather/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/heather/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/heather/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #configuring
ruby-1.9.3-p392 - #compiling
ruby-1.9.3-p392 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p392 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/heather/.rvm/bin'.
ruby-1.9.3-p392 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p392 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p392 - #complete
Heathers-MacBook-Pro:website heather$ bundle update
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your Gemfile from 'https' to 'http'. Instructions for
compiling with OpenSSL using RVM are available at rvm.io/packages/openssl.
btw, le gem fichier dit "source https://rubygems.org"
idées?
OriginalL'auteur phil swenson | 2013-03-19
Vous devez vous connecter pour publier un commentaire.
Essayez ceci:
OriginalL'auteur fmendez
OP réellement sauvé ma journée!
Dans mon cas:
libssl-dev
; vous avez besoinlibssl1.0-dev
. L'exécution de votre séquence de commandes mis en évidence la différence et a résolu mon problème et maintenant 2.1.10 est installé avec succès. Je vous remercie.MERCI!!!! Fonctionne très bien pour obtenir ruby 1.8.7 sur ubuntu 18.04 de course
OriginalL'auteur phq
Sur MacOS 10.12.2 installer openssl par infusion, ne fonctionne pas. Pour corriger, il faut l'exécuter:
Et ensuite installer Ruby via rvm.
EDIT:
Plus d'informations sur la raison derrière le problème ici.
--with-openssl-dir
option de rvm de travail.OriginalL'auteur blazejmar
Donc cela a fonctionné pour moi:
J'ai également eu
rvm autolibs rvm_pkg
pour readline soutien.OriginalL'auteur Dorian
openssl version: 1.0.2 k
Cela a fonctionné pour moi:
OriginalL'auteur ruslan
C'est bien décrite sur Wiki ArchLinux:
De sorte que vous pouvez faire (la plus simple):
Vous pouvez voir plus de solutions sur Wiki ArchLinux.
--with-openssl-dir=...
OriginalL'auteur noraj