Centos7.X上面 php5.6.36 编译 打开--with-fpm-systemd 报system does not support systemd

centos7上面编译5.6.36 打开--with-fpm-systemd   提示”系统不支持“ 这种情况多半是没有安装systemd-devel 安装5.6.36编译选项。 1,安装相关依赖包 yum  install -y  wget vim pcre pcre-...

centos7上面编译5.6.36 打开--with-fpm-systemd   提示”系统不支持“ 这种情况多半是没有安装systemd-devel


安装5.6.36编译选项。

1,安装相关依赖包

yum  install -y  wget vim pcre pcre-devel openssl openssl-devel libicu-devel  autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel ncurses ncurses-devel curl gd gd-devel libtool* libmcrypt libmcrypt-devel mcrypt mhash libxslt libxslt-devel readline readline-devel gmp gmp-devel libcurl libcurl-devel openjpeg-devel  lrzsz.x86_64 cmake gcc gcc-c++ ncurses-devel readline-devel  zlib-devel  curl-devel  gd-devel  jemalloc-devel libmcrypt-devel  re2c.x86 zip-devel bison-devel bind-utils systemd-devel re2c


./configure --prefix=/webdata/opt/local/php56 --with-config-file-path=/webdata/opt/local/php56/etc --enable-mysqlnd --with-mysql=/webdata/opt/local/percona --with-mysqli=/webdata/opt/local/percona/bin/mysql_config --with-pdo-mysql=/webdata/opt/local/percona --with-zlib-dir --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-fpm-systemd --enable-sockets --disable-ipv6 --with-openssl --enable-zip --enable-calendar --enable-bcmath --enable-soap --with-zlib --with-gd --enable-gd-native-ttf --enable-mbstring --with-png-dir --with-jpeg-dir --with-pcre-regex --with-libxml-dir --with-freetype-dir --with-gettext -with-mhash --with-mcrypt


如果提示 “PHP build notes - WARNING: This bison version is not supported for regeneration of the Zend/PHP pars”

wget http://ftp.gnu.org/gnu/bison/bison-2.4.1.tar.gz
tar -zxvf bison-2.4.1.tar.gz
cd bison-2.4.1/
./configure
make
make install


因为不加--prefix= 默认安装在/usr/local 下面,这里面在环境变量里面查找优先级高于/usr/sbin 目录


  • 发表于 2018-05-04 14:13
  • 阅读 ( 64 )

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
石天
石天

437 篇文章

作家榜 »

  1. shitian 662 文章
  2. 石天 437 文章
  3. 每天惠23 33 文章
  4. 小A 29 文章