红联Linux门户
Linux帮助

Linux缺少文件解决方案参考

发布时间:2010-02-09 11:56:37来源:红联作者:gk1201
在Linux中安装软件经常会出现缺少文件,具体表现在编译时出现缺少头文件,而在用RPM包时出现依赖关系,给大家分享下我在使用中常出现的缺少文件解决方案
  1、关于rpmbuild
  在使用***.src.rpm时,需要用rpmbuild命令将其变为***.rpm格式,而rpmbuild的使用是需要先安装rpm-build….rpm这个包的。
  2、编译失败提示:C++preprocessor "/lib/cpp" fails sanitg
  这个错误是说缺少C++ compiler,只需要安装gcc-c++-***.rpm即可。
  注:gcc=c compiler g++=c++ compiler
  3、在装xine时提示没有X11工具包
  安装xfree86-devel(RHA3)/xaw3d-devel(RHA4)
  4、jpeg library not found


  安装libjpeg...devel...rpm包
  5、缺少curses.h
6、本人在装rp-pppoe时提示需要GUI
  安装setools-gui...rpm
7、装完realplayer 10 后不能启动,提示:error while loading shared libraries:libstdc++.so.5......
  安装compat-libstdc++...rpm
  8、x11/xlib.h:no such file or diretory
  安装xFree86开发包(xfree86-devel)
  9、the GUI requires GTK devel packages(with were not found)
  安装gtk+-devel-...rpm
  10、error:You must install XFree86 or xorg first!
  安装xorg-x11-devel...rpm
  11、在编译内核用make menuconfig时出现:curses.h:No such file or directory
  安装glibc-devel、ncurses、ncurses-devel这3个包
适用发行版:Red Hat Enterprise Linux AS 3/4
文章评论

共有 3 条评论

  1. Inmaxen 于 2010-02-09 14:34:35发表:

    很吓人

  2. aqq5220 于 2010-02-09 13:45:33发表:

    顶楼上!

  3. 大宝 于 2010-02-09 12:17:56发表:

    ?是Debian系的省心