|
楼主 |
发表于 2004-4-27 09:33:11
|
显示全部楼层
下面是安装sourcenav-5.1.4.tar.gz中执行configure报的错,所以就不能装了。
checking for object suffix... (cached) o
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for Tcl configuration... (cached) found /usr/local/SourceNavigator/lib/tclConfig.sh
checking for existence of /usr/local/SourceNavigator/lib/tclConfig.sh... loading
checking for Tk configuration... configure: error: Can't find Tk configuration definitions
configure: error: ./configure failed for itk
Configure in /home/lyj/sourcenav-5.1.4/itcl failed, exiting.
安装sourcenav-5.2b2.tar.gz时,在make时也是报错
报X11/X*.h文件找不到,我查看了一下源代码,发现只是Include的错误,都在tk文件夹内我就拷贝了X11文件夹到上一层,并把unix/tkUnixPort.h中的引用X11/Xproto.h改为X11/Xfuncproto.h,<X11/Xresouce.h>改为<X11/X.h>(因为这两个文件根本就没有,推测应是命名不一致),generic/tk.h中的引用</X11/Xlib.h>改成实际该文件所在位置(因为实际位置是在<xlib/X11/Xlib.h>,这样才不会报某某文件找不到,但是make时 仍然有错,下面是报错的地方:
rm -f libtkstub8.3.a
ar cr libtkstub8.3.a tkStubLib.o tkStubImg.o
ranlib libtkstub8.3.a
gcc -pipe -c -g -O2 -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion
-Wno-implicit-int -fPIC -I/home/lyj/sourcenav-5.2b2/tk/unix
-I/home/lyj/sourcenav-5.2b2/tk/unix/../generic
-I/home/lyj/sourcenav-5.2b2/tk/unix/../bitmaps
-I/home/lyj/sourcenav-5.2b2/tcl/generic -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1
-DSTATIC_BUILD=1 -DTCL_NO_DEPRECATED
/home/lyj/sourcenav-5.2b2/tk/unix/tkAppInit.cgcc -pipe -rdynamic tkAppInit.o \
-L/home/lyj/sourcenav-5.2b2/tk/unix -ltk8.3 \
-L/home/lyj/sourcenav-5.2b2/tcl/unix -ltcl8.3 -lX11 -ldl -lieee -lm -lc
-Wl,-rpath,/opt/SourceNav/lib:NONE -o wish/usr/bin/ld: cannot find
-lX11collect2: ld returned 1 exit statusmake[2]: *** [wish] Error 1make[2]:
Leaving directory `/home/lyj/sourcenav-5.2b2/tk/unix'make[1]: *** [all] Error
2make[1]: Leaving directory `/home/lyj/sourcenav-5.2b2/tk'make: *** [all] Error
1 |
|