View previous topic :: View next topic |
Author |
Message |
expressvijay n00b
Joined: 28 Jul 2011 Posts: 2
|
Posted: Thu Jul 28, 2011 7:43 am Post subject: How to compile Testdisk on Ubuntu or any other Linux os |
|
|
hi,
i have developed many c,c++ programs on windows.but i am new to Linux.
plz help me how to compile and debug 'Testdisk' source on linux.
you can take testdisk source from this site
http://www.cgsecurity.org/wiki/TestDisk
plz plz plz......
HELP ME
.
.
.
.
.
Thanx in Advance |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Jul 28, 2011 8:56 am Post subject: |
|
|
if you wish that on ubuntu, ask at ubuntu forum, or keep betting on luck that a user here is also a ubuntu user
if you wish that on gentoo it's emerge testdisk
and if you wish that just because you need it but have no clue how to build it : go to distrowatch and grab a security/datarecovery distro, they are many with binary tools aim at recovering datas and partitions ready made and that will work out of the box just after booting the cd. |
|
Back to top |
|
|
Yuu Apprentice
Joined: 23 Dec 2008 Posts: 223 Location: France
|
Posted: Thu Jul 28, 2011 9:47 am Post subject: |
|
|
Hi expressvijay,
also, please note that if you download the bz2 archive from the official website, you'll get some static binary executables :
Code: | $ file *_static
fidentify_static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped
photorec_static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped
testdisk_static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, stripped |
So, no need to compile-it _________________ Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64 |
|
Back to top |
|
|
chiefbag Guru
Joined: 01 Oct 2010 Posts: 542 Location: The Kingdom
|
Posted: Thu Jul 28, 2011 9:53 am Post subject: |
|
|
If your posting on a Gentoo forum with a question like this you should read the following, however I am slightly confused as to how you would have managed to install Gentoo in the first place and not know a few basics.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1
The short answer as previously stated is
Code: | emerge -v app-admin/testdisk |
|
|
Back to top |
|
|
expressvijay n00b
Joined: 28 Jul 2011 Posts: 2
|
Posted: Thu Jul 28, 2011 9:57 am Post subject: need to compile and debug testdisk |
|
|
thanx for reply krinn
actually i am making research on partition recovery.so i need to understand the internal mechanism of code.that's why i need to know the how to debug and compile source code of testdisk on any os which has full step by step description
source code can be found on
http://www.cgsecurity.org/wiki/TestDisk |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Thu Jul 28, 2011 10:09 am Post subject: |
|
|
So, get the sources and read the README and INSTALL files, and eventually what resides in the doc folder.
In GNU/Linux environments, compilation from sources is something like
Code: | ./configure
make
make install |
To debug, use GNU gdb : http://www.gnu.org/software/gdb/documentation/ _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Jul 28, 2011 11:40 am Post subject: Re: need to compile and debug testdisk |
|
|
expressvijay wrote: | thanx for reply krinn
actually i am making research on partition recovery.so i need to understand the internal mechanism of code.that's why i need to know the how to debug and compile source code of testdisk on any os which has full step by step description
source code can be found on
http://www.cgsecurity.org/wiki/TestDisk |
Then you should start by reading the documentation shipped into that source package. As always. Specially the README and INSTALL files, and any other documentation that seems related in the package and their website, wikis, etc.
Besides that, "how to set up a compiler and a toolchain" on any random OS that's not Gentoo is not really a topic for this forum. |
|
Back to top |
|
|
|