Search code examples
phpcurllibcurlgentoo

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


Solution

  • 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.