部署我的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