我正在使用Ubuntu 12.04 LTS x86_64 Minimal,我根据these instructions安装了Ruby和RVM。 Ruby安装得很好,RVM安装得很好并且工作得很好。
我已经访问了几乎所有我能找到的SO问题,关于这个问题的文章并没有任何效果。 Rails仍然无法安装,到目前为止我无法做任何工作。
gem install rails -v 4.0.0
返回'success'(它什么都不返回,rails仍然无法使用)或者没有给出:
[ tsujp ~ 437 / 24 / 1 ] $ gem install rails -v 4.0.0
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/home/tsujp/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
Gem files will remain installed in /home/tsujp/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14 for inspection.
Results logged to /home/tsujp/.rvm/gems/ruby-2.0.0-p353/gems/atomic-1.1.14/ext/gem_make.out
我已经检查了〜/ .rvm中所有与rails有关的宝石的文件夹,没有。
宝石环境
[ tsujp gems 451 / 39 / 0 ] $ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.1.11
- RUBY VERSION: 2.0.0 (2013-11-22 patchlevel 353) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/tsujp/.rvm/gems/ruby-2.0.0-p353
- RUBY EXECUTABLE: /home/tsujp/.rvm/rubies/ruby-2.0.0-p353/bin/ruby
- EXECUTABLE DIRECTORY: /home/tsujp/.rvm/gems/ruby-2.0.0-p353/bin
- SPEC CACHE DIRECTORY: /home/tsujp/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/tsujp/.rvm/gems/ruby-2.0.0-p353
- /home/tsujp/.rvm/gems/ruby-2.0.0-p353@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/tsujp/.rvm/gems/ruby-2.0.0-p353/bin
- /home/tsujp/.rvm/gems/ruby-2.0.0-p353@global/bin
- /home/tsujp/.rvm/rubies/ruby-2.0.0-p353/bin
- /home/tsujp/.rvm/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/lib/postgresql/9.1/bin
- /home/tsujp
宝石清单:
[ tsujp gems 452 / 40 / 0 ] $ gem list
*** LOCAL GEMS ***
bigdecimal (1.2.0)
bundler (1.3.5)
bundler-unload (1.0.2)
executable-hooks (1.2.6)
i18n (0.6.5)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
multi_json (1.8.2)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.4.2)
rvm (1.11.3.8)
test-unit (2.0.0.0)
tzinfo (0.3.38)
$ PATH:
[ tsujp gems 453 / 41 / 0 ] $ echo $PATH
/home/tsujp/.rvm/gems/ruby-2.0.0-p353/bin:/home/tsujp/.rvm/gems/ruby-2.0.0-p353@global/bin:/home/tsujp/.rvm/rubies/ruby-2.0.0-p353/bin:/home/tsujp/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/postgresql/9.1/bin:/home/tsujp
RVM RUBIES:
[ tsujp gems 454 / 42 / 0 ] $ rvm list rubies
rvm rubies
=* ruby-2.0.0-p353 [ x86_64 ]
# => - current
# =* - current && default
# * - default
我真的没有想法该怎么做,我无法在没有rails的情况下部署我的应用程序......