main:Object 的未定义局部变量或方法“make”(NameError)
undefined local variable or method `make' for main:Object (NameError)
我在 Ubuntu 18 尝试安装 rest-client sudo gem install rest-client
时遇到以下错误:
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
,但没有帮助!
谁能帮帮我?
通常,
sudo apt-get install build-essential
应该可以。
我在 Ubuntu 18 尝试安装 rest-client sudo gem install rest-client
时遇到以下错误:
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
,但没有帮助!
谁能帮帮我?
通常,
sudo apt-get install build-essential
应该可以。