問題:我安裝紅寶石,但它無法正確識別。 我正在關注的部署到VPS:https://github.com/railscasts/335-deploying-to-a-vps通過rbenv安裝Ruby失敗
我設置我的服務器上的Ubuntu 12.04 LTS部署我的Rails應用程序。我正在關注部署到VPS的railscast,並試圖通過rbenv安裝ruby。它似乎一切安裝正確,但當我試圖檢查紅寶石版本,它給了我錯誤。以下是我運行的命令。
[email protected]:~$ rbenv install 1.9.3-p125
Downloading yaml-0.1.4.tar.gz...
-> http://cloud.github.com/downloads/sstephenson/ruby-build-download-mirror/36c852831d02cf90508c29852361d01b
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /home/deployer/.rbenv/versions/1.9.3-p125
Downloading ruby-1.9.3-p125.tar.gz...
-> http://cloud.github.com/downloads/sstephenson/ruby-build-download-mirror/e3ea86b9d3fc2d3ec867f66969ae3b92
Installing ruby-1.9.3-p125...
Installed ruby-1.9.3-p125 to /home/deployer/.rbenv/versions/1.9.3-p125
Downloading rubygems-1.8.23.tar.gz...
-> http://cloud.github.com/downloads/sstephenson/ruby-build-download-mirror/178b0ebae78dbb46963c51ad29bb6bd9
Installing rubygems-1.8.23...
Installed rubygems-1.8.23 to /home/deployer/.rbenv/versions/1.9.3-p125
[email protected]:~$ rbenv global 1.9.3-p125
[email protected]:~$ ruby -v
'ruby' program can be found in the following packages:
* ruby1.8
* ruby1.9.1
我該如何解決這個問題?
你嘗試安裝[紅寶石建造(https://github.com/sstephenson/ruby -建立)? –