mac上TK Framework double implementation
来源:互联网 发布:高中网上听课软件 编辑:程序博客网 时间:2024/05/19 04:04
在mac上实验matplotlib相关功能的时候,发现报以下错误:
objc[5431]: Class TKApplication is implemented in both/Users/sykeoh/anaconda/lib/libtk8.5.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.objc[5431]: Class TKMenu is implemented in both /Users/sykeoh/anaconda/lib/libtk8.5.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.objc[5431]: Class TKContentView is implemented in both /Users/sykeoh/anaconda/lib/libtk8.5.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.objc[5431]: Class TKWindow is implemented in both /Users/sykeoh/anaconda/lib/libtk8.5.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.Segmentation fault: 11
问题应该是由anaconda安装包引起的。经过一番google,最终通过google在stack overflow上找着了答案:
cd ~/anaconda/lib/python3.5/lib-dynload$ install_name_tool -change "/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk" "@rpath/libtk8.5.dylib" _tkinter.so$ install_name_tool -change "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl" "@rpath/libtcl8.5.dylib" _tkinter.so
之前没有用过install_name_tool
命令 ,顺便查一下这个命令的作用: otool
和 install_name_tool
是 Xcode 自带的两个工具,提供了对库文件(.so,.dylib,etc..) 进行查看与修改的功能。完整的功能可以直接在 Terminal 运行查看。
参考文献:
1.http://stackoverflow.com/questions/35593602/tk-framework-double-implementation-issue 解决方案的stackoverflow,里面解释得很详细。
2.http://www.jianshu.com/p/193ba07dadcf install_name_tool
的用法
0 0
- mac上TK Framework double implementation
- Mac 上搭建Zend Framework
- An OSGi framework implementation
- CM framework design and implementation
- 【基础知识】An Implementation of Double-Array Trie
- An Implementation of Double-Array Trie
- An Implementation of Double-Array Trie
- An Implementation of Double-Array Trie
- Tcl/Tk入门(上)
- mac framework
- Mac上Zend FrameWork安装(Netbeans开发环境)
- linux上安装tcl、tk、expect
- linux上安装tcl、tk、expect
- linux上安装tcl、tk、expect
- Ubuntu14.04上安装Ruby/tk
- Perl/Tk入门学习(上)
- Implementation
- implementation
- cocos2d-x 切换骨骼动画时残影问题
- 【LeetCode】67. Add Binary
- 程序化广告入门
- linux od 命令:按不同进制显示文件
- Linux平台 Oracle 11gR2 RAC安装Part3:DB安装
- mac上TK Framework double implementation
- 数据结构与算法之查找
- Android studio 2.2 使用 cmake 编译 libpng
- call by value or reference
- 238. Product of Array Except Self C语言
- UVA 12093 树形DP
- setContentView与LayoutInflater加载解析机制原理
- Linux下基于TCP的文件传输
- guava之Multimap