Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory

I am trying to execute rake db:create command. I get following error

Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory.

Could not open library 'libcurl': libcurl: cannot open shared object file: No such file or directory.
Could not open library 'libcurl.so': libcurl.so: cannot open shared object file: No such file or directory

Can anyone help me with this issue?

like image 342
user1247412 Avatar asked Oct 26 '12 18:10

user1247412


2 Answers

  • Try to install curl.

  • If it doesn't work, try the command ldconfig (actualising libs)

  • If it doesn't work :

    1. go to /usr/lib
    2. run find . | grep curl, locate the .so file (eg like curl_path.so or latest libcurl.so.xx)
    3. run ln -s {curl_path.so} /usr/lib/libcurl.so
    4. run ldconfig
like image 84
Hartator Avatar answered Sep 18 '22 22:09

Hartator


Actually - what fixed the problem was installing typhoeus:

gem install typhoeus

Or whatever package is actually needed for libcurl.

like image 27
edenzik Avatar answered Sep 21 '22 22:09

edenzik