problem compiling PHP5

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

problem compiling PHP5

Damien Hull
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here's what I've got
1. OpenBSD 3.8
2. Apache 2
3. MySQL 5 (Static Libraries)
4. PHP5

PROBLEM
1. Configured PHP with "apxs2" and "--with-mysql=/usr/local/mysql"
2. "make" works fine. No error message.
3. "make install" can't find "libphp5.so"
4. I configured without MySQL support and everything works.

I also did a test with PHP4. Same problem. If I add mysql support it
can't find "libphp4.so".

What's going on here and how do I fix the problem?
- --
You can get my public PGP key at https://keyserver.pgp.com
http://www.digitaloverload.net
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEGeAW+rNhalK/8UURAuEzAJ4jJHHgW0sOuXav3ASqUlfdWem5YgCfVTLv
ZNwoqn9bDB5z+zcAW/u/KVc=
=/Fce
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: problem compiling PHP5

Joachim Schipper
On Thu, Mar 16, 2006 at 01:00:54PM -0900, Damien Hull wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here's what I've got
> 1. OpenBSD 3.8
> 2. Apache 2
> 3. MySQL 5 (Static Libraries)
> 4. PHP5
>
> PROBLEM
> 1. Configured PHP with "apxs2" and "--with-mysql=/usr/local/mysql"
> 2. "make" works fine. No error message.
> 3. "make install" can't find "libphp5.so"
> 4. I configured without MySQL support and everything works.
>
> I also did a test with PHP4. Same problem. If I add mysql support it
> can't find "libphp4.so".
>
> What's going on here and how do I fix the problem?

How about pkg_add(1)?

                Joachim

Reply | Threaded
Open this post in threaded view
|

Re: problem compiling PHP5

Damien Hull
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joachim Schipper wrote:

> On Thu, Mar 16, 2006 at 01:00:54PM -0900, Damien Hull wrote:
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Here's what I've got
>>1. OpenBSD 3.8
>>2. Apache 2
>>3. MySQL 5 (Static Libraries)
>>4. PHP5
>>
>>PROBLEM
>>1. Configured PHP with "apxs2" and "--with-mysql=/usr/local/mysql"
>>2. "make" works fine. No error message.
>>3. "make install" can't find "libphp5.so"
>>4. I configured without MySQL support and everything works.
>>
>>I also did a test with PHP4. Same problem. If I add mysql support it
>>can't find "libphp4.so".
>>
>>What's going on here and how do I fix the problem?
>
>
> How about pkg_add(1)?
>
> Joachim
>
>
>
I installed the ports tree and didn't see apache2. That's why I compiled
 from source.

I could try installing mysql from the ports tree and then install PHP5.
However, compiling from source should work.

- --
You can get my public PGP key at https://keyserver.pgp.com
http://www.digitaloverload.net
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEGhLL+rNhalK/8UURAj7pAJ0bcxDhlUI7GBmJdgiZs1qW0e4xTACfaR/D
nrX86iBy7Kiokf3ry9i/v8k=
=Mi0j
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: problem compiling PHP5

Lukasz Sztachanski
On Thu, Mar 16, 2006 at 04:37:15PM -0900, Damien Hull wrote:

> >>Here's what I've got
> >>1. OpenBSD 3.8
> >>2. Apache 2
> >>3. MySQL 5 (Static Libraries)
> >>4. PHP5
> >>
> >>PROBLEM
> >>1. Configured PHP with "apxs2" and "--with-mysql=/usr/local/mysql"
> >>2. "make" works fine. No error message.
> >>3. "make install" can't find "libphp5.so"
> >>4. I configured without MySQL support and everything works.
> >>
> >>I also did a test with PHP4. Same problem. If I add mysql support it
> >>can't find "libphp4.so".
> >>
> >>What's going on here and how do I fix the problem?
> >
> >
> >
> I installed the ports tree and didn't see apache2. That's why I compiled
>  from source.
>
> I could try installing mysql from the ports tree and then install PHP5.
> However, compiling from source should work.
>
did you use --enable-cli while compiling php*? Probably, the most
conveniet will be changing from --with-apxs=/usr/sbin/apxs to
--with-apxs2=/path/to/apxs2 in ports/www/php5/core/Makefile.


                                - Lukasz Sztachanski


--
0x058B7133 // 16AB 4EBC 29DA D92D 8DBE  BC01 FC91 9EF7 058B 7133
http://szati.blogspot.com
http://szati.entropy.pl

Reply | Threaded
Open this post in threaded view
|

Re: problem compiling PHP5

Damien Hull
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lukasz Sztachanski wrote:

> On Thu, Mar 16, 2006 at 04:37:15PM -0900, Damien Hull wrote:
>
>>>>Here's what I've got
>>>>1. OpenBSD 3.8
>>>>2. Apache 2
>>>>3. MySQL 5 (Static Libraries)
>>>>4. PHP5
>>>>
>>>>PROBLEM
>>>>1. Configured PHP with "apxs2" and "--with-mysql=/usr/local/mysql"
>>>>2. "make" works fine. No error message.
>>>>3. "make install" can't find "libphp5.so"
>>>>4. I configured without MySQL support and everything works.
>>>>
>>>>I also did a test with PHP4. Same problem. If I add mysql support it
>>>>can't find "libphp4.so".
>>>>
>>>>What's going on here and how do I fix the problem?
>>>
>>>
>>>
>>I installed the ports tree and didn't see apache2. That's why I compiled
>> from source.
>>
>>I could try installing mysql from the ports tree and then install PHP5.
>>However, compiling from source should work.
>>
>
> did you use --enable-cli while compiling php*? Probably, the most
> conveniet will be changing from --with-apxs=/usr/sbin/apxs to
> --with-apxs2=/path/to/apxs2 in ports/www/php5/core/Makefile.
>
>
> - Lukasz Sztachanski
>
>

Didn't know about "--enable-cli" but I did use "--with-apxs2".

I think I found out what the problem is. I happened to be watching php
compile when this big WRONG came up. Something about MySQL shared libraries.

It looks like PHP doesn't like statically compiled libraries which is
what I did with MySQL.

I'll recompile MySQL without static libraries and see what happens.

- --
You can get my public PGP key at https://keyserver.pgp.com
http://www.digitaloverload.net
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEGw+u+rNhalK/8UURAqDDAJ9dkA/skdzO7usDElXXg6cZthvWSwCeO7w3
T3GIVkofCNtNty+oNrcLpko=
=uIym
-----END PGP SIGNATURE-----