I recently updated my system to Ubuntu 18.04 LTS, and since then, the Ruby version seems to have updated to 2.5. The issue is that, when attempting to deploy a project that uses
I had a same issue, though it seemed problem was in gcc, in my case problem was in libssl-dev, this is what helped me:
sudo apt purge libssl-dev && sudo apt install libssl1.0-dev
I use rbenv. If you use rvm, you might hit problem after running previous command:
/usr/share/rvm/scripts/base: No such file or directory
I recommend trying rbenv. After installing libssl1.0-dev, everything was flawless.