extundeleteインストール

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# wget downloads.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2
--2015-01-16 22:04:20--  http://downloads.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://jaist.dl.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2 [following]
--2015-01-16 22:04:20--  http://jaist.dl.sourceforge.net/project/extundelete/extundelete/0.2.4/extundelete-0.2.4.tar.bz2
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108472 (106K) [application/octet-stream]
Saving to: ‘extundelete-0.2.4.tar.bz2’
 
100%[======================================>] 108,472     --.-K/s   in 0.09s
 
2015-01-16 22:04:20 (1.12 MB/s) - ‘extundelete-0.2.4.tar.bz2’ saved [108472/108472]
# tar jxvf extundelete-0.2.4.tar.bz2
extundelete-0.2.4/
extundelete-0.2.4/acinclude.m4
extundelete-0.2.4/missing
extundelete-0.2.4/autogen.sh
extundelete-0.2.4/aclocal.m4
extundelete-0.2.4/configure
extundelete-0.2.4/LICENSE
extundelete-0.2.4/README
extundelete-0.2.4/install-sh
extundelete-0.2.4/config.h.in
extundelete-0.2.4/src/
extundelete-0.2.4/src/extundelete.cc
extundelete-0.2.4/src/block.h
extundelete-0.2.4/src/kernel-jbd.h
extundelete-0.2.4/src/insertionops.cc
extundelete-0.2.4/src/block.c
extundelete-0.2.4/src/cli.cc
extundelete-0.2.4/src/extundelete-priv.h
extundelete-0.2.4/src/extundelete.h
extundelete-0.2.4/src/jfs_compat.h
extundelete-0.2.4/src/Makefile.in
extundelete-0.2.4/src/Makefile.am
extundelete-0.2.4/configure.ac
extundelete-0.2.4/depcomp
extundelete-0.2.4/Makefile.in
extundelete-0.2.4/Makefile.am
# cd extundelete-0.2.4
# ./configure
Configuring extundelete 0.2.4
configure: error: Can't find ext2fs library
# yum -y install e2fsprogs-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* epel: ftp.jaist.ac.jp
* extras: www.ftp.ne.jp
* rpmforge: mirror.fairway.ne.jp
* updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package e2fsprogs-devel.x86_64 0:1.42.9-4.el7 will be installed
--> Processing Dependency: libcom_err-devel(x86-64) = 1.42.9-4.el7 for package: e2fsprogs-devel-1.42.9-4.el7.x86_64
--> Processing Dependency: pkgconfig(com_err) for package: e2fsprogs-devel-1.42.9-4.el7.x86_64
--> Running transaction check
---> Package libcom_err-devel.x86_64 0:1.42.9-4.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
Package                 Arch          Version                Repository   Size
================================================================================
Installing:
e2fsprogs-devel         x86_64        1.42.9-4.el7           base         70 k
Installing for dependencies:
libcom_err-devel        x86_64        1.42.9-4.el7           base         30 k
 
Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)
 
Total download size: 100 k
Installed size: 178 k
Downloading packages:
(1/2): libcom_err-devel-1.42.9-4.el7.x86_64.rpm            |  30 kB   00:00
(2/2): e2fsprogs-devel-1.42.9-4.el7.x86_64.rpm             |  70 kB   00:00
--------------------------------------------------------------------------------
Total                                              183 kB/s | 100 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libcom_err-devel-1.42.9-4.el7.x86_64                         1/2
Installing : e2fsprogs-devel-1.42.9-4.el7.x86_64                          2/2
Verifying  : e2fsprogs-devel-1.42.9-4.el7.x86_64                          1/2
Verifying  : libcom_err-devel-1.42.9-4.el7.x86_64                         2/2
 
Installed:
e2fsprogs-devel.x86_64 0:1.42.9-4.el7
 
Dependency Installed:
libcom_err-devel.x86_64 0:1.42.9-4.el7
 
Complete!
# ./configure
Configuring extundelete 0.2.4
Writing generated files to disk
# make
make -s all-recursive
Making all in src
extundelete.cc: In function ‘ext2_ino_t find_inode(ext2_filsys, ext2_filsys, ext2_inode*, std::string, int)’:
extundelete.cc:1272:29: warning: narrowing conversion of ‘search_flags’ from  ‘int’ to ‘ext2_ino_t {aka unsigned int}’ inside { } [-Wnarrowing]
buf, match_name2, priv, 0};
^
# cd src/
# make install
g++ -g -O2  -std=c++0x -std=c++11 -W -Wall -DPROG="\"extundelete\"" -DVERSION="\"0.2.4\""    -o extundelete extundelete-extundelete.o extundelete-cli.o extundelete-block.o extundelete-insertionops.o  -lcom_err -lext2fs
make[1]: Entering directory `/root/extundelete-0.2.4/src'
g++ -g -O2  -std=c++0x -std=c++11 -W -Wall -DPROG="\"extundelete\"" -DVERSION="\"0.2.4\""    -o extundelete extundelete-extundelete.o extundelete-cli.o extundelete-block.o extundelete-insertionops.o  -lcom_err -lext2fs
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/install -c extundelete '/usr/local/bin'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/extundelete-0.2.4/src

インストールできた様子です。

タイトルとURLをコピーしました