zoukankan      html  css  js  c++  java
  • PHP升级记

            昨天下午开始升级PHP到4.3.10,make install时到了install PEAR....就出错,出个“Pro*C .....”的信息,怀疑oracle问题,于是去掉--with-oci8,问题依旧,上网查,没结果,搞了半天,突然想起以前为了编译proc程序方便,设了一个$MAKE环境变量,于是查Makefile中install-pear,下面果然有$(MAKE)字样,unset MAKE,一切OK,浪费了一个下午。

            今天用jpgraph时说当前PHP编译不支持TTF,于是查configure --help,上网搜索,下载freetype-devel,调参数,编译了N次,phpinfo()中显示配置参数都对了,可GD栏下死活不出“FreeType Support”字样,最后抱着姑且一试的态度,make之前先make clean,居然好了,@%@#$!*@#$#$%^!,浪费一个上午。

            以前是rpm包装的,配置参数一大串,在这里备份一下以备不时之需:

    './configure' '--prefix=/usr' '--enable-pic' '--disable-rpath' '--with-layout=GNU' '--with-apxs' '--libdir=/usr/lib/php4' '--datadir=/usr/share/php' '--with-config-file-path=/etc' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-track-vars' '--enable-memory-limit' '--enable-bcmath' '--with-iconv' '--with-pcre-regex=/usr' '--enable-sigchild' '--with-xml' '--with-expat-dir=/usr' '--with-openssl' '--enable-ftp=shared' '--enable-exif=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-shmop=shared' '--with-unixODBC=shared' '--with-mysql=shared,/usr' '--with-ldap=shared' '--with-pgsql=shared' '--with-gettext=shared' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' '--with-oci8=shared,/usr/local/oracle/product/8i' '--with-swf=shared,/home/troels/rpm/BUILD/php-4.2.2/swflib' '--enable-sockets=shared' '--with-gmp=shared' '--with-dom=shared' '--with-qtdom=shared,/usr/lib/qt-2.3.1' '--enable-wddx' '--with-curl=shared' '--enable-apc=shared' '--with-ming=shared' '--with-imlib=shared' '--with-recode=shared' '--enable-calendar=shared' '--enable-posix=shared' '--with-mcal=shared,/usr' '--with-interbase=shared,/usr' '--with-zlib' '--with-mm'。

            目前参数是'./configure' '--with-apxs' '--with-gd' '--with-oci8=shared' '--with-zlib' '--with-jpeg-dir' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-ttf' '--enable-ftp' ,是简单了点,够用就好,以后不够用再加吧。

  • 相关阅读:
    【leetcode】腾讯精选练习 50 题(更新中)
    将博客搬至CSDN
    【笔记】linux基础(更新中)
    【寒窑赋】写在百篇博客之后
    【笔记】Vim
    【笔记】Git(更新中)
    【笔记】Java基础教程学习(更新中)
    【面试题】Java核心技术三十六讲(更新中)
    【leetcode】shell和sql题目思路汇总(更新中)
    【笔记】MySQL基础及高级特性(更新中)
  • 原文地址:https://www.cnblogs.com/amonw/p/79979.html
Copyright © 2011-2022 走看看