我已經從gitlab克隆了一個存儲庫。當我嘗試運行Gem :: Ext :: BuildError:錯誤:無法構建gem原生擴展,安裝json時出錯(1.8.1)
bundle install
它給出了一個錯誤
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Using i18n 0.6.11
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150904-16780-8gjzk0.rb extconf.rb --version
creating Makefile
make "DESTDIR=" clean
rm -f
rm -f generator.so *.o *.bak mkmf.log .*.time
make "DESTDIR="
*************some code************************
^
Makefile:238: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/crypsis/.gem/ruby/gems/json-1.8.1 for inspection.
Results logged to /home/crypsis/.gem/ruby/extensions/x86_64-linux/json-1.8.1/gem_make.out
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
我
包更新 和 寶石試圖安裝捆綁
仍無法正常工作如果有人遇到類似的問題請幫幫我。
是安裝在系統中'gcc'? – Vishnu
是的,它是5.1.1 @Mahesh – vjnan369
有完全相同的問題..試過cmake解決方案..回來了「cmake已經是最新的版本。」 –