LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 977|回复: 4

编译qterm0.3.2出错了,请各位帮个忙,谢谢!!

[复制链接]
发表于 2003-9-14 21:35:43 | 显示全部楼层 |阅读模式
./configure --with-pythondir=/usr
……
checking for Python directory... /usr
checking for Python2.2... header /usr/include library /usr/lib/python2.2/config modules /usr/lib/python2.2
checking if a Python application links... no
checking if Python depends on -lm... no
checking if Python depends on -lpthread... no
checking if Python depends on -ltcl... no
checking if Python depends on -ldb2... no
checking if Python depends on -lpthread -lm... no
checking if Python depends on -lpthread -lm -lutil... no
checking if Python depends on -lpthread -lm -ldb-3 -lutil... no
checking if Python depends on -lpthread -ldb-3... no
checking if Python depends on -lpthread -lm -ldb -ltermcap -lutil... no
checking if Python depends on -lpthread -ldl -lutil -lreadline -lncurses -lm... no
checking if Python depends on -lpthread -lm -ldb -lutil... no
configure: WARNING: it seems, Python depends on another library.
     Pleae set LIBPYTHON to '-lpython2.2 -lotherlib' before calling configure to fix this
     and contact the authors to let them know about this problem
checking if admin should be compiled... no
checking if autom4te.cache should be compiled... no
checking if qterm should be compiled... yes
……

make
……
In file included from qtermwindow.h:8,
                  from qtermwndmgr.cpp:12:
/usr/include/Python.h:23:24: patchlevel.h: 没有那个文件或目录
/usr/include/Python.h:24:22: pyconfig.h: 没有那个文件或目录
/usr/include/Python.h:62:20: pyport.h: 没有那个文件或目录
/usr/include/Python.h:64:19: pymem.h: 没有那个文件或目录
/usr/include/Python.h:66:20: object.h: 没有那个文件或目录
/usr/include/Python.h:67:21: objimpl.h: 没有那个文件或目录
/usr/include/Python.h:69:21: pydebug.h: 没有那个文件或目录
/usr/include/Python.h:71:27: unicodeobject.h: 没有那个文件或目录
/usr/include/Python.h:72:23: intobject.h: 没有那个文件或目录
In file included from /usr/include/Python.h:73,
                  from qtermwindow.h:8,
                  from qtermwndmgr.cpp:12:
/usr/include/longobject.h:12: syntax error before `;' token
/usr/include/longobject.h:17: syntax error before `*' token
/usr/include/longobject.h:18: syntax error before `*' token
/usr/include/longobject.h:19: syntax error before `*' token
/usr/include/longobject.h:20: `PyObject' was not declared in this scope
/usr/include/longobject.h:20: parse error before `)' token
/usr/include/longobject.h:21: `PyObject' was not declared in this scope
/usr/include/longobject.h:21: parse error before `)' token
/usr/include/longobject.h:29: `PyObject' was not declared in this scope
/usr/include/longobject.h:29: `vv' was not declared in this scope
/usr/include/longobject.h:29: parse error before `*' token
/usr/include/longobject.h:31: `PyObject' was not declared in this scope
/usr/include/longobject.h:31: parse error before `)' token
/usr/include/longobject.h:32: syntax error before `*' token
/usr/include/longobject.h:33: `PyObject' was not declared in this scope
/usr/include/longobject.h:33: parse error before `)' token
/usr/include/longobject.h:54: syntax error before `*' token
/usr/include/longobject.h:72: syntax error before `*' token
/usr/include/Python.h:74:25: floatobject.h: 没有那个文件或目录
/usr/include/Python.h:76:27: complexobject.h: 没有那个文件或目录
In file included from /usr/include/Python.h:78,
                  from qtermwindow.h:8,
                  from qtermwndmgr.cpp:12:
/usr/include/rangeobject.h:18: syntax error before `;' token
/usr/include/rangeobject.h:22: syntax error before `*' token
/usr/include/Python.h:79:26: stringobject.h: 没有那个文件或目录
/usr/include/Python.h:80:26: bufferobject.h: 没有那个文件或目录
/usr/include/Python.h:81:25: tupleobject.h: 没有那个文件或目录
In file included from /usr/include/Python.h:82,
                  from qtermwindow.h:8,
                  from qtermwndmgr.cpp:12:
/usr/include/listobject.h:24: parse error before `*' token
/usr/include/listobject.h:27: syntax error before `;' token
/usr/include/listobject.h:32: syntax error before `*' token
/usr/include/listobject.h:33: `PyObject' was not declared in this scope
/usr/include/listobject.h:33: parse error before `)' token
/usr/include/listobject.h:34: syntax error before `*' token
/usr/include/listobject.h:35: `PyObject' was not declared in this scope
/usr/include/listobject.h:35: parse error before `,' token
/usr/include/listobject.h:36: `PyObject' was not declared in this scope
/usr/include/listobject.h:36: parse error before `,' token
/usr/include/listobject.h:37: `PyObject' was not declared in this scope
/usr/include/listobject.h:37: parse error before `,' token
/usr/include/listobject.h:38: syntax error before `*' token
/usr/include/listobject.h:39: `PyObject' was not declared in this scope
/usr/include/listobject.h:39: parse error before `,' token
/usr/include/listobject.h:40: `PyObject' was not declared in this scope
/usr/include/listobject.h:40: parse error before `)' token
/usr/include/listobject.h:41: `PyObject' was not declared in this scope
/usr/include/listobject.h:41: parse error before `)' token
/usr/include/listobject.h:42: syntax error before `*' token
/usr/include/Python.h:83:24: dictobject.h: 没有那个文件或目录
/usr/include/Python.h:84:26: methodobject.h: 没有那个文件或目录
/usr/include/Python.h:85:26: moduleobject.h: 没有那个文件或目录
/usr/include/Python.h:86:24: funcobject.h: 没有那个文件或目录
/usr/include/Python.h:87:25: classobject.h: 没有那个文件或目录
/usr/include/Python.h:88:24: fileobject.h: 没有那个文件或目录
/usr/include/Python.h:89:21: cobject.h: 没有那个文件或目录
/usr/include/Python.h:90:23: traceback.h: 没有那个文件或目录
/usr/include/Python.h:91:25: sliceobject.h: 没有那个文件或目录
/usr/include/Python.h:92:24: cellobject.h: 没有那个文件或目录
/usr/include/Python.h:93:24: iterobject.h: 没有那个文件或目录
/usr/include/Python.h:94:25: descrobject.h: 没有那个文件或目录
/usr/include/Python.h:95:27: weakrefobject.h: 没有那个文件或目录
/usr/include/Python.h:97:20: codecs.h: 没有那个文件或目录
/usr/include/Python.h:98:22: pyerrors.h: 没有那个文件或目录
/usr/include/Python.h:100:21: pystate.h: 没有那个文件或目录
/usr/include/Python.h:102:24: modsupport.h: 没有那个文件或目录
/usr/include/Python.h:103:23: pythonrun.h: 没有那个文件或目录
/usr/include/Python.h:104:19: ceval.h: 没有那个文件或目录
/usr/include/Python.h:105:23: sysmodule.h: 没有那个文件或目录
/usr/include/Python.h:106:23: intrcheck.h: 没有那个文件或目录
/usr/include/Python.h:107:20: import.h: 没有那个文件或目录
/usr/include/Python.h:109:22: abstract.h: 没有那个文件或目录
/usr/include/Python.h:122:19: pyfpe.h: 没有那个文件或目录
In file included from qtermwndmgr.cpp:12:
qtermwindow.h:147: syntax error before `*' token
qtermwndmgr.cpp: In member function `void QTermWndMgr::activeNextPrev(bool)':
qtermwndmgr.cpp:149: warning: comparison between signed and unsigned integer
    expressions
make[3]: *** [qtermwndmgr.o] 错误 1
make[3]: Leaving directory `/root/qterm-0.3.2/qterm'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/qterm-0.3.2/qterm'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/qterm-0.3.2'
make: *** [all] 错误 2


python-config的结果是:-lpython2.2 -lm -L/usr/lib/python2.2/config
python为2.2.3。

各位看看,这个问题怎么解决?谢谢了!!
发表于 2003-9-14 22:41:01 | 显示全部楼层
安装python.因为是include的头文件,所以可能在python-devel这样的包里.
./configure --help看一下,好像有一个选项可以把python脚本给关掉的.
 楼主| 发表于 2003-9-14 23:35:16 | 显示全部楼层
checking for Python2.2... header /usr/include library /usr/lib/python2.2/config modules /usr/lib/python2.2
gentoo系统,用emerge python安装的,头文件应该已经装进去了吧?
这个版本的qterm好像必须用到python,没有关闭的选项。
发表于 2003-9-15 03:50:49 | 显示全部楼层
$ slocate Python.h
/usr/share/devhelp/books/python-2.2.1/ext/refcountsInPython.html
/usr/share/devhelp/books/python-2.2.1/ext/callingPython.html
/usr/include/python2.2/Python.h

so the head file is at /usr/include/python2.2..
In my system, this can be detected correctly, and in ur case, try to use:
./configure --with-extra-includes=/usr/include/python2.2
 楼主| 发表于 2003-9-15 18:21:41 | 显示全部楼层
找到罪魁了:原来我的/usr/include/中存在Python.h文件,而/usr/include/python2.2/中也有该文件,结果configure的时候,程序先找到了/usr/include/中的Python.h文件,把它移除后就可能正常编译了。不过好像还是不能用精华区的download功能,菜单上也没有相应的button.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表