Installation error xairy.out


porter
11-20-2006, 11:44 AM
Hello,

So I changed the makefile from CC=CC to CC=g++. I also put changed
xairy.out > xairy.reslt && \
to
./xairy.out > xairy.reslt && \

as was suggested for another users errors
Now I get the following error:

g++ -I/usr/local/src/recipes_cpp/utils -I. -o xairy.out xairy.o airy.o bessik.o bessjy.o beschb.o chebev.o -lm
./xairy.out > xairy.reslt && \
/usr/local/src/recipes_cpp/utils/nrdiff.pl xairy.reslt /usr/local/src/recipes_cpp/demo/answers
/bin/sh: /usr/local/src/recipes_cpp/utils/nrdiff.pl: /usr/local/bin/perl: bad interpreter: No such file or directory
make: *** [xairy.reslt] Error 126

And the files produced are:

airy.o bessik.o chebev.o fncval.dat makefile~ matrx1.dat matrx3.dat table1.dat tarray.dat xairy.o xairy.reslt
beschb.o bessjy.o dates1.dat makefile make.log matrx2.dat spctrl.dat table2.dat text.dat xairy.out


Does anyone have any ideas on how I should proceed to get these code running. Thanks. porter

Saul Teukolsky
11-21-2006, 08:50 AM
Hi Porter,

The utility nrdiff.pl checks the output of the test run against the "correct" answers. It assumes that your perl program is in
/usr/local/bin/perl
Check this by typing
which perl
at a command prompt. If you get, for example,
/usr/bin/perl
then change the first line of nrdiff.pl to match this.

Saul Teukolsky

porter
11-21-2006, 02:58 PM
Saul,
That did the trick. Thank You. porter