我正在使用Ubuntu 11.10和终端来安装和运行Rails。这里 是我到目前为止设置Rails的过程:
sudo apt-get ruby1.9.1
和sudo gem install
rails
rails new path/to/app
rails server
并得到了一个
关于没有JS ruby环境的错误gem
'therubyracer'
然后运行bundle install
rails server
Could not find libv8-3.3.10.4 in any of the sources Run `bundle install` to install missing gems. Could not find therubyrhino-1.73.0 in any of the sources Run `bundle install` to install missing gems.
Bundle知道这些程序的生存地点,在我提供正确的路径名时
输入bundle show libv8
或bundle show therubyrhino
。他们都
在/usr/lib/ruby/gems/1.9.1/gems/ _ 其中所有其他宝石都是
位于捆绑安装。
有没有人知道Rails源代码中出现此异常的位置 码?有谁知道Rails如何收集宝石?更好的是, 有谁有这个问题,知道如何解决它?
非常感谢,
Feav
答案 0 :(得分:0)
您是否尝试使用bundle exec rails server
启动服务器?
答案 1 :(得分:0)
此问题已在较新版本的Rails中修复。