0
我想在Amazon Linux的實例安裝護欄,但我不斷收到同樣的錯誤報道in this question:不能在Linux上安裝滑軌:「無法建立寶石原生擴展」紅寶石2.3
[[email protected] ~]$ sudo gem install rails --no-ri --no-rdoc
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /usr/local/share/ruby/gems/2.3/gems/nokogiri-1.7.2/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20170529-26560-9zyb13.rb extconf.rb
請注意,我手動升級紅寶石2.3
[[email protected] ~]$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux-gnu]
我也試圖與軌道的另一版本(我想安裝最新的,5.1.1),也有沒有運氣
sudo gem install rails --version 5.1.1 --no-ri --no-rdoc
sudo gem install rails --version 5.0.0 --no-ri --no-rdoc
sudo gem install rails --version 4.2.8 --no-ri --no-rdoc
這是可能的,還是我需要將ruby降級到2.0?
看一看RVM –
也沒你試過'寶石更新--system 2.0.3' –