[英]Error during rails installation Ubuntu 12.04
我在Ubuntu機器上安裝rails,到目前為止我在閱讀以下教程時沒有遇到任何問題:
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm http://pragashblog.blogspot .COM / 2012/05 /設置-UP-RVM,紅寶石和護欄上,ubuntu.html
但是當我嘗試安裝rails時:
寶石安裝導軌
我收到以下錯誤:
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p374/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
make: I.: Command not found
make: [generator.o] Error 127 (ignored)
linking shared-object json/ext/generator.so
make: shared: Command not found
make: [generator.so] Error 127 (ignored)
make install
compiling generator.c
make: I.: Command not found
make: [generator.o] Error 127 (ignored)
linking shared-object json/ext/generator.so
make: shared: Command not found
make: [generator.so] Error 127 (ignored)
/usr/bin/install -c -m 0755 generator.so /usr/local/rvm/gems/ruby-1.9.3-p374/gems/json- 1.7.6/lib/json/ext
/usr/bin/install: cannot stat `generator.so': No such file or directory
make: *** [/usr/local/rvm/gems/ruby-1.9.3-p374/gems/json-1.7.6/lib/json/ext/generator.so] Error 1
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p374/gems/json-1.7.6 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p374/gems/json-1.7.6/ext/json/ext/generator/gem_make.out
顯然我已經檢查過make是否可用,並且它已經在PATH上了。 事實上, 哪個和哪個rvm給出了以下結果:/ usr / bin / make / usr / local / rvm / bin / rvm
所以......我不認為這與PATH有關。
有任何想法嗎?? 我該怎么辦?
你缺少必需的包裹:
rvm get head
rvm requirements run
rvm remove 1.9.3
rvm use 1.9.3 --install --default
gem install rails
我遇到了同樣的問題...在'sudo apt-get install build-essentials'之后運行'rvm reinstall 1.9.3'為我修復了它。 我想也許紅寶石沒有注意到我安裝gcc時,仍然相信我沒有它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.