Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > ZZiplib and Zip support in php

ZZiplib and Zip support in php
Thread Tools
Fresh-Faced Recruit
Join Date: May 2005
Status: Offline
Reply With Quote
May 12, 2005, 11:30 AM
 
Hey,
I'm pretty new to using a mac and in general, unix command line. I am trying to set up a webserver with apache2, mysql, and php with zip support.

I have used the packaging product iTools to get apache, mysql and php up and running, but I still cannot get the zip libraries.

Thus, my question is twofold.
First, I found that I first need to download and install zziplib.
I downloaded the zziplib to my php/extensions folder. I then ran tar -xjvf on it and it unpacked fine.
Next, I went into the directory and ran ./configure && make && make check && make install.

Unfortunately that gives me an error on zip.lo, with a lot of messages saying: dereferencing pointer to incomplete type

Can someone help me figure out how to install zziplib?

And, I'll have to jump ahead of myself to ask the second question...
What do I do to get php configured with zip support using this newly installed zziplib?

Any help is welcome

Jaelan
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
May 13, 2005, 01:23 AM
 
Are you on tiger or panther? that may make a difference, could be a gcc-4.0 thing.

half of my compile problems are solved by getting the includes right. you may have to tell it exactly where the library files , etc. are. Go through the read me and look for how it passes paths to configure, like:
.configure -L/usr/local or ./configure --with-libs=/usr/local/lib , etc.

as for compiling php you usually need to recompile it with a config flag to tell it to turn on the module and where to find it.
something like this:

--enable-zip --with-zziplib-dir=/usr
or
--with-zziplib=/path/to/zzip...

that is not the real line - I'm guessing here - you'll have to dig through the INSTALL file or the online php docs to learn the actual syntax.
http://www.php.net/manual/en/configure.php
or maybe this
./configure --help


good luck
     
Jaelan  (op)
Fresh-Faced Recruit
Join Date: May 2005
Status: Offline
Reply With Quote
May 13, 2005, 10:18 AM
 
Thanks for the reply.
I was attempting to put it on Tiger, so it might be that gcc-4 issue. It's kind of funny. I've searched for 2 days on this and in the span of 2 hours, I've heard 2 comments dealing w/ tiger and zziplib.
I attempted to run ./configure --libdir=/usr/local/lib, but it still runs into an error on make. What lib directory should I pass to it. Aka, what libraries might it be looking for?

Hopefully, zziplib can be put on tiger.

Jaelan
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:36 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2