BUILD FAILED (Ubuntu 20.04 using ruby-build 20210420) - Ruby year install error using asdf

Asked

Viewed 142 times

-1

When trying to install ruby by asdf with the command:

asdf install ruby 2.7.2

I get the result:

Downloading ruby-2.7.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.bz2
Installing ruby-2.7.2...

BUILD FAILED (Ubuntu 20.04 using ruby-build 20210420)

Inspect or clean up the working tree at /tmp/ruby-build.20210428000115.45731.J08MXP
Results logged to /tmp/ruby-build.20210428000115.45731.log

Last 10 log lines:
checking for _setjmp as a macro or function... yes
checking for sigsetjmp as a macro or function... no
checking for setjmp type... __builtin_setjmp
checking for prefix of external symbols... NONE
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking if make is GNU make... ./configure: line 29863: make: command not found
no
checking for safe null command for make... configure: error: no candidate for safe null command

Someone can help me?

2 answers

1

You don’t have the GNU Make installed, at least the script configuration, the configure, stopped at this point. Install it with:

sudo apt install make

And as you are compiled something for Ruby I suggest also install the package ruby2.7-dev that will install what you need to compile things for the language.

-2

you will need to install some packages to compile ruby:

sudo apt install build-essential libxml2 libssl-dev

these are the main ones I know

Browser other questions tagged

You are not signed in. Login or sign up in order to post.