Environment: CENTOS6.5
PHP5.6.1
Compile parameters:
./configure--prefix=/usr/local/php56--with-config-file-path=/usr/local/php56/etc--enable-inline-optimization-- 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=/ usr/local/libmcrytp/--with-mhash--with-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--with-jpeg-dir=/usr/local/jpeg--with-png-dir=/usr/local/libpng
Error content:configure:error:Don ' t know how to define struct flock on the This system, set--enable-opcache=no
Common solutions:
Edit/etc/ld.so.conf
According to the system, add the file/etc/ld.so.conf, and then execute ldconfig to reload it once;
Sometimes, if your own LIBMCRYTP (encryption algorithm extension library) is compiled manually, only add this/usr/local/libmcrytp/lib/to/etc/ld.so.conf, and then execute ldconfig, so that it is reloaded once;