mac安装php的mongodb扩展报错:No such file or directory autom4te: /usr/bin/m4 failed with exit status: 1
2017-07-06 16:38
483 查看
前几天mac下brew升级了所有软件,之前安装的好多php扩展都得重新安装下。在安装mongdb扩展的时候,执行phpize报如下错误:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/m4:config.m4:358: cannot open `src/libmongoc/build/autotools/m4/ax_prototype.m4': No such file or directory autom4te: /usr/bin/m4 failed with exit status: 1
百度了下,很快找到了解决办法,先执行 git submodule update –init 命令,然后再依次执行 phpize、./configure 和 make && make install 命令,安装成功。感谢那些无私奉献的人们,问题虽然解决了,但是有必要了解下git的一些操作命令。
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/m4:config.m4:358: cannot open `src/libmongoc/build/autotools/m4/ax_prototype.m4': No such file or directory autom4te: /usr/bin/m4 failed with exit status: 1
百度了下,很快找到了解决办法,先执行 git submodule update –init 命令,然后再依次执行 phpize、./configure 和 make && make install 命令,安装成功。感谢那些无私奉献的人们,问题虽然解决了,但是有必要了解下git的一些操作命令。
相关文章推荐
- 在Mac上安装pyspider时出现 error: command 'cc' failed with exit status 1 的解决方法
- MAC安装python模块碰到“error: command 'cc' failed with exit status 1”解决办法
- MAC安装M2Crypto报command 'cc' failed with exit status 1
- 解决Python扩展程序编译安装的error: command 'mt.exe' failed with exit status 31
- mac下安装mysql-python包报unable to execute llvm-gcc-4.2: No such file or directory error: command 'llvm-gcc-4.2' failed with exit status 1解决方法
- CentOs安装Scrapy出现error: Setup script exited with error: command ‘gcc’ failed with exit status 1错误解决方案
- python安装模块的时候报错error: command 'gcc' failed with exit status 1
- 关于Python安装模块出现error: command 'gcc' failed with exit status 1错误的解决方法
- 安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1
- 安装MySQL-python-1.2.3c1出现“error: command 'gcc' failed with exit status 1”错误
- linux安装scrapy出错'x86_64-Linux-gnu-gcc' failed with exit status 1
- CentOs安装Scrapy出现error: Setup script exited with error: command ‘gcc’ failed with exit status 1错误解决方案
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- 安装python-MySQLdb 出现error: command 'gcc' failed with exit status 1的解决方法
- Centos4.3安装MySQL-python-1.2.3,出现error: command 'gcc' failed with exit status 1
- [CentOS]安装MySQL-python,error: Setup script exited with error: command 'gcc' failed with exit status
- centos6.6下安装MySQLdb时出现“error: command 'gcc' failed with exit status 1”
- Mac下安装php的mongodb扩展
- mac下安装mongodb & php扩展
- 关于python 安装lxml-4.1.1 报 error: command 'gcc' failed with exit status 1