Skip to main content

Installation Error with Ruby 2.6.1 on Ubuntu 18.4.1 LTS Server

Servers • Asked by AndreasGothe

I encountered following error trying to install Ruby 2.6.1 on a VMWare driven Ubuntu 18.4.1 Server with rbenv:

Installing ruby-2.6.1...

BUILD FAILED (Ubuntu 18.04 using ruby-build 20190130-2-g843c8bf)

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

Last 10 log lines:
linking ruby
collect2: error: ld returned 1 exit status
Makefile:272: recipe for target 'ruby' failed
make[2]: *** [ruby] Error 1
make[2]: Leaving directory '/tmp/ruby-build.20190211214018.121651/ruby-2.6.1'
exts.mk:82: recipe for target 'ruby' failed
make[1]: *** [ruby] Error 2
make[1]: Leaving directory '/tmp/ruby-build.20190211214018.121651/ruby-2.6.1'
uncommon.mk:286: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2

Does anyone know a solution for this?

Many thanks,
Andreas


Hi I'm having the same issue and would be glad to hear some answer about it to...!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.