Hello, I can't get php5 with the postgresql variant to build. I've got all the dependencies, but it looks like the php build can't find the right headers. For some reason it's looking in /usr/local/pgsql/ include instead of /opt/local/include/postgresql81 (where are the include files are) Here's the logfile: -- matt kane's brain http://hydrogenproject.com aim -> mkbatwerk mkb@dirty.org
On Oct 6, 2006, at 14:57, Matt Kane's Brain wrote:
I can't get php5 with the postgresql variant to build. I've got all the dependencies, but it looks like the php build can't find the right headers. For some reason it's looking in /usr/local/pgsql/ include instead of /opt/local/include/postgresql81 (where are the include files are)
Here's the logfile: <port.log>
Ah. It is difficult for me to know what to do with this problem because I've never used PostgreSQL. All the errors seem to be in the pgsql PDO support that was recently added to the port. I'd send you a link to the ticket that caused this to be added, but OpenDarwin Bugzilla is no more and Mac OS Forge Trac doesn't like me yet. If you don't need the PDO support you can likely remove the --with- pdo-pgsql switch from the php5 postgresql variant. But I'm not sure what the correct fix is to allow pgsql PDO support to build properly.
Hi there Matt, there's already a ticket on MacPorts Trac: <http://trac.macports.org/ projects/macports/ticket/10677>. Use the Portfile.diff that is attached to this bug by wyuenho@gmail.com to patch you local installation of MacPorts. Once you downloaded the Portfile.diff, go to the folder "/opt/local/ var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/www/ php5" and run the following command: $ sudo patch -p0 < /path/to/Portfile.diff Then you can install php5 with postgresql81 dependency. José Tiburcio Ribeiro Netto On Oct 6, 2006, at 4:57 PM, Matt Kane's Brain wrote:
Hello,
I can't get php5 with the postgresql variant to build. I've got all the dependencies, but it looks like the php build can't find the right headers. For some reason it's looking in /usr/local/pgsql/ include instead of /opt/local/include/postgresql81 (where are the include files are)
Here's the logfile: <port.log>
-- matt kane's brain http://hydrogenproject.com aim -> mkbatwerk mkb@dirty.org
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
José Tiburcio Ribeiro Netto <jtibunetto@gmail.com> on Saturday, October 7, 2006 at 9:00 AM -0800 wrote:
there's already a ticket on MacPorts Trac: <[ http://trac.macports.org/projects/macports/ticket/10677 ]http://trac.macports.org/projects/macports/ticket/10677>.
Use the Portfile.diff that is attached to this bug by [ mailto:wyuenho@gmail.com ]wyuenho@gmail.com to patch you local installation of MacPorts.
Once you downloaded the Portfile.diff, go to the folder "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/www/php5" and run the following command:
$ sudo patch -p0 < /path/to/Portfile.diff
Then you can install php5 with postgresql81 dependency.
The maintainer applied the patches just hours ago as revision 2 to the php5 port so you don't need to do it manually now. Mark
OK, that almost worked :) It looks like this bug is also affecting me: http://trac.macports.org/ projects/macports/ticket/2750 I applied the diff and I'm rebuilding now. On Oct 7, 2006, at 14:59, Mark Duling wrote:
José Tiburcio Ribeiro Netto <jtibunetto@gmail.com> on Saturday, October 7, 2006 at 9:00 AM -0800 wrote:
there's already a ticket on MacPorts Trac: <[ http://trac.macports.org/projects/macports/ticket/10677 ]http://trac.macports.org/projects/macports/ticket/10677>.
Use the Portfile.diff that is attached to this bug by [ mailto:wyuenho@gmail.com ]wyuenho@gmail.com to patch you local installation of MacPorts.
Once you downloaded the Portfile.diff, go to the folder "/opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/www/php5" and run the following command:
$ sudo patch -p0 < /path/to/Portfile.diff
Then you can install php5 with postgresql81 dependency.
The maintainer applied the patches just hours ago as revision 2 to the php5 port so you don't need to do it manually now.
Mark
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-- matt kane's brain http://hydrogenproject.com aim -> mkbatwerk mkb@dirty.org
Hi, regarding ticket # 2750 it would nice to know the particulars of your set-up: OS version, apache version &c. I'd like to close the ticket, but I don't use apache1 (that is indicated in php.net's installation instructions). On 7.10.2006, at 23.50, Matt Kane's Brain wrote:
OK, that almost worked :)
It looks like this bug is also affecting me: http:// trac.macports.org/projects/macports/ticket/2750
I applied the diff and I'm rebuilding now.
On Oct 7, 2006, at 14:59, Mark Duling wrote:
José Tiburcio Ribeiro Netto <jtibunetto@gmail.com> on Saturday, October 7, 2006 at 9:00 AM -0800 wrote:
there's already a ticket on MacPorts Trac: <[ http://trac.macports.org/projects/macports/ticket/10677 ]http://trac.macports.org/projects/macports/ticket/10677>.
Use the Portfile.diff that is attached to this bug by [ mailto:wyuenho@gmail.com ]wyuenho@gmail.com to patch you local installation of MacPorts.
Once you downloaded the Portfile.diff, go to the folder "/opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/www/php5" and run the following command:
$ sudo patch -p0 < /path/to/Portfile.diff
Then you can install php5 with postgresql81 dependency.
The maintainer applied the patches just hours ago as revision 2 to the php5 port so you don't need to do it manually now.
Mark
! ! Jyrki Wahlstedt ! Kolmas linja 12 A 18 mob. +358-400-347 015 skype:jyrkiwahlstedt ! FI-00530 Helsinki www.wahlstedt.fi ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
Sure, I am using OS 10.4.8 powerpc, apache version 1.3.37, php version 5.1.6, postgresql 8.1.4. I eventually fixed the problem by changing the portfile to use /opt/ local/sbin/apxs instead of /usr/sbin/apxs. I don't know enough about Portfiles to figure out how to fix it for the macosx variant. Here's the portfile: variant apache conflicts apache2 fastcgi { if { ! [variant_isset macosx] } { depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with-apxs=${prefix}/sbin/apxs } else { configure.args-append --with-apxs=${prefix}/sbin/apxs } } Maybe something like this? variant apache conflicts apache2 fastcgi { if { ! [variant_isset macosx] } { depends_lib-append path:${prefix}/sbin/apxs:apache configure.args-append --with-apxs=${prefix}/sbin/apxs } else { # if apache is installed { configure.args-append --with-apxs=${prefix}/sbin/apxs } else { configure.args-append --with-apxs=/usr/sbin/apxs } configure.env CFLAGS="-DBIND_8_COMPAT=1 -DEAPI -O3" } } On Oct 9, 2006, at 6:13, Jyrki Wahlstedt wrote:
Hi, regarding ticket # 2750 it would nice to know the particulars of your set-up: OS version, apache version &c. I'd like to close the ticket, but I don't use apache1 (that is indicated in php.net's installation instructions).
On 7.10.2006, at 23.50, Matt Kane's Brain wrote:
OK, that almost worked :)
It looks like this bug is also affecting me: http:// trac.macports.org/projects/macports/ticket/2750
I applied the diff and I'm rebuilding now.
On Oct 7, 2006, at 14:59, Mark Duling wrote:
José Tiburcio Ribeiro Netto <jtibunetto@gmail.com> on Saturday, October 7, 2006 at 9:00 AM -0800 wrote:
there's already a ticket on MacPorts Trac: <[ http://trac.macports.org/projects/macports/ticket/10677 ]http://trac.macports.org/projects/macports/ticket/10677>.
Use the Portfile.diff that is attached to this bug by [ mailto:wyuenho@gmail.com ]wyuenho@gmail.com to patch you local installation of MacPorts.
Once you downloaded the Portfile.diff, go to the folder "/opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/www/php5" and run the following command:
$ sudo patch -p0 < /path/to/Portfile.diff
Then you can install php5 with postgresql81 dependency.
The maintainer applied the patches just hours ago as revision 2 to the php5 port so you don't need to do it manually now.
Mark
! ! Jyrki Wahlstedt ! Kolmas linja 12 A 18 mob. +358-400-347 015 skype:jyrkiwahlstedt ! FI-00530 Helsinki www.wahlstedt.fi ! ! Our life is no dream; but it ought to become one and perhaps will. ! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0 A780 6366 EFD9 139C C386
-- matt kane's brain http://hydrogenproject.com aim -> mkbatwerk mkb@dirty.org
How long will we need this hack, just for installing apache+php? seems like ridiculous and wrong. Anyone working on this problem?
On Oct 9, 2006, at 10:15, js wrote:
On Oct 9, 2006, at 08:25, Matt Kane's Brain wrote:
I am using OS 10.4.8 powerpc, apache version 1.3.37, php version 5.1.6, postgresql 8.1.4.
I eventually fixed the problem by changing the portfile to use / opt/local/sbin/apxs instead of /usr/sbin/apxs. I don't know enough about Portfiles to figure out how to fix it for the macosx variant. Here's the portfile:
How long will we need this hack, just for installing apache+php? seems like ridiculous and wrong.
Anyone working on this problem?
No, but let's talk about it. It always seemed to me that if you're building your own Apache, you're probably building Apache 2, since Apple already provides a perfectly serviceable Apache 1. On the other hand, MacPorts philosophy has always been to install its own software, even when Apple already provides the same software, for good reasons which are explained elsewhere. The php5 port, if you use the apache (not apache2) variant, currently uses Apple's Apache if you're on Mac OS X, and the apache(1) port otherwise (e.g. on Darwin, which is however no longer relevant as we are now MacPorts and no longer DarwinPorts). So there are three ways we can go: 1. Leave the port the way it is. On Mac OS X, if you build with the apache variant, you use Apple's Apache. 2. Change the port something like what Matt did, and make the apache variant build the apache port and ignore Apple's Apache. 3. Provide both options. Add a variant apple-apache[1] to use Apple's Apache and let the apache variant build MacPorts's apache port. What are your opinions? To those who have built MacPorts's apache(1) port, why have you done this and not used Apple's Apache? I'd just like to understand the use case. [1] If there is an existing naming convention for a variant like this we should adopt that.
On Oct 9, 2006, at 14:05, Ryan Schmidt wrote:
What are your opinions?
#3 ! As for why I'm using the MacPorts Apache, I noticed that the MacPorts version is four revisions ahead of Apple's Apache, and I had mistakenly thought that my webhost was using Apache 1.3. Apparently I am wrong so all this work was sort of pointless. *sigh* -- matt kane's brain http://hydrogenproject.com aim -> mkbatwerk mkb@dirty.org
On Oct 9, 2006, at 2:05 PM, Ryan Schmidt wrote:
No, but let's talk about it.
It always seemed to me that if you're building your own Apache, you're probably building Apache 2, since Apple already provides a perfectly serviceable Apache 1.
Macports version is usually updated faster, and you might want it linked against more-often updated macports libraries (like openssl).
On the other hand, MacPorts philosophy has always been to install its own software, even when Apple already provides the same software, for good reasons which are explained elsewhere.
[snip]
3. Provide both options. Add a variant apple-apache[1] to use Apple's Apache and let the apache variant build MacPorts's apache port.
This is probably the best option (and similar to what I did for subversion). -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (8)
-
Daniel J. Luke
-
José Tiburcio Ribeiro Netto
-
js
-
Jyrki Wahlstedt
-
Mark Duling
-
Matt Kane's Brain
-
Ryan Schmidt
-
Ryan Schmidt