Installation Error with Ruby 2.6.1 on Ubuntu 18.4.1 LTS Server
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