Results 1 to 9 of 9

Thread: Having trouble with 'make' command. (pertaining to ddrescue)

  1. #1

    Having trouble with 'make' command. (pertaining to ddrescue)

    <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)...

    Code:
    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)...



    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>

  2. #2
    Senior Member registered user
    Join Date
    Apr 2005
    Posts
    159
    Quote Originally Posted by ILikeWaffles View Post
    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.

  3. #3
    Sorry for the confusion...ddrescue does not come with the package. I had to download it like this...
    Code:
      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...
    Code:
     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.

  4. #4
    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?!

  5. #5
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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
    You have to install the GNU info program if you like to read the documentation.
    Code:
    sudo apt-get -t testing install info
    info -f /usr/local/share/info/ddrescue.info

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by ILikeWaffles View Post
    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'.

  7. #7
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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.

  8. #8
    Quote Originally Posted by klaus2008 View Post
    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!!!

  9. #9
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS picture

Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS

$199.99



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used. picture

HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used.

$45.00



HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES

$174.99



HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED picture

HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED

$550.00



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE Proliant Microserver Gen10 X3421 Perf AMS,  P03698-S01, 16GB Ram picture

HPE Proliant Microserver Gen10 X3421 Perf AMS, P03698-S01, 16GB Ram

$299.00



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD picture

SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD

$90.00