Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GD, Libpng,Jpeg and Zlib installation

Status
Not open for further replies.

yunna

Programmer
Nov 18, 2002
5
CA
Hello All,

I installed PHP4.2.3 and I believe it is working by checking the phpinfo() and other php programs.

I like to install a free Chart software written in PHP,which will convert the data into different charts. It needs GD1.8, Libpng, Jpeg6 and Zlib to support it. I got them all, even T1lib and freetype for the font. I unzipped each of them in diffrent directories.

My problem now is how to install them and make them working together. There are so many.

Could anyone please help me? Thanks a lot.

 
You're going to have to install each individually.

I would install them in the following order:
zlib
lbeg6
libpng
freetype
t1lib
gd

Each of those tarballs has a README or an INSTALL file. Just follow the instructions in that file.

Then recompile PHP to activate support for those functions. You need to hand PHP's configure script the following options: "--with-zlib --with-freetype-dir=/usr --with-tilib=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-gd=/usr " as well as the options with which you've already compiled PHP. ______________________________________________________________________
TANSTAAFL!
 
Thank you for the answer. It is very useful. But since I'm not familar with Windows. I still have some confusions.

Can I just use the binary and library without compiling the source file?

How to compile PHP? By using phpinfo()?

 
You are running PHP on windows? ______________________________________________________________________
TANSTAAFL!
 
Yes. I installed apache, php on Windows NT. I download some test program and call like "http:\\localhost\test.php". It did show the result. Maybe I should say MS-DOS because I used php-gtk first and call my program on command prompt like "php4 php -q test.php". It works well.

Shouldn't I run php on Windows. If it is not, I could try on Linux. I need all info about php since I'm a beginer.

Thanks.
 
PHP runs fine on Win32. It's just that to do what you want to do, you're going to have to compile software from source.

That's easy on the unix-like operating systems. They all come with compilers. Win32 does not.

You can download the cygwin apps at which should include a compiler you can use to compile the features you need into PHP. ______________________________________________________________________
TANSTAAFL!
 
I downloaded cygwin before since it is required by XEmacs I use to write Java program. It seems I have them all, right? Could you tell me the proceture to compile the php please? Thanks.
 
You're going to have to compile and install all the other libraries, first. Each one comes with an INSTALL or README (or both) file which describes how that particular library is compiled and installed.

Then you're going to configure, make, and make install PHP. You need to hand the configure command with at least the arguments --with-zlib --with-freetype-dir=<directory where you installed freetype> --with-png-dir=<directory where you installed libpng> --with-jpeg-dir=<directory where you installed libjpeg> --with-t1lib=<directory where you installed t1lib> --with-gd=<directory where you installed gd> ______________________________________________________________________
TANSTAAFL!
 
thanks. Clear enough. It is going to help me a lot.
 
good day!

can i know where to get all these tools?

zlib
lbeg6
libpng
freetype
t1lib
gd

and i dun really understand the configuration steps you all have discuss.

plaese help me. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top