wendu 发表于 2018-9-30 12:45:24

编译安装apache+mysql+php 支持jpg,gd等

tar zxvf apache_1.3.37.tar.gz  tar zxvf mysql-5.0.45.tar.gz
  tar zxvf php-5.2.3.tar.gz
  tar zxvf jpegsrc.v6b.tar.gz
  tar zxvf libpng-1.2.5.tar.gz
  tar zxvf zlib-1.2.3.tar.gz
  tar zxvf freetype-2.1.9.tar.gz
  tar zxvf gd-2.0.28.tar.gz
  tar zxvf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
  cd mysql-5.0.45
  ./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql --with-mysqld-user=mysql&&make&&make install
  cd /usr/local/src/apache_1.3.37
  ./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-shared=max &&make &&make install
  cd /usr/local/src/libpng-1.2.5
  cp scripts/makefile.linux ./makefile
  make &&make install
  cd /usr/local/src/jpeg-6b
  mkdir -p /usr/local/man/man1
  ./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
  cd /usr/local/src/freetype-2.1.9
  ./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
  cd /usr/local/src/zlib-1.2.3
  ./configure &&make &&make install
  cd /usr/local/src/gd-2.0.28/
  ./configure --prefix=/usr/local --with-jpeg=/usr/local --with-png=/usr/local --with-zlib --with-freetype=/usr/local &&make &&make install
  cd /usr/local/src/php-5.2.3
  ./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --enable-trace-vars --with-zlib --with-config-file-path=/etc --enable-gd-native-ttf --with-bz2 --with-iconv --with-zlib --disable-ipv6 --enable-discard-path --bindir=/usr/bin --sbindir=/usr/sbin --disable-debug --disable-rpath --with-curl --with-exec-dir=/usr/bin --with-gettext --with-openssl --with-xml --with-xmlrpc=shared --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-calendar --with-mysql=/usr/local/mysql --with-freetype-dir=/usr/local --enable-mbstring=all &&make &&make install

页: [1]
查看完整版本: 编译安装apache+mysql+php 支持jpg,gd等