简体   繁体   English

出错 - 在Snow Leopard上安装RVM

[英]Make error - Installing RVM on Snow Leopard

(First of all, sorry for my english) (首先,对不起我的英文)

I'm trying to install RVM on my Snow Leopard 10.6.8, using this: 我正在尝试在我的Snow Leopard 10.6.8上安装RVM,使用它:

\\curl -L https://get.rvm.io | bash -s stable --ruby

And I get this error: 我收到这个错误:

Installing Ruby from source to: /Users/Villa/.rvm/rubies/ruby-2.0.0-p0, this may take a    while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
ruby-2.0.0-p0 - #extracted to /Users/Villa/.rvm/src/ruby-2.0.0-p0 (already extracted)
ruby-2.0.0-p0 - #configuring
ruby-2.0.0-p0 - #compiling
Error running 'make -j2', please read /Users/Villa/.rvm/log/ruby-2.0.0-p0/make.log
There has been an error while running make. Halting the installation.

And the make.log errors begins here: make.log错误从这里开始:

In file included from openssl_missing.c:22:
openssl_missing.h:71: error: conflicting types for ‘HMAC_CTX_copy’
/Users/Villa/.rvm/usr/include/openssl/hmac.h:102: error: previous declaration of      ‘HMAC_CTX_copy’ was here
openssl_missing.h:95: error: conflicting types for ‘EVP_CIPHER_CTX_copy’
/Users/Villa/.rvm/usr/include/openssl/evp.h:503: error: previous declaration of ‘EVP_CIPHER_CTX_copy’ was here
openssl_missing.c:27: error: conflicting types for ‘HMAC_CTX_copy’
/Users/Villa/.rvm/usr/include/openssl/hmac.h:102: error: previous declaration of  ‘HMAC_CTX_copy’ was here
openssl_missing.c:122: error: conflicting types for ‘EVP_CIPHER_CTX_copy’
/Users/Villa/.rvm/usr/include/openssl/evp.h:503: error: previous declaration of ‘EVP_CIPHER_CTX_copy’ was here
make[2]: *** [openssl_missing.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling psych_emitter.c
compiling psych_parser.c
compiling psych_to_ruby.c
compiling psych_yaml_tree.c
linking shared-object psych.bundle
installing default psych libraries
make: *** [build-ext] Error 2

Please tell me everything you need from me to get a solution 请告诉我你需要的一切来获得解决方案

UPDATE #1 更新#1

I try to install it doing: 我尝试安装它:

rvm reinstall 1.9.3 --with-openssl-dir=/usr/bin rvm重新安装1.9.3 --with-openssl-dir = / usr / bin

And I get this 我明白了

Error running '__rvm_rm_rf /Users/Villa/.rvm/src/ruby-1.9.3-p392',
please read /Users/Villa/.rvm/log/ruby-1.9.3-p392/remove.src.log
/Users/Villa/.rvm/rubies/ruby-1.9.3-p392 has already been removed.
Installing requirements for osx/10.6/i386, might require sudo password
Skipping `brew update` make sure your formulas are up to date.
-bash: /usr/local/etc/openssl/cert.pem: Permission denied
-bash: /usr/local/etc/openssl/cert.pem: Permission denied
Doing /usr/local/etc/openssl
cert.pem => 77ee3751.0
Installing Ruby from source to: /Users/Villa/.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 - #extracted to /Users/Villa/.rvm/src/ruby-1.9.3-p392 (already  extracted)
ruby-1.9.3-p392 - #configuring...
Error running './configure --prefix=/Users/Villa/.rvm/rubies/ruby-1.9.3-p392 --with- openssl-dir=/usr/bin --with-opt-  dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/lib    xslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-  install-doc --without-tcl --without-tk --enable-shared',
please read /Users/Villa/.rvm/log/ruby-1.9.3-p392/configure.log
There has been an error while running configure. Halting the installation.

Thanks! 谢谢!

Try installing with --with-openssl-dir=/path/to/openssl with the location of your installed openssl version. 尝试使用--with-openssl-dir=/path/to/openssl与已安装的openssl版本的位置一起安装。

more over you can look at this https://rvm.io/packages/openssl/ 你可以看看这个https://rvm.io/packages/openssl/

I got mine to work with the following code I found on MacRuby's site: 我得到了我在MacRuby网站上找到的以下代码:

$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

If you're using an Xcode version later than 4.3 this will configure the path for installations. 如果您使用的是晚于4.3的Xcode版本,则会配置安装路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM