[英]Cannot find tk.h despite having the dev packages installed
I am trying to install wck . 我正在尝试安装wck 。 But I ran into the following error when running setup.py :
但是我在运行setup.py时遇到以下错误:
fatal error : tk.h : no such file or directory
But I already have all the -dev packages installed! 但是我已经安装了所有-dev软件包! I went on and installed tk-dev, tk8.5-dev and tk8.4-dev and the problem persists.
我继续安装tk-dev,tk8.5-dev和tk8.4-dev,问题仍然存在。 I did a 'locate tk.h' and there was no tk.h anywhere in my system.
我做了一个“定位tk.h”,系统中的任何地方都没有tk.h。 Wherever this problem was reported, people were trying to get tcl.h too.
无论在哪里报告此问题,人们都在尝试获取tcl.h。 So I did a sudo apt-get install tcl-dev and did a 'locate tcl.h'.
所以我做了一个sudo apt-get install tcl-dev并做了一个'locate tcl.h'。 Nothing!
没有! Where did all the header files go?
所有头文件都放在哪里?
Your problem is, that WCKs setup.py
and setuplib.py
don't have a clue where to look with the layout on your system, so you will have to fix those to get it working. 您的问题是,WCK的
setup.py
和setuplib.py
不知道在哪里查看系统布局,因此您必须对其进行修复才能使其正常工作。
I assume your using some variant of Debian Linux there, so maybe have a look at their guidelines for packaging Tcl/Tk. 我假设您在那里使用了Debian Linux的某些变体,所以也许看看他们包装Tcl / Tk的指南。
Basically they recommend adding configure switches like: 基本上,他们建议添加配置开关,例如:
--with-tcl=/usr/lib/tclX.Y
--with-tk=/usr/lib/tkX.Y
--with-tclincludes=/usr/include/tclX.Y
http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ap-debian_oddities.html http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ap-debian_oddities.html
http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ch-tcltk.html http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ch-tcltk.html
With that info, you might be able to get it to work by editing setup.py
and simply adding a version of find_tk()
that works for your system. 使用该信息,您可以通过编辑
setup.py
并简单地添加适用于您的系统的find_tk()
版本来find_tk()
工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.