2014-10-07 15 views
23

मैं सफलता के बिना रूबी संस्करण प्रबंधक (आरवीएम) स्थापित करने की कोशिश कर रहा हूं। मुझे इस त्रुटि के माध्यम से कैसे प्राप्त किया जा रहा है?आरवीएम स्थापित करना: त्रुटि प्राप्त करना "एक त्रुटि हुई (23)।"

[email protected]:/tmp$ rvm install ruby-1.9.3-p484 
Searching for binary rubies, this might take some time. 
No binary rubies available for: ubuntu/14.04/x86_64/ruby-1.9.3-p484. 
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
Checking requirements for ubuntu. 
Requirements installation successful. 
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p484, this may take a while depending on your cpu(s)... 
ruby-1.9.3-p484 - #downloading ruby-1.9.3-p484, this may take a while depending on your connection... 
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission 
Warning: denied 
    0 9806k 0 1002 0  0 22905  0 0:07:18 --:--:-- 0:07:18 23302 
curl: (23) Failed writing body (0 != 1002) 
There was an error(23). 
Checking fallback: http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2 
Warning: Failed to create the file ruby-1.9.3-p484.tar.bz2.part: Permission 
Warning: denied 
    0 9806k 0 1167 0  0 4300  0 0:38:55 --:--:-- 0:38:55 4290 
curl: (23) Failed writing body (0 != 1167) 
There was an error(23). 
Failed download 
There has been an error fetching the ruby interpreter. Halting the installation. 
[email protected]:/tmp$ 
+0

इस वेबसाइट पर जाकर करें और देखें कि आप वहाँ से टार फाइल डाउनलोड कर सकते हैं: //ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.bz2 – ryekayo

+1

ऐसा लगता है कि यह फ़ाइल को उस निर्देशिका में डाउनलोड करने का प्रयास कर रहा है जिस पर आपको लिखने की अनुमति नहीं है। अधिक verbose आउटपुट प्राप्त करने और अपने प्रश्न को अद्यतन करने के लिए '--debug' ध्वज का उपयोग करें (यानी 'rvm --debug इंस्टॉल करें ...')। –

+0

हे आदमी, जवाब स्वीकार करें। समाधान ठीक से काम कर रहा है! – kaleb4eg

उत्तर

87

आपका RVM /usr/local/rvm में स्थापित किया गया है - यह अक्सर प्रणाली की स्थापना कहा जाता है, यह आवश्यक है कि आपकी उपयोगकर्ता ubunturvm समूह में जोड़ दिया जाएगा: यह अपने खोल से बदल दिया जाएगा

rvm group add rvm "$USER" 

हाँ $USER का उपयोग अपने उपयोगकर्ता नाम के साथ

तो लॉग आउट और लॉग इन करें, साथ सुनिश्चित:

RVM के लिए

कि आपके उपयोगकर्ता rvm समूह में है,

अंत में सिर्फ मामले में अपडेट अनुमतियां:

rvm fix-permissions 
+0

मेरे लिए फिक्स्ड समस्या। धन्यवाद! – Hroft

+0

मेरे लिए भी श्रमिक – Avdept

+0

बिग Thatnks !!! मैंने 1 घंटा बिताया और समाधान नहीं मिला ... – kaleb4eg

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