LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > updgrade to php5 problem

Reply
 
Thread Tools Display Modes
  #21  
Old 08-27-2008, 08:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
add php configuration option "--with-png-dir=/opt/local".
Reply With Quote
  #22  
Old 08-28-2008, 10:55 AM
wagonlips wagonlips is offline
New Member
 
Join Date: Aug 2008
Posts: 9
Thank you! I did as you said and it was happy, for a second.
Next the configuration script asked for the mysql_config location which I found and added like so:
Code:
--with-config-file-path=/usr/local/mysql-5.0.51b-osx10.4-powerpc/bin
Then it wanted the location of mysql.sock and I added this:
Code:
--with-mysql-sock=/tmp/mysql.sock
"Surely, I am home free now," I thought to myself. But then...
Code:
configure: error: Cannot find MySQL header files under yes.
In this post http://litespeedtech.com/support/for...ead.php?t=2200 (you really are prolific), you indicate that the solution is to "install mysql client library devel package." I would like to do that, but I'm having a hard time finding such a thing for this OS X 10.5 (PPC) box. Any ideas?
Reply With Quote
  #23  
Old 08-28-2008, 03:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You probably have it already, just try
--with-mysql=/usr/local/mysql-5.0.51b-osx10.4-powerpc/
Reply With Quote
  #24  
Old 08-28-2008, 06:30 PM
wagonlips wagonlips is offline
New Member
 
Join Date: Aug 2008
Posts: 9
So I did that, and then some other things, too. I can't remember all the different things I tried, but eventually I got past this.

At the end of the configuration log I find the message:
Code:
configure: error: freetype.h not found.
But the file lives here:
Code:
/opt/local/include/freetype2/freetype/freetype.h
So far, I've tried --with-freetype-dir=/opt/local/include,
--with-freetype-dir=/opt/local/include/freetype2, and
--with-freetype-dir=/opt/local/include/freetype2/freetype
and it failed each time.

So I pulled the freetype call from the list.

Then I pulled the --with-mysqli bit and it configured!

But it didn't actually build.

Code:
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
Here are the parameters I used to get that far:
"--with-mysql=/usr/local/mysql-5.0.51b-osx10.4-powerpc/ --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-png-dir=/opt/local --with-config-file-path=/usr/local/mysql-5.0.51b-osx10.4-powerpc/bin --with-mysql-sock=/tmp/mysql.sock --with-jpeg-dir=/opt/local/lib"
Reply With Quote
  #25  
Old 09-03-2008, 09:36 AM
wagonlips wagonlips is offline
New Member
 
Join Date: Aug 2008
Posts: 9
I sort of solved this by using a CentOS Linux box instead. OS X is nice and all, but presented too many configuration hoops for me to jump through. With Yum I was able to easily install all of the libraries that building PHP5 required, had it up and running in a comparably short time.

Thank you very much for the help! The stuff I learned while trying to build it under OS X definitely made installing on Linux that much easier.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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

Forum Jump


All times are GMT -7. The time now is 03:34 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.