PDA

View Full Version : Having trouble with 'make' command. (pertaining to ddrescue)



ILikeWaffles
09-01-2010, 05:21 PM
<span style="background-color: #99FF99;">I'm trying to copy a hard drive using Antonio Diaz's GNU 'ddrescue' outlined at the bottom of this link...

http://www.cgsecurity.org/wiki/Damaged_Hard_Disk

This is my log in knoppix (live CD)...


knoppix@Microknoppix:~$ cd ddrescue-1.8
knoppix@Microknoppix:~/ddrescue-1.8$ ./configure

creating config.status
creating Makefile
VPATH = .
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datadir = $(prefix)/share
infodir = $(datadir)/info
mandir = $(datadir)/man
sysconfdir = $(prefix)/etc
CC = gcc
CXX = c++
CPPFLAGS =
CFLAGS = -Wall -W -O2
CXXFLAGS = -Wall -W -O2
LDFLAGS =
OK. Now you can run make.
knoppix@Microknoppix:~/ddrescue-1.8$ make
c++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
make: c++: Command not found
make: *** [arg_parser.o] Error 127
knoppix@Microknoppix:~/ddrescue-1.8$These are the files located in the ddrescue folder (I know it's a Windows snapshot, but it's the only way I can show a pic of the contents)...

http://img186.imageshack.us/img186/763/contents.jpg

Any ideas why it did not 'make'?

Maybe I should try the newer version?? I only did 1.8 because I wanted to follow exactly the steps on the cgsecurity website and wasn't sure if the ddrescue syntax changed in the newer versions.

Thanks,
Dave</span>

kirol
09-01-2010, 08:51 PM
knoppix@Microknoppix:~/ddrescue-1.8$ make
c++ -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
make: c++: Command not found
I would have expected "configure" to complain loudly about this, but you don't seem to have the C++ compiler installed. Try "apt-get install g++". Having said that, it seems ddrescue is available from the regular debian package pool (at least on this here stable install). So, unless you know you need a specific version, you can simply "apt-get install ddrescue".Oh, and don't forget to run "apt-get update" before installing.

ILikeWaffles
09-01-2010, 11:51 PM
Sorry for the confusion...ddrescue does not come with the package. I had to download it like this...
download ddrescue wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2 # extract the source code tar xjf ddrescue-1.8.tar.bz2 I tried your suggestion and this is what I get...
root@Microknoppix:~# apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package g I also did the update and it download 20Mb's of data and still I can't make.

ILikeWaffles
09-02-2010, 10:27 AM
Sorry for the code being all in one line. I was using the browser in knoppix and the tags weren't working.

To add to the confusion...I checked the included packages with knoppix and ddrescue is on the list.

I'm travelling right now and can't play around with it, but how do you invoke ddrescue if it's included with knoppix? Just start typing ddrescue in the root command prompt?!

klaus2008
09-02-2010, 02:14 PM
The gcc package coming with Knoppix V 6.2.1 CD is newer than the one in the stable branch. I think that the easiest solution would be to install the g++ package from the testing branch.

I would suggest that you boot your Knoppix Live CD, connect to the internet, kill the screensaver daemon and execute the following commands in a terminal.


sudo apt-get update
sudo apt-get -t testing install g++
mkdir /home/knoppix/test
cd /home/knoppix/test
wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2
tar xjf ddrescue-1.8.tar.bz2
cd ddrescue-1.8
./configure
make
sudo make install
You have to install the GNU info program if you like to read the documentation.


sudo apt-get -t testing install info
info -f /usr/local/share/info/ddrescue.info

kl522
09-03-2010, 12:57 AM
To add to the confusion...I checked the included packages with knoppix and ddrescue is on the list.

... but how do you invoke ddrescue if it's included with knoppix? Just start typing ddrescue in the root command prompt?!

If you use synaptic, you can click on ddrescue package, and select properties. When the properties dialog appears, you select "installed files" tab. Then you will find that essentially there is a command called 'dd_rescue' and there is a man page for 'dd_rescue'.

klaus2008
09-03-2010, 06:53 AM
There is also a package called gddrescue in the Debian repos. I think this is the right program but its version differs from the one on the cgsecurity webpage.

ILikeWaffles
09-03-2010, 06:03 PM
The gcc package coming with Knoppix V 6.2.1 CD is newer than the one in the stable branch. I think that the easiest solution would be to install the g++ package from the testing branch.

I would suggest that you boot your Knoppix Live CD, connect to the internet, kill the screensaver daemon and execute the following commands in a terminal.
[code]
sudo apt-get update
sudo apt-get -t testing install g++
mkdir /home/knoppix/test
cd /home/knoppix/test
wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2
tar xjf ddrescue-1.8.tar.bz2
cd ddrescue-1.8
./configure
make
sudo make install


This man speaks the truth!!! It works!

I disabled the screensaver in the menu before the install, but it still gave me some warnings during the g++ install. Still worked though after just pressing 'ok' to everything.

How did you mean to disable the screensaver daemon?

Thanks!!!

klaus2008
09-04-2010, 09:56 AM
If you start the program "Screensaver Preferences" (you can find it in the menu "Preferences") you will see that this program has got a menu called "File" where you can select "Kill Daemon". There is also a menu item to restart the screensaver daemon.