[英]Ruby Installation issues with rvm after Ubuntu New updates
我正在安裝滑軌。 我正在使用Ubuntu 12.04 LLTS
vipin @ vipin-Satellite-C640:〜$ uname -a
Linux 3.11.0-18-generic#32〜precise1-Ubuntu SMP 2月20日星期四17:54:21 UTC 2014 i686 i686 i386 GNU / Linux
首先,我遵循了這一點 。
但是當我嘗試
導軌-v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
我通過重新安裝Ruby
vipin @ vipin-Satellite-C640:〜$ rvm重新安裝2.1.0
現在我嘗試
紅寶石-v
同樣的結果
vipin@vipin-Satellite-C640:~$ ruby -v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
我試圖卸載rvm
vipin@vipin-Satellite-C640:~$ sudo apt-get --purge remove ruby-rvm
[sudo] password for vipin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ruby-rvm is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
更新:我能夠在Ubuntu中成功創建帶有Rails的應用程序。 現在,我更新並升級了內核。
您的RVM版本已損壞。 Ubuntu對RVM會產生很多錯誤,目前修復的唯一安全方法是:
sudo apt-get --purge remove ruby-rvm
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
打開新的終端並驗證環境是否與舊的RVM設置保持清潔(應該沒有輸出):
env | grep rvm
如果有輸出,請嘗試打開新的終端,如果這樣做沒有幫助,請重新啟動計算機。
安裝RVM :
\curl -L https://get.rvm.io |
bash -s stable --ruby --autolibs=enable --auto-dotfiles
如果您發現需要一些幫助,請看一下在Ubuntu 12.04上安裝Ruby ,它提供了更多解釋。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.