I have just upgraded from Ubuntu 16.04 to 18.04. It seems to work fine (problems of AMD drivers fixed) though it seems the upgrade broke CURL that is used by my Ruby on Rails gem CURB.
When I start the Puma server I get this error :
/home/maxence/.rvm/gems/ruby-2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in
require': /usr/lib/x86_64-linux-gnu/libcurl.so.4: version
CURL_OPENSSL_3' not found (required by /home/maxence/.rvm/gems/ruby-2.5.0/gems/curb-0.9.6/lib/curb_core.so) - /home/maxence/.rvm/gems/ruby-2.5.0/gems/curb-0.9.6/lib/curb_core.so (LoadError)
Not sure how to fix.
I tried to resintall Curl and also RVM (that seemed to be broken also) though no luck.
I am pretty sure it is a problem with the upgrade because on my Desktop computer I use same configuration and everything works fine ..
EDIT
When reinstalling RVM i got this message
Installation of RVM in /usr/share/rvm/ is almost complete:
First you need to add all users that will be using rvm to 'rvm' group, and logout - login again, anyone using rvm will be operating with
umask u=rwx,g=rwx,o=rx
.To start using RVM you need to run
source /etc/profile.d/rvm.sh
in all your open shell windows, in rare cases you need to reopen all shell windows. * Please do NOT forget to add your users to the rvm group. The installer no longer auto-adds root or users to the rvm group. Admins must do this. Also, please note that group memberships are ONLY evaluated at login time. This means that users must log out then back in before group membership takes effect! maxence@maxence-XPS-15-9560:~$
Not sure if related. (I don't know how to do the above)
I solved it removing my libcurl4-openssl-dev:
And installing the previus version of libcurl:
I had a similar issue after update to 18.04. Although I was using a different ruby gem (
patron
) the issue was probably the same: the C library bindings had been compiled with an older version of libcurl, and were therefore asking for versions that no longer exist. So, to get it to work, you need to force the gem to be rebuilt.This is what I did to get it working again:
bundle exec gem pristine patron
(In my case it was the patron gem that was causing the issue, but you should be able to dobundle exec gem pristine curb
).sudo apt install libcurl4-gnutls-dev
(Install dev package so that you can compile code that uses libcurl4)bundle install
(This will rebuild patron/curb and therefore fix the problem!)Once those steps are done you can re-run your code and it should work now!
Solving in 2019 (can't find installation candidate for libcurl3) Go to: https://packages.ubuntu.com/search?keywords=libcurl3&searchon=names&suite=all§ion=all and install libcurl3
Also you may have to remove libcurl4
and install libssl1.0.0 :https://packages.ubuntu.com/search?keywords=libssl1.0.0&searchon=names&suite=all§ion=all