# Compile Linux

### From CGSecurity

## RedHat

Under a Linux RedHat, you need to install

- ncurses, ncurses-devel
- e2fsprogs, e2fsprogs-devel

    rpm -Uvh ncurses-*.rpm ncurses-devel-*.rpm e2fsprogs-*.rpm e2fsprogs-devel-*.rpm libjpeg-*.rpm libjpeg-devel-*.rpm

To use all TestDisk functionnalities, you have to compile Reiserfs and NTFS libraries.

## Linux distribution using RPM

To install TestDisk rpm, run

    rpm -Uvh testdisk-*.i386.rpm

If it doesn't work, you may have to rebuild the RPM for your distribution using

    rpmbuild --recompile testdisk-5.2-1.src.rpm

## Debian

Under Debian, install

- libncurses5, libncurses5-dev
- libntfs5, libntfs-dev
- e2fslibs, e2fslibs-dev
- libreiserfs0.3

They can be installed via apt-get.

Back to TestDisk compilation

Category: Data Recovery

##### Data Recovery

- TestDisk
- PhotoRec
- download