配置命令:

--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-config-file-scan-dir=/Library/Server/Web/Config/php --with-libxml-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr --with-zlib-dir=/usr/lib --enable-bcmath --with-bz2 --enable-calendar --disable-cgi --with-curl=/usr/local/curl --enable-exif --enable-fpm --enable-ftp --with-png-dir --with-gd --with-jpeg-dir=/BinaryCache/apache_mod_php/apache_mod_php-95~11/Root/usr/local --enable-gd-native-ttf --with-icu-dir=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear --with-pear=no --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv=/usr/lib --with-xsl=/usr --enable-zip --with-freetype-dir=/usr/local/lib

配置完成的提示:

Thank you for using PHP.

config.status: creating php5.spec

config.status: creating main/build-defs.h

config.status: creating scripts/phpize

config.status: creating scripts/man1/phpize.1

config.status: creating scripts/php-config

config.status: creating scripts/man1/php-config.1

config.status: creating sapi/cli/php.1

config.status: creating sapi/fpm/php-fpm.conf

config.status: creating sapi/fpm/init.d.php-fpm

config.status: creating sapi/fpm/php-fpm.service

config.status: creating sapi/fpm/php-fpm.8

config.status: creating sapi/fpm/status.html

config.status: creating ext/phar/phar.1

config.status: creating ext/phar/phar.phar.1

config.status: creating main/php_config.h

config.status: executing default commands

make 编译时提示的错误:

Undefined symbols for architecture x86_64:

"_libiconv", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_appendl in iconv.o

...

"_libiconv_close", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

...

"_libiconv_open", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

...

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: * [libs/libphp5.bundle] Error 1

回复内容:

配置命令:

--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-config-file-scan-dir=/Library/Server/Web/Config/php --with-libxml-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr --with-zlib-dir=/usr/lib --enable-bcmath --with-bz2 --enable-calendar --disable-cgi --with-curl=/usr/local/curl --enable-exif --enable-fpm --enable-ftp --with-png-dir --with-gd --with-jpeg-dir=/BinaryCache/apache_mod_php/apache_mod_php-95~11/Root/usr/local --enable-gd-native-ttf --with-icu-dir=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear --with-pear=no --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv=/usr/lib --with-xsl=/usr --enable-zip --with-freetype-dir=/usr/local/lib

配置完成的提示:

Thank you for using PHP.

config.status: creating php5.spec

config.status: creating main/build-defs.h

config.status: creating scripts/phpize

config.status: creating scripts/man1/phpize.1

config.status: creating scripts/php-config

config.status: creating scripts/man1/php-config.1

config.status: creating sapi/cli/php.1

config.status: creating sapi/fpm/php-fpm.conf

config.status: creating sapi/fpm/init.d.php-fpm

config.status: creating sapi/fpm/php-fpm.service

config.status: creating sapi/fpm/php-fpm.8

config.status: creating sapi/fpm/status.html

config.status: creating ext/phar/phar.1

config.status: creating ext/phar/phar.phar.1

config.status: creating main/php_config.h

config.status: executing default commands

make 编译时提示的错误:

Undefined symbols for architecture x86_64:

"_libiconv", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_appendl in iconv.o

...

"_libiconv_close", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

...

"_libiconv_open", referenced from:

_do_convert in gdkanji.o

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

...

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: * [libs/libphp5.bundle] Error 1

iconv不要重新编译,用系统自带的,新版和旧版头文件不一样,会报错!

你有用homebrew么?还是有特殊的原因需要自己编译?不然感觉还是用homebrew在Mac下来管理开发的依赖好一点:)

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:php中文网

mac10.11重装php,macosx-10.11-更新osx10.11后,删除自带php版本,重新编译php5.5.29,到make阶段提示错误。...相关推荐

  1. [MSDN] 微软发布Windows 11 22H2版集成10月更新的最新ISO镜像文件

    MSDN是微软面向开发者和企业提供的资源下载站点 , 仅在开发者和企业付费订阅后才可以登录和下载资源. 微软会定期更新产品推出新版资源文件,例如现在MSDN上提供集成10月更新的Windows 11 ...

  2. 方舟服务器维护公告11月19日,明日方舟11月19日10点停机维护 更新内容一览

    感谢您对<明日方舟>的关注与支持,<明日方舟>计划将于11月19日10:00至16:00对客户端进行版本更新停机维护.本次更新为强制更新,更新结束后,需玩家对游戏客户端进行重新 ...

  3. 11月1日 迅雷白金会员vip账号分享 91freevip 上午10:00 更新

    www.91freevip ,就要免费VIP网11月1日10:00 更新迅雷会员VIP账号: 迅雷vip账号jiabin99:1 密码 1373115 迅雷vip账号797391086:1 密码 95 ...

  4. 艾宾浩斯记忆表格excel_七天法表格(从下往上浏览,上面的是最近更新的。后改为五天表格)...

    2020年9月10日更 沉迷手机的同学买这个. 2020年8月23日更 被湘潭大学录取了,就是专业不太好,大一努力转专业! 2020年7月24日更 高三以来最好成绩呜呜呜,今年陕西高考一本线451分 ...

  5. windows变量延迟_Windows 10的2018年10月更新可能推迟到11月(这就是原因)

    windows变量延迟 Microsoft stopped offering Windows 10's October 2018 Update on October 6, as it was dele ...

  6. 分享Silverlight/WPF/Windows Phone一周学习导读(10月30日-11月6日)

    分享Silverlight/WPF/Windows Phone一周学习导读(10月30日-11月6日) 本周Silverlight学习资源更新 Silverlight 定位 niejunhua [学习 ...

  7. java布道师_初探第10代Java帝国:11位Java专家道出了他们最喜欢的功能

    Java 10发布后.我们第一时间与11位Java专家讨论了一波.顺便深入挖掘了他们在Java 10中最喜欢的功能和对未发布的JDK11版本的一些看法. " Java 10对Java 9来说 ...

  8. (转)游戏程序员养成计划 (更新2010.11.6)

    游戏程序员养成计划 (更新2010.11.6) 原文地址:http://www.cnblogs.com/clayman/archive/2009/05/17/1459001.html#2241553 ...

  9. 用电脑更新手机ios系统_macOS 11 正式版体验:大更新!苹果把 iOS 风格搬到了电脑上...

    原标题:macOS 11 正式版体验:大更新!苹果把 iOS 风格搬到了电脑上 今年的新 macOS 正式版推送,相比往年来得有些迟. 这显然和 Mac 晚发布有关,但往好的方面想,苹果也有了更充裕的 ...

最新文章

  1. Navicatfor mysql怎么设置唯一约束
  2. python3常用模块_python常见模块有哪些
  3. 锂电池放空后充不进电_锂电池过度放电后充不进电怎么办
  4. linux c++ 获取时间,详解Linux下的C++时间类型:time_t
  5. [2012.04.03] Windows Phone 上的汉语拼音以及多音字处理
  6. mysql5.7非源码版msi安装教程
  7. Android+Jquery Mobile学习系列(3)-创建Android项目
  8. Spring中的AOP(8)
  9. [转载] python-pandas创建Series数据类型
  10. [摘录]第五部分 经验谈(2)
  11. 【相机标定系列】单目相机,内参,外参
  12. Python 列表(List) 的三种遍历(序号和值)方法
  13. 仿真软件Multisim 10下载地址与破解补丁
  14. 如何做外链成为有效外链之做有效问答外链
  15. 翻遍“微信小程序”的所有知乎问答,我们整理了大家最关注几个话题
  16. Java回炉之多线程(一)
  17. vue移动端下拉刷新组件、上拉加载组件
  18. 【电脑使用技巧】1TB的硬盘只有931G 硬盘容量去哪儿了?
  19. 2021年南阳市五中高考成绩查询,2021年南阳高中录取分数线是多少及高中排名榜...
  20. 布朗大学计算机科学博士怎样,2020年布朗大学博士含金量

热门文章

  1. OpenGL ES 2 o 初探
  2. Uber 宣布将香港最低打车费用上涨 80%, 最低 45 港币
  3. 移动国家号(MCC)
  4. 针对不同包之间的action跳转,怎么配置?
  5. Win2003下架构Mrtg服务器
  6. 深度解读最流行的优化算法:梯度下降
  7. MPC(模型预测控制)之二(路径规划)
  8. Git学习03-----最基本的几个命令
  9. ssh服务及安全配置
  10. 包管理和环境管理软件Anaconda