Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to compile Testdisk on Ubuntu or any other Linux os
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
expressvijay
n00b
n00b


Joined: 28 Jul 2011
Posts: 2

PostPosted: Thu Jul 28, 2011 7:43 am    Post subject: How to compile Testdisk on Ubuntu or any other Linux os Reply with quote

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
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Jul 28, 2011 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Thu Jul 28, 2011 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Thu Jul 28, 2011 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
expressvijay
n00b
n00b


Joined: 28 Jul 2011
Posts: 2

PostPosted: Thu Jul 28, 2011 9:57 am    Post subject: need to compile and debug testdisk Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Thu Jul 28, 2011 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Jul 28, 2011 11:40 am    Post subject: Re: need to compile and debug testdisk Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum