[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make or preprocessor error - ddrescue-1.5



Can you tell us the version of your Debian?
Mine is Lenny(testing). I tried to compile ddrescue-1.5.
My information is below:
fmying@QC225:~/ddrescue/ddrescue-1.5$ ./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 = g++
CPPFLAGS =
CFLAGS = -Wall -W -O2
CXXFLAGS = -Wall -W -O2
LDFLAGS =
OK. Now you can run make.
fmying@QC225:~/ddrescue/ddrescue-1.5$ make
g++  -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
g++  -Wall -W -O2 -c -o block.o block.cc
g++  -Wall -W -O2 -c -o ddrescue.o ddrescue.cc
g++  -Wall -W -O2 -c -o logbook.o logbook.cc
g++  -Wall -W -O2 -DPROGVERSION=\"1.5\" -c -o main.o main.cc
g++  -o ddrescue arg_parser.o block.o ddrescue.o logbook.o main.o

It succeeded. Could you install g++ and try again?


On 8/29/07, Adam W <adam.ckdvwwzz@gmail.com> wrote:
> For the recovery I am trying to do the direct disc accrss ability of
> ddrescue-1.[4|5] is recomended. I have the same problems when I try
> 1.4. The stable / testing / unstabe only have ddrescue-1.2x. So, I got
> ddrescue-1.5 from GNU.
>
> Thanks.
>
> I extract the archive and cd to the directory.
>
> $ ./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.
> $ make
> c++  -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
> make: c++: Command not found
> make: *** [arg_parser.o] Error 127
> $
>
> apt-cache serch c++ didn't help me
> I have cpp and gcc installed in /usr/bin/
> So, I try linking them with c++
>
> $ su
> # ln -T /usr/bin/cpp /usr/bin/c++ && make && install
> c++  -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
> c++: "-c" is not a valid option to the preprocessor
> make: *** [arg_parser.o] Error 1
> # rm /usr/bin/c++ && ln -T /usr/bin/gcc /usr/bin/c++ && make && install
> c++  -Wall -W -O2 -c -o arg_parser.o arg_parser.cc
> c++: error trying to exec 'cc1plus': execvp: No such file or directory
> make: *** [arg_parser.o] Error 1
> #
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>



Reply to: