[PHP] PHP Installation question

2006-12-06 Thread Beauford
Hi, 

I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().

The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:

./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib
--with-gd
make
make install

The above finishes with no error.

I rebooted, but still get same error, and zlib or gd doesn't show up in my
phpinfo output. zlib is installed, and from my understanding gd is included
with PHP, all the other libraries for gd are also installed. So what am I
doing wrong?

Also, how do I find out where something is installed? i.e. zlib. If I do a
search on it I get hundreds of hits...

Last. In the above ./configure line I get a message from PHP saying I am
using the built in version of MySQL - if I point it to the actual MySQL
source directory I get the following error.

configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22

Any help is appreciated.

I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Installation question

2006-12-06 Thread Chris

Beauford wrote:
Hi, 


I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().

The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:

./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib
--with-gd
make
make install

The above finishes with no error.

I rebooted, but still get same error, and zlib or gd doesn't show up in my
phpinfo output. zlib is installed, and from my understanding gd is included
with PHP, all the other libraries for gd are also installed. So what am I
doing wrong?


Check if you have zlib-devel or zlib-dev package installed. You need 
this to be able to compile support into other applications.


No idea how you do this on slackware.

Also try specifying the path to zlib:

--with-zlib=/usr for example.


Also, how do I find out where something is installed? i.e. zlib. If I do a
search on it I get hundreds of hits...


No idea about slackware. Do a search or ask a slackware list/forum.


Last. In the above ./configure line I get a message from PHP saying I am
using the built in version of MySQL - if I point it to the actual MySQL
source directory I get the following error.

configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22


Install the mysql-dev/devel &/or mysql-client packages most likely.

Or point it to the right directory. You need to point it to the base of 
the mysql package. Eg if mysql is installed in /usr/local/mysql (so 
binaries are under /usr/local/mysql/bin & libs are in 
/usr/local/mysql/lib) then


--with-mysql=/usr/local/mysql

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Installation question

2006-12-06 Thread Beauford
I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no
idea, and not sure how to find out.

Sort of figured out the MySQL problem, but now I get an error when I run
'make'. This is not a biggie, but the other problem I need to get resolved.

Thanks

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: December 6, 2006 7:35 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation question

Beauford wrote:
> Hi,
> 
> I am trying to install vBulletin and keep getting this error: Fatal error:
> Call to undefined function: gzinflate().
> 
> The only thing I can find on this is that zlib needs to be configured 
> with PHP at compile time. So I reinstalled PHP using the following:
> 
> ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib 
> --with-gd make make install
> 
> The above finishes with no error.
> 
> I rebooted, but still get same error, and zlib or gd doesn't show up 
> in my phpinfo output. zlib is installed, and from my understanding gd 
> is included with PHP, all the other libraries for gd are also 
> installed. So what am I doing wrong?

Check if you have zlib-devel or zlib-dev package installed. You need this to
be able to compile support into other applications.

No idea how you do this on slackware.

Also try specifying the path to zlib:

--with-zlib=/usr for example.

> Also, how do I find out where something is installed? i.e. zlib. If I 
> do a search on it I get hundreds of hits...

No idea about slackware. Do a search or ask a slackware list/forum.

> Last. In the above ./configure line I get a message from PHP saying I 
> am using the built in version of MySQL - if I point it to the actual 
> MySQL source directory I get the following error.
> 
> configure: error: Cannot find libmysqlclient library under 
> ../mysql-5.0.22

Install the mysql-dev/devel &/or mysql-client packages most likely.

Or point it to the right directory. You need to point it to the base of the
mysql package. Eg if mysql is installed in /usr/local/mysql (so binaries are
under /usr/local/mysql/bin & libs are in
/usr/local/mysql/lib) then

--with-mysql=/usr/local/mysql

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Installation question

2006-12-06 Thread Chris

Beauford wrote:

I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I have no
idea, and not sure how to find out.


Zlib is different to zlib-dev/zlib-devel.

The zlib package only contains the binaries and man pages.

The zlib-devel package contains the header files (zlib.h for example) 
you need for compiling against it.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Installation question

2006-12-07 Thread Beauford
I'm thinking though that this isn't really the problem. When I install
Slackware, I install everything (except for games). On my older PC I
installed version 8.1 and had no problems, but now with version 10 I have
problems. I'm pretty sure that zlib-dev or zlib-devel has never been
included in either version of Slack. So I think I'm just going around in
circles with this.

Thoughts..

B

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: December 7, 2006 12:15 AM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation question

Beauford wrote:
> I have zlib-1.2.1.1-i486-1. Whether that is zlib-devel or zlib-dev I 
> have no idea, and not sure how to find out.

Zlib is different to zlib-dev/zlib-devel.

The zlib package only contains the binaries and man pages.

The zlib-devel package contains the header files (zlib.h for example) you
need for compiling against it.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Installation question

2006-12-07 Thread Chris

Beauford wrote:

I'm thinking though that this isn't really the problem. When I install
Slackware, I install everything (except for games). On my older PC I
installed version 8.1 and had no problems, but now with version 10 I have
problems. I'm pretty sure that zlib-dev or zlib-devel has never been
included in either version of Slack. So I think I'm just going around in
circles with this.


locate zlib.h

if that returns nothing, then the problem is still that you need the 
zlib-dev package installed.


If it does return something then what does it return ? Maybe you need to 
specify the path to zlib in the php configure line.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Installation question

2006-12-07 Thread Beauford
On the old PC zlib.h is in /usr/local/inlude. On the new PC it's in
/usr/include and /usr/include/linux. I'm in the process of reinstalling PHP,
but I have my doubts.

Thanks

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: December 7, 2006 8:21 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation question

Beauford wrote:
> I'm thinking though that this isn't really the problem. When I install 
> Slackware, I install everything (except for games). On my older PC I 
> installed version 8.1 and had no problems, but now with version 10 I 
> have problems. I'm pretty sure that zlib-dev or zlib-devel has never 
> been included in either version of Slack. So I think I'm just going 
> around in circles with this.

locate zlib.h

if that returns nothing, then the problem is still that you need the
zlib-dev package installed.

If it does return something then what does it return ? Maybe you need to
specify the path to zlib in the php configure line.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Installation question

2006-12-07 Thread Ryan Creaser


Beauford wrote:
Hi, 


I am trying to install vBulletin and keep getting this error: Fatal error:
Call to undefined function: gzinflate().

The only thing I can find on this is that zlib needs to be configured with
PHP at compile time. So I reinstalled PHP using the following:

./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib
--with-gd
make
make install

The above finishes with no error.

I rebooted, but still get same error, and zlib or gd doesn't show up in my
phpinfo output. zlib is installed, and from my understanding gd is included
with PHP, all the other libraries for gd are also installed. So what am I
doing wrong?

Also, how do I find out where something is installed? i.e. zlib. If I do a
search on it I get hundreds of hits...

Last. In the above ./configure line I get a message from PHP saying I am
using the built in version of MySQL - if I point it to the actual MySQL
source directory I get the following error.

configure: error: Cannot find libmysqlclient library under ../mysql-5.0.22

Any help is appreciated.

I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36

Thanks


  


Did you recompile apache after running php's make install? Using 
--with-apache builds a module that gets compiled *into* apache (as 
opposed to --with-apxs which creates a dynamic module), ie. you need to 
rebuild apache after building php.  My guess is the gzinflate error 
probably comes from an old php module.


- rjc

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Installation question

2006-12-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-08 12:21:16 +1100:
> Beauford wrote:
> >I'm thinking though that this isn't really the problem. When I install
> >Slackware, I install everything (except for games). On my older PC I
> >installed version 8.1 and had no problems, but now with version 10 I have
> >problems. I'm pretty sure that zlib-dev or zlib-devel has never been
> >included in either version of Slack. So I think I'm just going around in
> >circles with this.
> 
> locate zlib.h
> 
> if that returns nothing, then the problem is still that you need the 
> zlib-dev package installed.

or that his locate database hasn't been rebuilt since he installed
the file. please give better advice.
 
-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Installation question

2006-12-09 Thread Beauford
 
Solved. Ditched Slackware 10 and installed Slackware 11. Both were installed
the exact same way, so who knows

Thanks to all.


-Original Message-
From: Ryan Creaser [mailto:[EMAIL PROTECTED] 
Sent: December 7, 2006 10:05 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Installation question


Beauford wrote:
> Hi,
>
> I am trying to install vBulletin and keep getting this error: Fatal error:
> Call to undefined function: gzinflate().
>
> The only thing I can find on this is that zlib needs to be configured 
> with PHP at compile time. So I reinstalled PHP using the following:
>
> ./configure --with-mysql --with-apache=../apache_1.3.36 --with-zlib 
> --with-gd make make install
>
> The above finishes with no error.
>
> I rebooted, but still get same error, and zlib or gd doesn't show up 
> in my phpinfo output. zlib is installed, and from my understanding gd 
> is included with PHP, all the other libraries for gd are also 
> installed. So what am I doing wrong?
>
> Also, how do I find out where something is installed? i.e. zlib. If I 
> do a search on it I get hundreds of hits...
>
> Last. In the above ./configure line I get a message from PHP saying I 
> am using the built in version of MySQL - if I point it to the actual 
> MySQL source directory I get the following error.
>
> configure: error: Cannot find libmysqlclient library under 
> ../mysql-5.0.22
>
> Any help is appreciated.
>
> I am using Slacware 10, PHP 4.4.4, MySQL5.0, and Apache 1.3.36
>
> Thanks
>
>
>   

Did you recompile apache after running php's make install? Using
--with-apache builds a module that gets compiled *into* apache (as opposed
to --with-apxs which creates a dynamic module), ie. you need to rebuild
apache after building php.  My guess is the gzinflate error probably comes
from an old php module.

- rjc

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php