今天在虚拟机下在学习scapy的东西,其中一个例子中需要安装一个python的visual模块,期间报了N多的错误,一个个解决其中的依赖问题,到后面被卡住了

 

    1. [root@localhost src]# cd visual-3.2.9 
    2. [root@localhost visual-3.2.9]# ./configure  
    3. checking for a BSD-compatible install... /usr/bin/install -c 
    4. checking whether build environment is sane... yes 
    5. checking for gawk... gawk 
    6. checking whether make sets $(MAKE)... yes 
    7. checking for gcc... gcc 
    8. 。。。。。。 
    9.  
    10. checking for some Win32 platform... no 
    11. checking for some Mac OSX platform... no 
    12. checking for a Python interpreter with version >= 2.2... python 
    13. checking for python... /usr/local/bin/python 
    14. checking for python version... 2.6 
    15. checking for python platform... linux2 
    16. checking for python script directory... ${prefix}/lib/python2.6/site-packages 
    17. checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages 
    18. checking for array in python module Numeric... yes  #我是从这里开始报错的
    19. checking for array in python module numarray... yes  #一步步安装依赖包吧
    20. checking for headers required to compile python extensions... found 
    21. checking for pkg-config... /usr/bin/pkg-config 
    22. checking pkg-config is at least version 0.9.0... yes 
    23. checking for GTK... yes 
    24. checking for GTHREAD... yes 
    25. checking for gtk-config... /usr/bin/gtk-config 
    26. checking for GTK - version >= 0.99.7... yes 
    27. checking for gdk_gl_query in -lgtkgl... no 
    28. configure: error: gtkglarea is required on Unix-like systems  #这个错误这里就卡住了。

    网上找了N久,发现有这个问题的人还真不少呢,愣是没有找到解决的方法,其实我已经找到这个包的源代码了,就是安装的时候有保错,

    [root@localhost visual-3.2.9]# cd ../gtkglarea-2.0.1 [root@localhost gtkglarea-2.0.1]# ls aclocal.m4 config.h config.status COPYING gtkgl INSTALL Makefile.am README AUTHORS config.h.in configure docs gtkgl-2.0.pc libtool Makefile.in stamp-h1 ChangeLog config.log configure.ac examples gtkgl-2.0.pc.in Makefile NEWS TODO [root@localhost gtkglarea-2.0.1]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 98304 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether build environment is sane... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for Win32... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GTK... yes checking OpenGL... yes checking Mesa... no checking Mesa with pthreads... no checking OpenGL shaders... no checking for ANSI C header files... (cached) yes checking for an ANSI C-conforming const... yes configure: creating ./config.status config.status: creating Makefile config.status: creating gtkgl-2.0.pc config.status: creating gtkgl/Makefile config.status: creating gtkgl/makefile.mingw config.status: creating docs/Makefile config.status: creating examples/Makefile config.status: creating examples/makefile.mingw config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands --- Configuration summary * Installation prefix: /usr/local * Win32: no * OpenGL: yes --- [root@localhost gtkglarea-2.0.1]# [root@localhost gtkglarea-2.0.1]# make make all-recursive make[1]: Entering directory `/usr/local/src/gtkglarea-2.0.1' Making all in gtkgl make[2]: Entering directory `/usr/local/src/gtkglarea-2.0.1/gtkgl' /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -version-info 1:1:0 -no-undefined -o libgtkgl-2.0.la -rpath /usr/local/lib gdkgl.lo gtkglarea.lo -Wl,--export-dynamic -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lGLU -lGL libtool: link: gcc -shared .libs/gdkgl.o .libs/gtkglarea.o -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lGLU -lGL -Wl,--export-dynamic -Wl,-soname -Wl,libgtkgl-2.0.so.1 -o .libs/libgtkgl-2.0.so.1.0.1 /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make[2]: *** [libgtkgl-2.0.la] 错误¯¯ 1 make[2]: Leaving directory `/usr/local/src/gtkglarea-2.0.1/gtkgl' make[1]: *** [all-recursive] 错误¯¯ 1 make[1]: Leaving directory `/usr/local/src/gtkglarea-2.0.1' make: *** [all] 错误¯¯ 2 [root@localhost gtkglarea-2.0.1]# make install Making install in gtkgl make[1]: Entering directory `/usr/local/src/gtkglarea-2.0.1/gtkgl' /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -version-info 1:1:0 -no-undefined -o libgtkgl-2.0.la -rpath /usr/local/lib gdkgl.lo gtkglarea.lo -Wl,--export-dynamic -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lGLU -lGL libtool: link: gcc -shared .libs/gdkgl.o .libs/gtkglarea.o -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lGLU -lGL -Wl,--export-dynamic -Wl,-soname -Wl,libgtkgl-2.0.so.1 -o .libs/libgtkgl-2.0.so.1.0.1 /usr/bin/ld: cannot find -lGLU collect2: ld returned 1 exit status make[1]: *** [libgtkgl-2.0.la] 错误¯¯ 1 make[1]: Leaving directory `/usr/local/src/gtkglarea-2.0.1/gtkgl' make: *** [install-recursive] 错误¯¯ 1 [root@localhost gtkglarea-2.0.1]#