[MacPorts] #25858: php5-curl works in command line but not in apache2
#25858: php5-curl works in command line but not in apache2 ----------------------------------+----------------------------------------- Reporter: dfingonnet@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: php5-curl ----------------------------------+----------------------------------------- Hello, I've just installed php5-curl: {{{ sudo port install php5-curl }}} But I get with apache2 : {{{ Call to undefined function curl_version() }}} The same script works like a charm in command line. {{{ /opt/local/bin/php -r 'var_dump(curl_version());' }}} Any idea ? -- Ticket URL: <http://trac.macports.org/ticket/25858> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25858: php5-curl works in command line but not in apache2 ----------------------------------+----------------------------------------- Reporter: dfingonnet@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: php5-curl ----------------------------------+----------------------------------------- Comment(by dfingonnet@…): I found the problem but don't know how to deal with it. In my apache/php logs, when I start apache, I get : {{{ PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so, 9): Library not loaded: /opt/local/lib/libssl.0.9.8.dylib Referenced from: /opt/local/lib/libcurl.4.dylib Reason: image not found in Unknown on line 0 }}} -- Ticket URL: <http://trac.macports.org/ticket/25858#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25858: php5-curl works in command line but not in apache2 ----------------------------------+----------------------------------------- Reporter: dfingonnet@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: php5-curl ----------------------------------+----------------------------------------- Comment(by dfingonnet@…): the file /opt/local/lib/libssl.0.9.8.dylib doesn't exist But this one does /opt/local/lib/libssl.1.0.0.dylib -- Ticket URL: <http://trac.macports.org/ticket/25858#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25858: curl still links with openssl 0.9.8 ----------------------------------+----------------------------------------- Reporter: dfingonnet@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: curl ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… * status: new => assigned * port: php5-curl => curl Comment: Remember to Cc ports' maintainers (in this case, that's me). Your curl is still linking with the old openssl. That should have been fixed by r69520. I also increased the revision of php5-curl in r70108 to prompt a rebuild of that port. Please selfupdate to make sure your MacPorts and port definitions are up to date: {{{ sudo port selfupdate }}} View the list of outdated ports: {{{ port outdated }}} php5-curl should be listed. Hopefully so is curl. If curl is not listed, force it to upgrade anyway with: {{{ sudo port clean curl sudo port -n upgrade --force curl }}} Upgrade all other outdated ports: {{{ sudo port clean outdated sudo port upgrade outdated }}} Then restart the web server and try again. -- Ticket URL: <http://trac.macports.org/ticket/25858#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25858: curl still links with openssl 0.9.8 ----------------------------------+----------------------------------------- Reporter: dfingonnet@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: curl ----------------------------------+----------------------------------------- Comment(by dfingonnet@…): It works ! Thanks Ryan -- Ticket URL: <http://trac.macports.org/ticket/25858#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#25858: curl still links with openssl 0.9.8 -----------------------------------+---------------------------------------- Reporter: dfingonnet@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: invalid | Keywords: Port: curl | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => invalid Comment: Good, glad you got it working. -- Ticket URL: <http://trac.macports.org/ticket/25858#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts