[MacPorts] #40597: Trouble upgrading Mac OS 10.6.8 from PHP 5.3.26 to the newest version PHP 5.5

MacPorts noreply at macports.org
Fri Sep 27 03:41:45 PDT 2013


#40597: Trouble upgrading Mac OS 10.6.8 from PHP 5.3.26 to the newest version PHP
5.5
--------------------------+--------------------------------
  Reporter:  jonjon831@…  |      Owner:  macports-tickets@…
      Type:  defect       |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.2.0
Resolution:  invalid      |   Keywords:
      Port:  php          |
--------------------------+--------------------------------
Changes (by ryandesign@…):

 * status:  new => closed
 * cc: ryandesign@… (added)
 * type:  update => defect
 * priority:  High => Normal
 * keywords:  syntax error, line 489, line 8 =>
 * resolution:   => invalid
 * port:   => php


Old description:

> I'm getting this error when trying to upgrade with Terminal:
>
> httpd: Syntax error on line 489 of /private/etc/apache2/httpd.conf:
> Syntax error on line 8 of /private/etc/apache2/other/+php-osx.conf:
> Cannot load /usr/local/php5/libphp5.so into server:
> dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _libiconv\n
> Referenced from: /usr/local/php5/lib/libintl.8.dylib\n  Expected in:
> /usr/lib/libiconv.2.dylib\n in /usr/local/php5/lib/libintl.8.dylib
>
> I just recently upgraded to Mac OS Snow Leopard. The PHP version 5.3 came
> with the install. I'm having trouble upgrading to the newest PHP version.
> I'm trying to upgrade with MacPorts but it doesn't seem to work. I also
> tried upgrading with http://php-osx.liip.ch, but doesn't seem to let me
> upgrade.
>
> Any help will be appreciated. Thank you.

New description:

 I'm getting this error when trying to upgrade with Terminal:

 {{{
 httpd: Syntax error on line 489 of /private/etc/apache2/httpd.conf: Syntax
 error on line 8 of /private/etc/apache2/other/+php-osx.conf: Cannot load
 /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so,
 10): Symbol not found: _libiconv\n  Referenced from:
 /usr/local/php5/lib/libintl.8.dylib\n  Expected in:
 /usr/lib/libiconv.2.dylib\n in /usr/local/php5/lib/libintl.8.dylib
 }}}

 I just recently upgraded to Mac OS Snow Leopard. The PHP version 5.3 came
 with the install. I'm having trouble upgrading to the newest PHP version.
 I'm trying to upgrade with MacPorts but it doesn't seem to work. I also
 tried upgrading with http://php-osx.liip.ch, but doesn't seem to let me
 upgrade.

 Any help will be appreciated. Thank you.

--

Comment:

 Welcome to MacPorts, but nothing about your report suggests a problem in
 MacPorts. The only thing you said about MacPorts was that its PHP "doesn't
 seem to work" which doesn't give us anything to go on. I am the maintainer
 of PHP in MacPorts and it works fine for me.

 The error message you showed mentions /private/etc/apache2/httpd.conf,
 which is the configuration of Apple's Apache server (not MacPorts'), and
 /usr/local/php5/libphp5.so, which could have come from anywhere (except
 MacPorts). The MacPorts prefix (unless you've changed it) is /opt/local,
 so if your problems concern software in a different location, it's not
 MacPorts software and we can't help you with it.

 If you would like to try MacPorts PHP 5.5, install the php55 port by
 running "`sudo port install php55`". Since I presume you'll want to run
 that inside a web server, perhaps Apache, you'll probably also want the
 PHP 5.5 Apache 2 module, which you can install by running "`sudo port
 install php55-apache2handler`". You'll then need to configure MacPorts
 Apache to load that module and customize the server to your liking. We do
 have a [wiki:howto/MAMP wiki page] about setting this up, but I hesitate
 to mention it because it is years out of date and does not address the
 current PHP 5.5 ports, so you'll have to make the appropriate adjustments
 to the instructions as you read them.

 Note that /usr/local is a special location. Software installed there can
 interfere with software installed anywhere else, including MacPorts'
 /opt/local prefix. Therefore we do not support the use of MacPorts while
 software is installed in /usr/local, so if you wish to try MacPorts,
 remove or move aside /usr/local before doing so.

 If you have any questions about how to use MacPorts, please write to the
 [https://lists.macosforge.org/mailman/listinfo/macports-users macports-
 users mailing list]. If you encounter build failures, then please do
 [http://guide.macports.org/chunked/project.html file tickets] in this
 issue tracker.

-- 
Ticket URL: <https://trac.macports.org/ticket/40597#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list