Install GD under RedHat (support GIF)

zhaozj2021-02-16  57

The software that needs to be installed: php4.3.1 apache2.0.49 zlib-1.1.4 libpng-1.2.5 jpegsrc.v6b GD-2.0.21GIF Zendoptimizer FreeType

1. Install Zlib (./ Configure && Make & Make Install)

2. Install JPEGSRC (./ Configure && Make && Make Install-Lib && Make Install)

3. Install libpng (cp scripts / makefile.linux makefile && make && make install-headers && make install)

4. Install GD (./ Configure --with-JPEG = / usr / local --with-png = / usr / local --with-freetype = / usr && make && make install)

5. Install apache (./ Configure --prefix = / usr / local / apache-php --share-modules = max && make && make install)

6. Install PHP (./ Configure --with-apxs2 = / usr / local / apache-php / bin / apxs --with-jpeg-dir = / usr / local --with-png-dir = / usr / local - WITH-GD = / usr / local --enable-trace-vars --with-zlib-dir = / usr / local --with-mysql = / usr / local / mysql && make && make install

7. Install ZendOptimizer (./ install.sh)

Error record:

1. [root @ Dell4300 conf] # ../bin/apachectl start

[Tue Jun 01 16:06:57 2004] [error] VirtualHost 61.151.243.205:0 - mixing * ports and non- * ports with a NameVirtualHost address is not supported, proceeding with undefined results (98) Address already in use: Make_sock: Could Not Bind To Address 0.0.0.0:80 No Listening Sockets Available, Shutting Down Unable To Open Logs

A: You must add a port number on Apache2.0. *! Otherwise, the default is 0

2. There is a problem with the statistics on the page. Displays no statistics.

A: PHP.INI is not worthy! Register_globals = on

3. There is no original website at the page!

A: You need the following two lines in the Apache configuration file:

Addtype text / html .shtml

AddHTML.html

4. It turned out to use PHP-4.3.6, when compiled, an error occurred:

/Opt/Download/PHP-4.3.6/ext/gd/gd.c:385: undefined Reference to `gdfreefontcache'collect2: ld returned 1 exit status

Make: *** [SAPI / CLI / PHP] Error 1

A: I will disappear with PHP-4.3.1! Reference documentation: http://www.boutell.com/gd/manual2.0.26.html GD documentation, detail the various aspects of GD, first recommend http://www.rime.com.au/gd/ If The above address is to tell you what is going on, then this address is where you download the GD library. Because the official downloaded GD library is not a GIF patch. Why is the above documentation already explained! http://www.lslnet.com/linux/docs/linux-3366.htm Refer to the example inside, I think it is better than me, but I started using his method and unsuccessful, so I will have me. The birth of this article

转载请注明原文地址:https://www.9cbs.com/read-19562.html

New Post(0)