Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 主机Monster bundle上的Rails安装安装失败_Ruby On Rails_Ruby_Ruby On Rails 3_Postgresql_Gem - Fatal编程技术网

Ruby on rails 主机Monster bundle上的Rails安装安装失败

Ruby on rails 主机Monster bundle上的Rails安装安装失败,ruby-on-rails,ruby,ruby-on-rails-3,postgresql,gem,Ruby On Rails,Ruby,Ruby On Rails 3,Postgresql,Gem,所以我有了一个rails应用程序,并在我的hostmonster帐户上运行得很好。然后,我在我的开发环境中更新了一些东西/将它们推到github上/将它们拉回到我的生产环境中。现在它给了我一个错误在任何源代码中都找不到pg-0.17.1(Bundler::GemNotFound) 这是我在我的开发中安装的一个新gem,因为我正试图迁移到postgresql for dev and live…现在我在开发中使用postgresql,在生产中使用mysql2。我知道这不是最好的,但我正在努力 我尝试

所以我有了一个rails应用程序,并在我的hostmonster帐户上运行得很好。然后,我在我的开发环境中更新了一些东西/将它们推到github上/将它们拉回到我的生产环境中。现在它给了我一个错误
在任何源代码中都找不到pg-0.17.1(Bundler::GemNotFound)

这是我在我的开发中安装的一个新gem,因为我正试图迁移到postgresql for dev and live…现在我在开发中使用postgresql,在生产中使用mysql2。我知道这不是最好的,但我正在努力

我尝试运行
bundle install
来安装pg gem,但失败了,出现了错误

Gem::异常:无法在/home4/muscorei/workspace/vollapp中的[/usr/lib64/ruby/gems/1.9.3/cache/rake-10.2.2.Gem]加载Gem
安装rake(10.2.2)时出错,Bundler无法继续。
在绑定之前,请确保gem安装rake-v“10.2.2”成功。

我试着安装rake,但效果很好…再试一次…同样的错误。我在这里发现了一个问题,似乎可以为其他人解决这个问题,但它需要运行
gem update--system
,这是hostmonster无法做到的。有什么想法吗

这是另一个“相关”问题。当我输入gemlist--local时,我看到rails安装在版本4.1.0上……但是当我输入rails-v时,它显示了系统范围内的版本3.2.13。在我的开发环境中,我从来没有遇到过这些恼人的问题