News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Package Manager error

Started by DGiless, March 16, 2004, 11:11:27 AM

Previous topic - Next topic

DGiless

here is the error message I get when starting the package manager...

QuoteFatal error: Call to undefined function: gzinflate() in d:\easyphp\www\smf\Sources\Subs-Package.php on line 155

It worked yestaerday  :(
can some one tell me what mistake I did an how to remedy ?

pulpitfire

hmm...has anything changed in your server settings or source code?

phantom99b

i get the same message .... the only thing i did was what [Unknown] suggested to fix the img bug :( :(

[Unknown]

You need zlib for the package manager to work properly.

-[Unknown]

DGiless

Thanks [Unknown] , that fixed it.

I don't know how this setting switched itself off...

martp

#5
I'm having the same problem (and it worked before, too :o)
[Unknown] what is zlib?

Jack.R.Abbit™

zlib is a zip/unzip library... it is needed to decompress the package before installing it.

[Unknown]

It's also compiled with PHP at least 80% of the time, I would estimate.

You should ask your host to recompile PHP with zlib...

-[Unknown]

martp

My host says evrything is in place with zlib. And it worked a while ago...  Can it be something else? :-[
PHP Version 4.3.2,
Configure Command     './configure' '--with-apxs=/opt/apache/bin/apxs' '--prefix=/opt/php4' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-ttf=/usr/include/freetype' '--with-mysql=/opt/mysql' '--with-pgsql=/opt/pgsql' '--with-mcrypt=shared,/usr' '--with-zlib=shared,/usr' '--with-mnogosearch=/opt/search' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--with-curl=shared,/opt' '--with-bz2=shared' '--enable-ftp' '--enable-memory-limit' '--enable-inline-optimization' '--enable-safe-mode' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-trans-sid' '--with-config-file-path=/opt/etc' '--disable-ctype'

[Unknown]

http://www.php.net/function.gzinflate

As you can see this function should be available in PHP 4.0.4 and above, as long as zlib is compiled in.

http://www.php.net/manual/en/ref.zlib.php

If you don't have the function available, PHP is not configured properly.

-[Unknown]

figmentium

just a quick question in regards to this zlib thing, because my package manager isn't working either and I get the same error. I have redhat 8 and php 4.3.4.

If I want to compile the zlib thing into it ... can I just go into the original php folder that I got the ./configure files from and just do it over? Or do I have to turn off stuff (like apache)? ...just wondering if I can just reinstall it on the fly.

my original ./configure was like this...
./configure --with-apxs=/var/apache/bin/apxs --with-mysql

I just have to add in the zlib stuff and i'm good right?... and 'make' and 'make install'

I tried doing this before but it didn't compile in. I don't know how to "uninstall" php and start over :(

[Unknown]

Well, you do this:

$ ./configure --with-apxs=/var/apache/bin/apxs --with-mysql --enable-ftp --enable-sockets --with-zlib

(the blue is just additional options I might recommend.  There's also gd, and jpeg, and png, etc.... but those require other libs.)

And then you have to make it, like so:

$ make

Difficult, isn't it :P?  At this point, you'll have to shut down Apache - for just a minute - and then, as root, make install.  Like so:

$ su
$ /etc/init.d/httpd stop
$ make install
$ /etc/init.d/httpd start
$ exit

And to uninstall PHP - which you don't need to do and I don't recommend!!

$ su
$ make uninstall
$ exit

-[Unknown]

Advertisement: