TestDisk Compilation - CGSecurity
/**/
var skin = "monobook";
var stylepath = "/mw/skins";
var wgArticlePath = "/wiki/$1";
var wgScriptPath = "/mw";
var wgServer = "http://www.cgsecurity.org";
var wgCanonicalNamespace = "";
var wgNamespaceNumber = 0;
var wgPageName = "TestDisk_Compilation";
var wgTitle = "TestDisk Compilation";
var wgArticleId = 1313;
var wgIsArticle = true;
var wgUserName = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
/**/
TestDisk Compilation
From CGSecurity
Jump to: navigation, search
This document explains how to compile TestDisk and PhotoRec.
Contents
1 Libraries
1.1 Ext2fs Library
1.2 Jpeg library
1.3 How to compile ntfsprogs
1.4 ReiserFS Library
2 How to compile TestDisk
2.1 Standard method
2.2 Static version
2.3 Static compressed binary
3 OS Notes
4 Cross-compilation
if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }
Libraries
libncurses - Required, TestDisk and PhotoRec use an ncurses interface, so ncurses library and development files must be present.
Ext2fs library - Optional, used by TestDisk to list files from ext2/ext3 partition
Reiserfs library - Optional, used by TestDisk to list files from reiserfs partition
NTFS library - Optional, used by TestDisk to list files from NTFS partition
Jpeg library - Optional, used by PhotoRec to improved JPEG recovery rate
Ext2fs Library
Ext2fs library is usually installed with your OS, so you don't need to compile it yourself.
Otherwise get latest version of e2fsprogs at http://e2fsprogs.sourceforge.net
tar xvf e2fsprogs-1.38.tgz
cd e2fsprogs-1.38
./configure --with-cc=gcc
make libs
make install
Jpeg library
Libjpeg library is usually installed with your OS, so you don't need to compile it yourself.
Otherwise download libjpeg source from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar xzf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared --enable-static
make
sudo make install
Mac OS X 10.3 ships with GNU libtool, albeit under a slightly different name, glibtool. You may have
to run
ln -s `which glibtool` ./libtool
How to compile ntfsprogs
Get the latest version of ntfsprogs from http://linux-ntfs.sf.net/
tar xzf ntfsprogs-1.13.0.tar.gz
cd ntfsprogs-1.13.0
./configure
make libs
make install
To get a working version under NT 4, use configure --disable-default-device-io-ops
because SetFilePointerEx used by win32_io.c is not exported by NT 4 DLL.
ReiserFS Library
Get progsreiserfs-0.3.1-rc8.tar.gz at http://reiserfs.osdn.org.ua/
tar xzf progsreiserfs-*.tar.gz
cd progreiserfs-0.3.1-rc8
./configure --disable-nls
make
make install
How to compile TestDisk
Standard method
To compile TestDisk and PhotoRec, run
./configure
make
You may need to specify parameters to configure, see configure --help.
Example:
./configure
--with-reiserfs-lib=/home/kmaster/perso/testdisk-5.2/progsreiserfs-0.3.1-rc8/libreiserfs/.libs/
--with-reiserfs-includes=/home/kmaster/perso/testdisk-5.2/progsreiserfs-0.3.1-rc8/include/
--with-ntfs-lib=/home/kmaster/perso/testdisk-5.2/ntfsprogs-1.8.5/libntfs/.libs/
--with-ntfs-includes=/home/kmaster/perso/testdisk-5.2/ntfsprogs-1.8.5/include/
--with-ext2fs-lib=/home/kmaster/perso/testdisk-5.2/e2fsprogs-1.34/lib
--with-ext2fs-includes=/home/kmaster/perso/testdisk-5.2/e2fsprogs-1.34/lib
Static version
If you need to run the binary on systems that lack one of the previous libraries,
create a static binary with
make static
Static compressed binary
If you need a small binary for binary distribution,
get the UPX packer at http://upx.sourceforge.net/
and run
strip src/testdisk src/photorec
upx src/testdisk src/photorec
Note that Linux UPX needs to decompress program files before running, and it will request some space on /tmp to do this. The running executable must be allowed in this directory (mount -o remount,exec /tmp).
OS Notes
Please read notes about your OS:
DOS
GNU/Linux
Win
MacOSX
Cross-compilation
Linux to PowerPC Darwin/MacOSX cross-compiler
Return to TestDisk page
Category: Data Recovery
if (window.isMSIE55) fixalpha();
Data Recovery
TestDisk
PhotoRec
download
This page was last modified 02:06, 9 October 2006.
Content is available under GNU Free Documentation License 1.2.
if (window.runOnloadHook) runOnloadHook();
Wyszukiwarka
Podobne podstrony:
testdisk compilation frtestdisk compilacionCompilationMXBeanCompileDB (2)compilar linuxcompilar dosluego? usar testdiskCompilerDatatestdisk 6 5 releaseNoch ein PIC Compilerfddshow compileejecutando testdiskCompileInv3stateProjects Compil32 manifesttestdisk?CompiledScripttestdisk y?? live rescuetestdisk eswięcej podobnych podstron