mac 本地xampp的php redis 扩展安装失败
<code>$ /Applications/XAMPP/xamppfiles/bin/phpize-5.4.31 Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 $ clear $ /Applications/XAMPP/xamppfiles/bin/phpize-5.4.31 Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 $ ./configure --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config-5.4.31 checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i386-apple-darwin14.3.0 checking host system type... i386-apple-darwin14.3.0 checking target system type... i386-apple-darwin14.3.0 checking for PHP prefix... /Applications/XAMPP/xamppfiles checking for PHP includes... -I/Applications/XAMPP/xamppfiles/include/php -I/Applications/XAMPP/xamppfiles/include/php/main -I/Applications/XAMPP/xamppfiles/include/php/TSRM -I/Applications/XAMPP/xamppfiles/include/php/Zend -I/Applications/XAMPP/xamppfiles/include/php/ext -I/Applications/XAMPP/xamppfiles/include/php/ext/date/lib checking for PHP extension directory... /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525 checking for PHP installed headers prefix... /Applications/XAMPP/xamppfiles/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.16 (ok) checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable redis support... yes, shared checking whether to enable sessions... yes checking whether to enable igbinary serializer support... no checking for redis igbinary support... disabled checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin14.3.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged $ sudo make Password: /bin/sh /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/libtool --mode=install cp ./redis.la /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules cp ./.libs/redis.so /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules/redis.so cp ./.libs/redis.lai /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules/redis.la ---------------------------------------------------------------------- Libraries have been installed in: /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable during execution See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. shengyewangluodeMacBook-Air:phpredis shengye$ make test Build complete. Don't forget to run 'make test'. PHP Warning: PHP Startup: redis: Unable to initialize module Module compiled with module API=20121212 PHP compiled with module API=20100525 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: redis: Unable to initialize module Module compiled with module API=20121212 PHP compiled with module API=20100525 These options need to match in Unknown on line 0 ===================================================================== PHP : /Applications/XAMPP/xamppfiles/bin/php Warning: PHP Startup: redis: Unable to initialize module Module compiled with module API=20121212 PHP compiled with module API=20100525 These options need to match in Unknown on line 0 PHP_SAPI : cli PHP_VERSION : 5.4.31 ZEND_VERSION: 2.4.0 PHP_OS : Darwin - Darwin shengyewangluodeMacBook-Air.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 INI actual : /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/tmp-php.ini More .INIs : CWD : /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2016-09-20 04:52:42 ===================================================================== No tests were run. shengyewangluodeMacBook-Air:phpredis shengye$ sudo make install Installing shared extensions: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ shengyewangluodeMacBook-Air:phpredis shengye$ sudo make install /bin/sh /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/libtool --mode=install cp ./redis.la /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules cp ./.libs/redis.so /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules/redis.so cp ./.libs/redis.lai /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules/redis.la ---------------------------------------------------------------------- Libraries have been installed in: /Applications/XAMPP/xamppfiles/htdocs/redis/phpredis/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable during execution See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Installing shared extensions: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ $ /Applications/XAMPP/bin/php -m |grep redis PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so, 9): image not found in Unknown on line 0 PHP Warning: PHP Startup: redis: Unable to initialize module Module compiled with module API=20121212 PHP compiled with module API=20100525 These options need to match in Unknown on line 0 Warning: PHP Startup: redis: Unable to initialize module </code>
宝宝的扩展安装从来都没有成功过,这是为什么?求高人赐教
之前也安装过ffmpeg和imagick都没有成功,非常耽误进度。。求高手赐教

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

PHP和Python各有优势,选择依据项目需求。1.PHP适合web开发,尤其快速开发和维护网站。2.Python适用于数据科学、机器学习和人工智能,语法简洁,适合初学者。

PHP和Python各有优势,选择应基于项目需求。1.PHP适合web开发,语法简单,执行效率高。2.Python适用于数据科学和机器学习,语法简洁,库丰富。

PHP是一种广泛应用于服务器端的脚本语言,特别适合web开发。1.PHP可以嵌入HTML,处理HTTP请求和响应,支持多种数据库。2.PHP用于生成动态网页内容,处理表单数据,访问数据库等,具有强大的社区支持和开源资源。3.PHP是解释型语言,执行过程包括词法分析、语法分析、编译和执行。4.PHP可以与MySQL结合用于用户注册系统等高级应用。5.调试PHP时,可使用error_reporting()和var_dump()等函数。6.优化PHP代码可通过缓存机制、优化数据库查询和使用内置函数。7

PHP在现代Web开发中仍然重要,尤其在内容管理和电子商务平台。1)PHP拥有丰富的生态系统和强大框架支持,如Laravel和Symfony。2)性能优化可通过OPcache和Nginx实现。3)PHP8.0引入JIT编译器,提升性能。4)云原生应用通过Docker和Kubernetes部署,提高灵活性和可扩展性。

PHP适合web开发,特别是在快速开发和处理动态内容方面表现出色,但不擅长数据科学和企业级应用。与Python相比,PHP在web开发中更具优势,但在数据科学领域不如Python;与Java相比,PHP在企业级应用中表现较差,但在web开发中更灵活;与JavaScript相比,PHP在后端开发中更简洁,但在前端开发中不如JavaScript。

PHP仍然具有活力,其在现代编程领域中依然占据重要地位。1)PHP的简单易学和强大社区支持使其在Web开发中广泛应用;2)其灵活性和稳定性使其在处理Web表单、数据库操作和文件处理等方面表现出色;3)PHP不断进化和优化,适用于初学者和经验丰富的开发者。

PHP成为许多网站首选技术栈的原因包括其易用性、强大社区支持和广泛应用。1)易于学习和使用,适合初学者。2)拥有庞大的开发者社区,资源丰富。3)广泛应用于WordPress、Drupal等平台。4)与Web服务器紧密集成,简化开发部署。

PHP和Python各有优势,适合不同场景。1.PHP适用于web开发,提供内置web服务器和丰富函数库。2.Python适合数据科学和机器学习,语法简洁且有强大标准库。选择时应根据项目需求决定。
