我正在尝试在32位Ubuntu EC2 AMI上安装Shapado,并将ruby更新为1.9.2作为安装的一部分。但是,我收到此错误
ubuntu@domU....:/var/rails/shapado$ sudo rake gems:install
rake aborted!
Gemfile syntax error:
/var/rails/shapado/Gemfile:87: syntax error, unexpected ':', expecting kEND
gem 'sass-rails', git: 'https://github.com/rails/sas...
^
/var/rails/shapado/Gemfile:87: syntax error, unexpected ',', expecting kEND
...hub.com/rails/sass-rails.git', branch: '3-2-stable'
^
/var/lib/gems/1.8/gems/bundler-1.2.3/lib/bundler/dsl.rb:35:in `eval_gemfile'
/var/lib/gems/1.8/gems/bundler-1.2.3/lib/bundler/dsl.rb:7:in `evaluate'
/var/lib/gems/1.8/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
/var/lib/gems/1.8/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
/var/lib/gems/1.8/gems/bundler-1.2.3/lib/bundler.rb:112:in `setup'
/var/rails/shapado/config/boot.rb:8
/var/rails/shapado/config/application.rb:1
enter code here
不是红宝石用户,我猜测它与gems / 1.8有关,但如果我尝试使用
更新gem update --system
我收到警告,在Debian上禁用了此更新系统。
ubuntu@domU-12-31-38-04-9E-D2:/var/rails/shapado$ gem update --system
ERROR: gem update --system is disabled on Debian, because it will overwrite the
content of the rubygems Debian package, and might break your Debian system in s
ubtle ways. The Debian-supported way to update rubygems is through apt-get, usin
g Debian official repositories.
If you really know what you are doing, you can still update rubygems by setting
the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this
is completely unsupported by Debian.
那么,这是一个错误,有1.8宝石,如果是这样,更新这个是什么最好的方法?如果它更好的话,我可以完成整个过程并重新开始。我想我应该指定一个特定的版本而不是仅仅按照安装说明http://shapado.com/questions/how-to-install-shapado-on-amazon-ec2
答案 0 :(得分:0)
这在Debian中被禁用。
gem update --system
而是使用它:
apt-get install rubygems
如果您仍然遇到问题,建议您使用Aptitude卸载RubyGems并从源代码重新安装。 RubyGems网站提供了说明here。