我使用的是Ubuntu 11.10,我遇到安裝紅寶石的麻煩。當我試圖安裝它,它給出了這樣:紅寶石安裝問題
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #fetching
ruby-1.9.3-p125 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.3-p125 (already extracted)
Applying patch 'xcode-debugopt-fix-r34840' (located at /usr/share/ruby-rvm/patches/ruby/1.9.3/p125/xcode-debugopt-fix-r34840.diff)
Error running 'patch -F 25 -p1 -N -f <"/usr/share/ruby-rvm/patches/ruby/1.9.3/p125/xcode-debugopt-fix-r34840.diff"', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p125/patch.apply.xcode-debugopt-fix-r34840.log
ruby-1.9.3-p125 - #autoreconf
ruby-1.9.3-p125 - #configuring
ruby-1.9.3-p125 - #compiling
ruby-1.9.3-p125 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.21 for ruby-1.9.3-p125 ...
Installation of rubygems completed successfully.
ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p125 - #importing default gemsets (/usr/share/ruby-rvm/gemsets/)
Install of ruby-1.9.3-p125 - #complete
之後,我考出紅寶石和它返回:
請幫助。
看起來好像RVM不在您的PATH中。檢查你的.bash_profile這行:[[-s「$ HOME/.rvm/scripts/rvm」]] &&。 「$ HOME/.rvm/scripts/rvm」#加載RVM功能。如果您沒有看到它,請添加它。如果您確實看到了,請嘗試運行'source〜/ .bash_profile' – 2012-04-08 05:33:34
我的路徑是 – user1233418 2012-04-08 05:37:47
您的$ PATH是您的系統將查找可執行文件的位置(目錄)列表。你的系統沒有找到ruby,因爲〜/ .rvm/*不在你的$ PATH中。聽起來你需要回頭看看這裏的所有方向:https://rvm.beginrescueend.com/rvm/install/ – 2012-04-08 05:42:33