2013-03-02 12 views
6

पर RVM स्थापित कर रहा है (सबसे पहले, मेरी अंग्रेजी के लिए खेद)मेक त्रुटि - Snow Leopard

मैं अपने Snow Leopard 10.6.8 पर RVM स्थापित करने के लिए कोशिश कर रहा हूँ, इस का उपयोग करते हुए:

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

और मैं इस त्रुटि मिलती है:

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. 

और 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 

कृपया मुझे सब कुछ आप मुझ से की जरूरत है एक समाधान पाने के लिए बता

अद्यतन # 1

मैं स्थापित कर रहा करने की कोशिश:

rvm reinstall 1.9.3 --with-openssl-dir=/usr/bin

और मैं इस

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. 
मिल

धन्यवाद!

+0

क्या आप मैकपोर्ट या होमब्रू का उपयोग करते हैं? क्या आपके पास openssl इंस्टॉल है? – gmaliar

+0

मैं होमब्री का उपयोग कर रहा हूं, और हाँ, मैंने openssl-1.0.1e स्थापित किया है – Villat

उत्तर

5

अपने स्थापित openssl संस्करण के स्थान के साथ --with-openssl-dir=/path/to/openssl के साथ स्थापित करने का प्रयास करें।

अधिक से अधिक आप इस https://rvm.io/packages/openssl/

+0

क्षमा करें, मुझे यकीन नहीं है कि मेरे openssl का स्थान कौन सा है, मैं इसे कैसे ढूंढ सकता हूं? टर्मिनल में – Villat

+2

, 'जो openssl' – gmaliar

+0

मैंने अपने मूल प्रश्न को – Villat

0

देख सकते हैं मैं निम्नलिखित कोड मैं MacRuby की साइट पर मिली के साथ काम करने की खान मिल गया: 4.3 इस से

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

आप एक Xcode संस्करण का उपयोग कर रहे हैं तो बाद में स्थापना के लिए पथ को विन्यस्त करेगा।

संबंधित मुद्दे