[英]How to install Tix on Mac OS X?
I have been trying to install Tix
to create a GUI in Python, and I couldn't make it. 我一直在尝试安装
Tix
以在Python中创建GUI,但我无法实现。
My computer characteristics are: 我的电脑特点是:
And Python version is: Python 2.7.3 |EPD 7.3-2 (64-bit)|
Python版本是:
Python 2.7.3 |EPD 7.3-2 (64-bit)|
I am using Aptana Studio 3. 我正在使用Aptana Studio 3。
I have been trying using Macports and it has been impossible. 我一直在尝试使用Macports,这是不可能的。 Do you know a way you have succeeded with?
你知道你成功的方式吗?
I wrote a small guide . 我写了一个小指南 。 Maybe this will help others:
也许这会有助于其他人:
Notes: The specified version numbers are important, since Tix 8.4 does not work with Tcl/Tkl 8.6.x 注意:指定的版本号很重要,因为Tix 8.4不适用于Tcl / Tkl 8.6.x.
./src/Tix8.4.x
, /src/Tcl8.5.x
, /src/Tk8.5.x
./src/Tix8.4.x
, /src/Tcl8.5.x
, /src/Tk8.5.x
Compile Tcl: 编译Tcl:
cd ./src/Tcl8.5.x ./configure --enable-shared make
Compile Tk: 编译Tk:
cd ./src/Tk8.5.x ./configure --enable-shared make
Tix: 蒂克斯:
cd ./src/Tix8.4.x ./configure LDFLAGS="-L/usr/X11/lib" --enable-shared make make install
Set Tix Library path (eg in your .bashrc/.zshrc) to let python find the tix library: export TIX_LIBRARY="/usr/local/lib/Tix8.4.x"
(adjust version number) 设置Tix Library路径(例如在.bashrc / .zshrc中)让python找到
export TIX_LIBRARY="/usr/local/lib/Tix8.4.x"
库: export TIX_LIBRARY="/usr/local/lib/Tix8.4.x"
(调整版本号)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.