x無法存取,你可能沒有權限或未登入。
71493de8c5a493dd4e544262136d50de

請教rails 101 安裝ree問題

2012-02-03 01:03:28 +0800evoRuby on Rails 節點 中發起
最後由 evo2012-02-04 23:37:54 +0800回應 , 362次閱讀

我照著 101 的教學,安裝rails時,
到了這一步

rvm install ree
卻發生了下面的錯誤訊息
ruby' was not found, cannot install rubygems unless ruby is present
(Do you have an RVM ruby installed & selected?)

因為怕亂下指令把系統搞爛,所以上來問,
我應該怎麼作才能裝好ree呢
謝謝

截至 2012-02-04 23:37:54 +0800,共收到 6 條回應
6b3a9e760dc41f48e4a215a0aacacc02
jamesy829 1樓, 於2012-02-03 08:41:10 +0800回應

你有把RVM 安裝嗎?

71493de8c5a493dd4e544262136d50de
evo 2樓, 於2012-02-03 20:30:03 +0800回應

剛試了一下,原來rvm根本沒裝好,可是我照著101教學,輸入
bash < <(curl -s http://rvm.beginrescueend.com/install/rvm)
卻出現下面的錯誤訊息
Deprecated command, please use:

bash -s stable < <(curl -s http://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
所以我只好將指令換成
bash -s stable < <(curl -s http://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
執行成功後
再執行
echo “ [ [ -s &HOME/.rvm/scripts/rvm ] ] && source &HOME/.rvm/scripts/rvm” >> ~/.bash_profile
執行結果是 沒有結果 , 命令列回復成 「帳號@ubuntu$ 」的狀態
再執行
. ~/.bash_profile
執行結果是 沒有結果 , 命令列回復成 「帳號@ubuntu$ 」的狀態
再執行
source ~/.bash_profile
執行結果是 沒有結果 , 命令列回復成 「帳號@ubuntu$ 」的狀態

結果是rvm沒有裝起來
以上是我裝rvm的過程,請問是哪一步有錯?
請告訴我如何才能安裝正確的rvm?
code還沒寫一行,光裝環境就搞得昏頭..謝謝

6b3a9e760dc41f48e4a215a0aacacc02
jamesy829 3樓, 於2012-02-03 22:34:18 +0800回應

你試試看這個
'source ~/.bash_profile'
'type rvm | head -1'
看看他有沒有顯示
'rvm is a function'
沒有,你用這個command找看看有沒有怎麼missing
'rvm requirements'

還有你run完
'bash -s stable < <(curl -s http://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)'
他有一些procedure你有follow嗎?

71493de8c5a493dd4e544262136d50de
evo 4樓, 於2012-02-04 01:10:52 +0800回應

我下了指令
type rvm | head -1
console有顯示
rvm is a function
我再下指令
bash -s stable < <(curl -s http://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
出現訊息為
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 97 0 0:00:01 0:00:01 --:--:-- 129
100 799k 100 799k 0 0 144k 0 0:00:05 0:00:05 --:--:-- 255k

Upgrading the RVM installation in /home/ruby/.rvm/
RVM sourcing line found in: /home/ruby/.bash_history
/home/ruby/.bash_profile.

Upgrade Notes:

* No new notes to display.

# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: http://rvm.beginrescueend.com/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Upgrade of RVM in /home/ruby/.rvm/ is complete.

# ruby,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne
根據以上兩個測試結果,我該如何安裝rvm呢
我還是不知譠如何根據這兩條訊息來安裝rvm
謝謝您的回覆

6b3a9e760dc41f48e4a215a0aacacc02
jamesy829 5樓, 於2012-02-04 04:09:45 +0800回應

結果表示,你已經把RVM安裝好了阿
所以你因該可以安裝ruby了阿

71493de8c5a493dd4e544262136d50de
evo 6樓, 於2012-02-04 23:37:53 +0800回應

問題依然出在os更新太快,所以照之前的安裝程序執行,都會有小錯誤
最後只好上官網查詢正確的安裝方式,才終於裝好,網路上能查到的資訊,
幾乎都過期了,不過總算是裝好了,邁入正式開發!

需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊