50 Experience
0 Lessons Completed
0 Questions Solved


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' recipe for target 'ruby' failed
make[1]: *** [ruby] Error 2
make[1]: Leaving directory '/tmp/ruby-build.20190211214018.121651/ruby-2.6.1' recipe for target 'build-ext' failed
make: *** [build-ext] Error 2

Does anyone know a solution for this?

Many thanks,

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.