码迷,mamicode.com
首页 > 其他好文 > 详细

源码安装extundelete以及对遇到问题的解决

时间:2015-08-28 23:03:30      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:

软件下载:http://sourceforge.net/projects/extundelete/

1.在安装extundelete包./configure时遇到configure: error: C++ compiler cannot create executables问题

[root@localhost extundelete-0.2.4]# ./configure 
Configuring extundelete 0.2.4
configure: error: in `/root/Desktop/extundelete-0.2.4‘:
configure: error: C++ compiler cannot create executables
See `config.log‘ for more details

经过查找知道需要安装gcc-c++包
安装gcc-c++
[root@localhost Packages]# rpm -ivh gcc-c++-4.4.7-3.el6.i686.rpm 
warning: gcc-c++-4.4.7-3.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libstdc++-devel = 4.4.7-3.el6 is needed by gcc-c++-4.4.7-3.el6.i686
有依赖关系先装libstdc++-devel-4.4.7-3.el6.i686.rpm
[root@localhost Packages]# rpm -ivh libstdc++-devel-4.4.7-3.el6.i686.rpm
warning: libstdc++-devel-4.4.7-3.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]
再安装gcc-c++-4.4.7-3.el6.i686.rpm 
[root@localhost Packages]# rpm -ivh gcc-c++-4.4.7-3.el6.i686.rpm 
warning: gcc-c++-4.4.7-3.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]
[root@localhost Packages]# rpm -qa | grep gcc-c++
gcc-c++-4.4.7-3.el6.i686

2.重新./configure显示
[root@localhost extundelete-0.2.4]# ./configure 
Configuring extundelete 0.2.4
configure: error: Can‘t find ext2fs library

经过查找知道缺少e2fsprogs-devel,下面开始安装

[root@localhost Packages]# rpm -ivh e2fsprogs-devel-1.41.12-14.el6.i686.rpm 
warning: e2fsprogs-devel-1.41.12-14.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libcom_err-devel = 1.41.12-14.el6 is needed by e2fsprogs-devel-1.41.12-14.el6.i686
pkgconfig(com_err) is needed by e2fsprogs-devel-1.41.12-14.el6.i686

有依赖的包,所以先安装依赖包

[root@localhost Packages]# ll | grep libcom_err-devel
-r--r--r--  49 root root    31984 12月 19 2012 libcom_err-devel-1.41.12-14.el6.i686.rpm

[root@localhost Packages]# rpm -ivh libcom_err-devel-1.41.12-14.el6.i686.rpm 
warning: libcom_err-devel-1.41.12-14.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:libcom_err-devel       ########################################### [100%]
解决了依赖关系,在安装e2fsprogs-devel
[root@localhost Packages]# rpm -ivh e2fsprogs-devel-1.41.12-14.el6.i686.rpm 
warning: e2fsprogs-devel-1.41.12-14.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:e2fsprogs-devel        ########################################### [100%]

3。再./configure出现,表示成功了;

[root@localhost extundelete-0.2.4]# ./configure 
Configuring extundelete 0.2.4
Writing generated files to disk

4.进行make & make install
[root@localhost extundelete-0.2.4]# make
make -s all-recursive
Making all in src
extundelete.cc:571: 警告:未使用的参数‘flags’

[root@localhost extundelete-0.2.4]# make install
Making install in src
  /usr/bin/install -c extundelete ‘/usr/local/bin‘

好了,安装好了!接下来就可以使用extundelete命令恢复误删的文件或者目录了~~~

源码安装extundelete以及对遇到问题的解决

标签:

原文地址:http://www.cnblogs.com/xkcp008/p/4767942.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!