1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

llmp拾遗

本帖由 admin2013-06-04 发布。版面名称:应用交流

  1. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
    编译php5
    代码:
    '--with-libxml-dir=/usr/include/libxml2'  '--with-config-file-path=/usr/local/php/etc/'  '--with-mysql=/usr/local/mysql'  '--with-mysqli=/usr/local/mysql/bin/mysql_config'  '--with-gd'  '--enable-gd-native-ttf'  '--with-zlib'  '--with-mcrypt'  '--with-pdo-mysql=/usr/local/mysql'  '--enable-shmop'  '--enable-soap'  '--enable-sockets'  '--enable-wddx'  '--enable-zip'  '--with-xmlrpc'  '--enable-fpm'  '--enable-mbstring'  '--with-zlib-dir'  '--with-bz2'  '--with-curl'  '--enable-exif'  '--enable-ftp'  '--with-jpeg-dir=/usr/lib'  '--with-png-dir=/usr/lib'  '--with-freetype-dir=/usr/lib'  '--with-iconv'  '--enable-xml'  '--enable-bcmath'  '--enable-sysvsem'  '--enable-inline-optimization'  '--with-curlwrappers'  '--enable-mbregex'  '--with-openssl'  '--enable-pcntl'  '--with-gettext'  '--enable-session '--with-litespeed'
     
  2. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
  3. admin

    admin 管理员 管理成员

    注册:
    2011-11-01
    帖子:
    3,671
    赞:
    2,425
    1. go through GUI compile to the last step (prior to run '/usr/local/lsws/phpbuild/buildphp_manual_run.sh')

    2. check the /usr/local/lsws/phpbuild/buildphp_manual_run.sh script, look for something that it tries to run, such as '/usr/local/lsws/phpbuild/buildphp_1307577524.x.install.sh 1> /usr/local/lsws/phpbuild/buildphp_1307577524.x.log 2>&1'.

    3. edit script /usr/local/lsws/phpbuild/buildphp_1307577524.x.install.sh: insert "EXTRA_LIBS=-lresolv" prior to "./configure '--prefix=/usr/local/lsws/lsphp5' ... ". make it look like "EXTRA_LIBS=-lresolv ./configure '--prefix=/usr/local/lsws/lsphp5' ..."

    4. run '/usr/local/lsws/phpbuild/buildphp_manual_run.sh'.
     
正在加载...