乌秋博客
梦想在左,生活在右。   

编译安装PHP5.6
wget http://cn2.php.net/distributions/php-5.6.33.tar.gz
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz

configure: error: off_t undefined; check your library configuration

# vim /etc/ld.so.conf.d/local.conf

添加一行
/usr/local/lib
# ldconfig -v


virtual memory exhausted: Cannot allocate memory
增加虚拟内存:
# dd if=/dev/zero of=/tmp/swap bs=1024 count=2048000
# mkswap /tmp/swap
# swapon /tmp/swap


undefined reference to `TLSv1_2_client_method
指定openssl目录:--with-openssl=/usr/local/openssl

./configure \
--prefix=/usr/local/php56 \
--with-config-file-path=/etc/php56 \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-opcache \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mcrypt \
--with-mhash \
--with-openssl=/usr/local/openssl \
--enable-bcmath \
--enable-soap \
--with-libxml-dir \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-curl \
--with-zlib \
--enable-zip \
--with-bz2 \
--with-readline
posted at 18/01/24 14:59 | 开发手记 - 工作日志 | 浏览(3) | 引用 | 评论

 Track this back : http://www.koven.org/rserver.php?mode=tb&sl=485
  name   password   homepage
隐藏评论(只有管理员可见)   ?  


      << prev    1  ...  387  388  389  390  391  392  393  394  395  ...  396    next >>