部署我的Rails 3應用共享Dreamhost的,當我得到一個束,軌道3和Dreamhost的
Could not find i18n-0.5.0 in any of the sources
錯誤。
支持建議安裝bundler 0.9.9,但是當我在我的應用程序文件夾中運行bundle install
時,我收到Bundle是未知命令的消息。顯然Bundler不在我的路上。
問題是我是一個完整的unix noob,不知道如何添加這個以使bundle
是已知的命令。
感謝
部署我的Rails 3應用共享Dreamhost的,當我得到一個束,軌道3和Dreamhost的
Could not find i18n-0.5.0 in any of the sources
錯誤。
支持建議安裝bundler 0.9.9,但是當我在我的應用程序文件夾中運行bundle install
時,我收到Bundle是未知命令的消息。顯然Bundler不在我的路上。
問題是我是一個完整的unix noob,不知道如何添加這個以使bundle
是已知的命令。
感謝
您可以設置在命令行上的路徑與
$ export PATH=$PATH:/path/to/where/the/bundle/binary/is
要永久設置路徑,添加上述的.bashrc
文件中的個人文件夾的聲明。
Dreamhost帳戶沒有安裝捆綁軟件,但您可以輕鬆地在本地安裝它。下面是來自dreamhost wiki的教程:http://wiki.dreamhost.com/Bundler。
/usr/lib/ruby/gems/1.8/bin/
gem environment
檢查。gem paths
會有一個或多個位置。這將在其中之一。pico /home/_your_user_name/.bashrc
PATH=$PATH:/path/to/your/bundle/gem
。source /home/_your_username/.bashrc
bundle -v
,如果它告訴你,你有什麼版本的,你是好去。或者您可以凍結你的寶石到您的應用程序在開發計算機上,然後上傳在它與寶石文件到您的Dreamhost的帳戶項目。這裏有一個教程:http://wiki.dreamhost.com/index.php?title=Freezing_Gems&oldid=23877
感謝您的信息。使用新帳戶默認情況下安裝Bundler版本1.0.7。 wiki提到你需要0.9.9。由於安裝了RubyGems 1.3.6,這仍然是一個需求 – Tarscher 2011-01-10 08:54:12