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' ,是简单了点,够用就好,以后不够用再加吧。

  • 相关阅读:
    心情日记:【原创诗歌】怆情吟
    心情日记:2008年3月3日 奶奶去世
    心情日记:健身日记
    金融基础概念期货
    FXDD点值获利计算
    外汇基础概念汇率
    报告论文:是学生都copy下来,现在不用,将来绝对要用(转)
    情感日记:毕业临走物语
    美元为什么坚挺
    英特尔首席技术官:人机智能鸿沟将于2050年消失
  • 原文地址:https://www.cnblogs.com/amonw/p/79979.html
Copyright © 2011-2022 走看看