RVM Ruby 2.3.0 DevKit是否未安装?
我正在尝试在AmazonWeb服务上安装RubyonRailsRVM Ruby 2.3.0 DevKit是否未安装?,ruby,bundler,Ruby,Bundler,我正在尝试在AmazonWeb服务上安装RubyonRails 与RVM一起安装的ruby-2.3.0[x86_64] rvm 1.26.11 轨道5.0.0beta3 卡皮斯特拉诺3.4 部署到服务器时,在使用bundler安装依赖项之前,一切都可以正常运行。似乎是说DevKit没有与Ruby一起安装 ... Installing mini_portile2 2.0.0 Using json 1.8.3 Installing nio4r 1.2.1 with native extensio
- 与RVM一起安装的ruby-2.3.0[x86_64]
- rvm 1.26.11
- 轨道5.0.0beta3
- 卡皮斯特拉诺3.4
...
Installing mini_portile2 2.0.0
Using json 1.8.3
Installing nio4r 1.2.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/www/myWebsite/shared/bundle/ruby/2.3.0/gems/nio4r-1.2.1/ext/nio4r
/home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160305-3397-alwetw.rb extconf.rb
checking for unistd.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/$(RUBY_BASE_NAME)
/home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:587:in `try_cpp'
from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/mkmf.rb:1091:in `block in have_header'
...
如何检查RVM是否正确安装了DevKit?或者问题出在别的地方?它还提到了丢失的库/头啊,刚刚找到并阅读了那个日志文件,它指向了一个丢失的库
gmp
以下命令修复了该问题:
sudo apt-get install libgmp3-dev
你是最好的人。