main:Object(NameError)的未定义局部变量或方法“ make”

时间:2019-11-11 15:40:19

标签: ruby rest-client

在尝试安装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

尝试安装gccruby-devmake,但没有帮助!
有人可以帮助我吗?

1 个答案:

答案 0 :(得分:1)

通常,

sudo apt-get install build-essential

应该工作。