【庖丁解牛】configure: WARNING: unrecognized options: --with-mcrypt, --enable-gd-native-ttf
问题复现
configure: WARNING: unrecognized options: --with-mcrypt, --enable-gd-native-ttf
问题分析
php7.2以后不支持–with-mcrypt, --enable-gd-native-ttf 这两个参数,需要去掉
问题解决
php编译我一开始用的源码:
[root@xinsz08 php-7.3.6]# './configure' '--prefix=/app/php' '--with-pdo-pgsql' '--with-zlib-dir' '--with-freetype-dir' '--enable-mbstring' '--with-libxml-dir=/root/data/php-7.3.6/ext/libxml' '--enable-soap' '--enable-calendar' '--with-curl' '--with-gd' '--with-pgsql' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-zlib' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--with-freetype-dir=/usr/include/freetype2/freetype ' '--enable-exif' '--enable-bcmath' '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-pdo-mysql' '--with-mysqli' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-openssl' '--with-fpm-user=zmedu' '--with-fpm-group=zmedu' '--with-libdir=/lib/x86_64-linux-gnu/' '--enable-ftp' '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-opcache' '--enable-fpm' '--with-iconv' '--with-xpm-dir=/usr' '--with-apxs2=/app/httpd24/bin/apxs'
去掉 --with-mcrypt, --enable-gd-native-ttf 之后
变成下面的源码:
下次编译php7.2的时候,可以直接复制下面的内容:
[root@xinsz08 php-7.3.6]# ‘./configure’ ‘–prefix=/app/php’ ‘–with-pdo-pgsql’ ‘–with-zlib-dir’ ‘–with-freetype-dir’ ‘–enable-mbstring’ ‘–with-libxml-dir=/root/data/php-7.3.6/ext/libxml’ ‘–enable-soap’ ‘–enable-calendar’ ‘–with-curl’ ‘–with-gd’ ‘–with-pgsql’ ‘–disable-rpath’ ‘–enable-inline-optimization’ ‘–with-bz2’ ‘–with-zlib’ ‘–enable-sockets’ ‘–enable-sysvsem’ ‘–enable-sysvshm’ ‘–enable-pcntl’ ‘–enable-mbregex’ '–with-freetype-dir=/usr/include/freetype2/freetype ’ ‘–enable-exif’ ‘–enable-bcmath’ ‘–with-mhash’ ‘–enable-zip’ ‘–with-pcre-regex’ ‘–with-pdo-mysql’ ‘–with-mysqli’ ‘–with-jpeg-dir=/usr’ ‘–with-png-dir=/usr’ ‘–with-openssl’ ‘–with-fpm-user=zmedu’ ‘–with-fpm-group=zmedu’ ‘–with-libdir=/lib/x86_64-linux-gnu/’ ‘–enable-ftp’ ‘–with-gettext’ ‘–with-xmlrpc’ ‘–with-xsl’ ‘–enable-opcache’ ‘–enable-fpm’ ‘–with-iconv’ ‘–with-xpm-dir=/usr’ ‘–with-apxs2=/app/httpd24/bin/apxs’
- linux环境php7.2编译安装时,提示unrecognized options: –with-mcrypt, –enable-gd-native-ttf
- iOS [CIContext initWithOptions:]: unrecognized selector sent to instance 模拟器 iOS 8.4
- configure: WARNING: unrecognized options: --with-mysql
- Following unknown configure options were used:--enable-fpm
- 编译php ./configure命令enable和with有什么区别
- linux编译安装软件 ./configure命令enable和with有什么区别
- Following unknown configure options were used:--enable-fpm
- [乐意黎原创]PHP编译时configure: WARNING: unrecognized options: --with-mysql
- configure: error: *** Could not enable any backends.
- Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
- Native has exited with code 3 (0x3)---ASSERT(FALSE)
- WARNING: DSL element 'DexOptions.incremental'
- 在pandas 0.13中的 warning:settingcopywith
- iOS-Bug收集:You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated
- Tutorial: Creating an HTML5 app from a native iOS* project with Intel® HTML5 App Porter Tool – BETA
- WARNING:Oracle instance running on a system with low open file descriptor
- 真机测试时报 You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated li
- How to configure XDB for using ftp and http protocols with ASM [ID 357714.1]
- 服务器php安装configure: error: mcrypt.h not found. Please reinstall libmcrypt
- Python:协程异常RuntimeWarning: Enable tracemalloc to get the object allocation traceback