(1)首先安装依赖包:
yum install ncurses
还有以下依赖包
(2) 安装完" xorg-x11-fonts-misc "后,使用root权限运行下面程序:ncurses
ncurses -devel
glibc
glibc-devel
libXpm
libXpm-devel
xterm
xorg-x11-fonts-misc
llvm
python-devel
libiconv
fc-cache -fv
(3)手动创建一些文件头.用以下命令创建把内容复制进去保存即可.
gedit /usr/include/sys/stropts.h
gedit /usr/include/bits/xtitypes.h
这两个文件可从网上下载。
(4)解压编译安装skyeye
./configure
make lib
make
make install_lib
make install
******(1)遇到error******
configure: error: C++ compiler cannot create executables
解决办法:yum install gcc-c++
******(2)遇到error*****
/usr/bin/ld: cannot find -lltdl;
解决办法:
yum install libtool-ltdl-devel
******(3)遇到error*****error: X11/extensions/XShm.h解决办法:yum install libXext-devel.x86_64
另外附录一些错误解决办法https://qshanbao.blog.ustc.edu.cn/?p=211其间会出现很多错误,一般是找不到文件,把错误粘到google上查找解决方法。
(1)cannot find -lltdl 解决方法:安装libltdl
(2)X11/Xlib.h: No such file or directory 解决方法:安装xorg-dev
(3)/usr/bin/ld: cannot find -liconv 解决方法:下载libiconv安装包,使用 ./configure –prefix=/usr/local , make , make install安装。 make可能出现错误: ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) 解决方法:sed -i ‘/gets is a security hole/d’ scrlib/stdio.h
(4)fatal error: gtk/gtk.h: No such file or directory 解决方法:sudo apt-get install libgtk2.0-dev
(5)fatal error: glibconfig.h: No such file or directory 解决方法:sudo cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/include/ (64位系统)
(6)fatal error: cairo.h: No such file or directory 解决方法:cp /usr/include/cairo/* /usr/include/
(7)fatal error: pango/pango.h: No such file or directory 解决方法:cp -r /usr/include/pango-1.0/pango/ /usr/include/
(8)fatal error: gdkconfig.h: No such file or directory 解决方法:cp /usr/lib/x86_64-linux-gnu/gtk-2.0/include/gdkconfig.h /usr/include/ (64位系统)
(9)fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory compilation terminated. 解决方法:sudo cp -r /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/(10)fatal error: atk/atk.h: No such file or directory 解决方法:cp -r /usr/include/atk-1.0/atk/ /usr/include/
(11)fatal error: Python.h: No such file or directory 解决方法:sudo aptitude install python-dev(12)安装以后运行skyeye出错:ImportError: /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
ImportError: /usr/local/lib/python2.7/lib-dynload/_ctypes.so undefined symbol: PyUnicodeUCS2_FromUnicode
解决方法:下载python2.7解压,使用以下命令安装:
./configure --enable-shared --enable-unicode=ucs4
还有一些错误可以在这个网站查找http://www.linuxintro.org/wiki/Error_messages_and_their_solutions