一定要仔细看./configure后最后出现的内容,我当时没仔细看有error提示(因为提示不变色),直接按照linux安装tar.gz安装包的步骤:先解压-进入解压后的文件目录-当前目录下configure-make-sudo make install,一通操作,然后make就不通过,说“没有指明目标并且找不到 makefile”,我就奇怪,安装包里我都见到makefile.am了呀,后面都是搜索make报错的内容,也仔细阅读了install和README里的全部内容,无果。

后面反反复复找到最初看到的一篇文章(当时我以为我configure没问题,一直跳过没看的)
原来是出现了报错:configure: WARNING: Can't find Tcl configuration definitions
按这篇文章走就好,tcl和tk[1]的版本上,我装的是8.5.13的,和博主不一样,这个只需要注意tcl和tk是配套使用的,安装相配使用的版本就好。linux yum安装tcl,centos下安装gtkwave
不过我后面configure还出现文章没提到的报错

configure: error: Package requirements (gtk+-2.0 >= 2.16 glib-2.0 >= 2.20 gio-2.0 >= 2.20 gmodule-2.0) were not met:

No package 'gtk+-2.0' found
No package 'glib-2.0' found
No package 'gio-2.0' found
No package 'gmodule-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details. 

我试着装gtk+-2.0(好吧,傻傻的,缺的是gtk_lib即不是安装包,而是库,是lib)根据评论,是要装libgnomeui-devel[2]
还看了另一篇文章,说是要装libgtk2.0-dev,不过这是后来才看到的了,我没试这个就过了。(好像这是Unbuntu系统安装GTK库的?)


  1. tk的安装包比tcl的难找一点,也放这里吧:https://centos.pkgs.org/7/centos-aarch64/tk-devel-8.5.13-6.el7.aarch64.rpm.html ↩︎

  2. https://www.oschina.net/question/697768_65402 ↩︎

 posted on 2024-04-03 11:13  长时  阅读(178)  评论(0)    收藏  举报