开发者

Installing PHP-CURL using apt-get

开发者 https://www.devze.com 2022-12-14 03:05 出处:网络
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 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 sup开发者_JAVA技巧ply 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号