简体   繁体   中英

Installing PHP-CURL using apt-get

I installed curl using synaptic package manager on my Ubuntu machine. However it didn't installed with ssl enabled. When I do curl-config --protocols , it does not show HTTPS.

I want to install curl with ssl enabled. If I do it manually by downloading curl and then compiling it with --with-ssl flag and then recompiling my PHP with -with-curl , this is tedious and also i have many packages which are installed in PHP, so i have to re-install them back again.

I am looking for some way if i could supply the --with-ssl=/usr/lib/ssl flag with apt-get or synaptic package manager. Is it possible?

You need to uninstall your existing package and install the curl-ssl package like this:

sudo apt-get remove curl
sudo apt-get install curl-ssl

Depending on what else you have installed, you may also need libcurl .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM