歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> linux系統提示缺少文件分析和解決參考

linux系統提示缺少文件分析和解決參考

日期:2017/3/2 16:44:16   编辑: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 © Linux教程網 All Rights Reserved