Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable php curl in gentoo linux

I've PHP installed in server (gentoo linux) without curl support. I know how to add php curl extension in ubuntu, centos, etc. But I'm new to gentoo.

Any help will be appreciated.

Thanks Habeeb


1 Answers

You should emerge PHP with the curl USE flag. I'm going to assume you know more or less what emerge and an USE flag is, since you've stated you've installed PHP already.

You should add this line to /etc/portage/package.use:

dev-lang/php curl

And then emerge php telling Portage to look for new USE flags:

emerge --newuse dev-lang/php

Keep in mind that both editing package.use and emerge need to be done as a super user.

like image 115
Pawel J. Wal Avatar answered Nov 04 '25 22:11

Pawel J. Wal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!