在尝试安装Rest-Client sudo gem install rest-client
时,在Ubuntu 18上出现以下错误:
current directory: /var/lib/gems/2.5.0/gems/unf_ext-0.0.7.6/ext/unf_ext
/usr/bin/ruby2.5 -r ./siteconf20191111-4360-816cyg.rb extconf.rb
checking for -lstdc++... no
creating Makefile
current directory: /var/lib/gems/2.5.0/gems/unf_ext-0.0.7.6/ext/unf_ext
make "DESTDIR=" clean
/var/lib/gems/2.5.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from /usr/local/bin/make:23:in `load'
from /usr/local/bin/make:23:in `<main>'
current directory: /var/lib/gems/2.5.0/gems/unf_ext-0.0.7.6/ext/unf_ext
make "DESTDIR="
/var/lib/gems/2.5.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from /usr/local/bin/make:23:in `load'
from /usr/local/bin/make:23:in `<main>'
make failed, exit code 1
尝试安装gcc
,ruby-dev
,make
,但没有帮助!
有人可以帮助我吗?
答案 0 :(得分:1)
通常,
sudo apt-get install build-essential
应该工作。