brew无法make python2.7.8
来源:互联网 发布:酷狗音频编辑软件 编辑:程序博客网 时间:2024/06/05 08:09
- 为安装poppler gem包,使用PDF渲染库,但是遇到以下错误:
Building native extensions. This could take a while...ERROR: Error installing poppler:ERROR: Failed to build gem native extension.
- 查询提示信息原来是,无法调用brew install poppler,单独运行此命令又出现如下错误:
╰─$ brew install poppler==> Installing dependencies for poppler: python, gobject-introspection, libtiff, little-cms2, openjpeg==> Installing poppler dependency: python==> Downloading https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgzAlready downloaded: /Library/Caches/Homebrew/python-2.7.8.tgz==> Downloading http://bugs.python.org/file30805/issue10910-workaround.txtAlready downloaded: /Library/Caches/Homebrew/python--patch-9926640cb7c8e273e4b451469a2b13d4b9df5ba3.txt==> Patchingpatching file Include/pyport.hHunk #1 succeeded at 713 (offset 14 lines).Hunk #2 succeeded at 736 (offset 14 lines).==> ./configure --prefix=/usr/local/Cellar/python/2.7.8_2 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2==> makeclang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include -DPy_BUILD_CORE -c ./Modules/_sre.c -o Modules/_sre.oclang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include -DPy_BUILD_CORE -c ./Modules/_codecsmodule.c -o Modules/_codecsmodule.o20 errors generated.make: *** [Python/mactoolboxglue.o] Error 1make: *** Waiting for unfinished jobs....
- 按照提示提示,运行brew install python,同样遇到make错误。
- 经过两天不断思考,google结果未果情况下,尝试将brew下载的包进行手动编译:
# 将安装包解压cd /Library/Caches/Homebrew/Python-2.7.8# 需要和brew安装是运行命令一直,可在上面的信息中得到./configure --prefix=/usr/local/Cellar/python/2.7.8_2 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2make install# 运行doctor可查看到手动编译会造成未链接警告brew doctor# 链接所有python路径brew link python# 又提示,某些文件没有权限,直接按照提示使用强制写入brew link --overwrite --dry-run python# 现在python以安装完好,运行一下命令可以查看到brew list# 现在开始重新安装popplerbrew install popplergem install poppler
0 0
- brew无法make python2.7.8
- Mac下利用Brew同时安装Python2和Python3
- make无法执行
- make xconfig无法使用
- How to make brew faster 使用mirror 加速brew的安装过程
- MacOS10.11 brew无法使用解决办法
- Brew
- BREW?。
- BREW
- BREW
- BREW
- BREW
- BREW
- brew
- brew
- brew
- Tossim 编译问题make python2.5-config command not found
- Python2.7 IDLE无法启动等问题
- linux awk命令详解
- 【例 2.7】
- 第九周项目六—委派任务
- php利用谷歌实现自动在线翻译
- 【Vector】STL之Vector相关方法积累
- brew无法make python2.7.8
- Python框架、库和软件资源大全
- OpenStack Hacker养成指南
- ActivityManagerService的源代码分析
- Linux netstat命令详解
- SQL语句执行效率及分析(note)
- JNI总结(一)
- Slackware 14 使用笔记
- Android:自定义圆形进度条