Upgraded from 16.04 to 18.04 now curl.so is missing
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I 've upgrade my ubuntu to 18.04 and now I miss my curl.so.
Normally it would be here /usr/lib/php/20160501/curl.so but it is gone.
On the command line I can use curl but not in my php code.
php -m | grep curl leads to
PHP Warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
A quick fix would be to just place "a" curl.so in that folder but where do I get a curl.so?
I tried to reinstall it with apt install php-curl but that gives me
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-curl : Depends: php7.2-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'm still using ppa:ondrej/php.
When I check /var/lib/php/7.1/enabled_by_admin
curl is listed.
In my /etc/php/7.1/cli/mods_available
curl.ini is there.
And in my /etc/php/7.1/cli/conf.d
the symlink to that ini is also there.
wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
cd curl-7.59.o
./configure
make
sudo make install
also didn't help.
apache2 php curl
add a comment |Â
up vote
2
down vote
favorite
I 've upgrade my ubuntu to 18.04 and now I miss my curl.so.
Normally it would be here /usr/lib/php/20160501/curl.so but it is gone.
On the command line I can use curl but not in my php code.
php -m | grep curl leads to
PHP Warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
A quick fix would be to just place "a" curl.so in that folder but where do I get a curl.so?
I tried to reinstall it with apt install php-curl but that gives me
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-curl : Depends: php7.2-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'm still using ppa:ondrej/php.
When I check /var/lib/php/7.1/enabled_by_admin
curl is listed.
In my /etc/php/7.1/cli/mods_available
curl.ini is there.
And in my /etc/php/7.1/cli/conf.d
the symlink to that ini is also there.
wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
cd curl-7.59.o
./configure
make
sudo make install
also didn't help.
apache2 php curl
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I 've upgrade my ubuntu to 18.04 and now I miss my curl.so.
Normally it would be here /usr/lib/php/20160501/curl.so but it is gone.
On the command line I can use curl but not in my php code.
php -m | grep curl leads to
PHP Warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
A quick fix would be to just place "a" curl.so in that folder but where do I get a curl.so?
I tried to reinstall it with apt install php-curl but that gives me
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-curl : Depends: php7.2-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'm still using ppa:ondrej/php.
When I check /var/lib/php/7.1/enabled_by_admin
curl is listed.
In my /etc/php/7.1/cli/mods_available
curl.ini is there.
And in my /etc/php/7.1/cli/conf.d
the symlink to that ini is also there.
wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
cd curl-7.59.o
./configure
make
sudo make install
also didn't help.
apache2 php curl
I 've upgrade my ubuntu to 18.04 and now I miss my curl.so.
Normally it would be here /usr/lib/php/20160501/curl.so but it is gone.
On the command line I can use curl but not in my php code.
php -m | grep curl leads to
PHP Warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
A quick fix would be to just place "a" curl.so in that folder but where do I get a curl.so?
I tried to reinstall it with apt install php-curl but that gives me
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-curl : Depends: php7.2-curl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I'm still using ppa:ondrej/php.
When I check /var/lib/php/7.1/enabled_by_admin
curl is listed.
In my /etc/php/7.1/cli/mods_available
curl.ini is there.
And in my /etc/php/7.1/cli/conf.d
the symlink to that ini is also there.
wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
cd curl-7.59.o
./configure
make
sudo make install
also didn't help.
apache2 php curl
edited Apr 30 at 8:24
mook765
2,8752717
2,8752717
asked Apr 30 at 7:07
![](https://i.stack.imgur.com/shMX7.jpg?s=32&g=1)
![](https://i.stack.imgur.com/shMX7.jpg?s=32&g=1)
Insasse
1508
1508
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
First I freshly added the ppa and reinstalled php7.1
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1
Than I installed php7.1-curl
and voila all works perfectly fine again.
The problem was that I got old ppa version.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
First I freshly added the ppa and reinstalled php7.1
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1
Than I installed php7.1-curl
and voila all works perfectly fine again.
The problem was that I got old ppa version.
add a comment |Â
up vote
4
down vote
accepted
First I freshly added the ppa and reinstalled php7.1
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1
Than I installed php7.1-curl
and voila all works perfectly fine again.
The problem was that I got old ppa version.
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
First I freshly added the ppa and reinstalled php7.1
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1
Than I installed php7.1-curl
and voila all works perfectly fine again.
The problem was that I got old ppa version.
First I freshly added the ppa and reinstalled php7.1
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.1
Than I installed php7.1-curl
and voila all works perfectly fine again.
The problem was that I got old ppa version.
edited Apr 30 at 8:20
mook765
2,8752717
2,8752717
answered Apr 30 at 8:15
![](https://i.stack.imgur.com/shMX7.jpg?s=32&g=1)
![](https://i.stack.imgur.com/shMX7.jpg?s=32&g=1)
Insasse
1508
1508
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029985%2fupgraded-from-16-04-to-18-04-now-curl-so-is-missing%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password