Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I ran :

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl


in both /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini

But running php from the command line gives me the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20090626+lfs/' - /usr/lib/php5/20090626+lfs/     
cannot open shared object file: No such file or directory in Unknown on line 0

Running the install commands again tells me that everything is already the newest version.



Returns nothing.

share|improve this question

I removed:

from both php.ini files and I no longer get the error.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.