linux系统提示缺少文件分析和解决参考


在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
    安装ncurses...devel...rpm

    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

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3