Installation problems


eyc
07-30-2007, 06:55 PM
Hello,

I tried to test my installation on linux, but the results doesn't seem to be good. What should I do?

eyc@ubuntu:~/Desktop/cpp$ ls
makefile
eyc@ubuntu:~/Desktop/cpp$ make
/bin/cp /usr/local/src/recipes_cpp/demo/data/dates1.dat dates1.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/fncval.dat fncval.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/matrx1.dat matrx1.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/matrx2.dat matrx2.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/matrx3.dat matrx3.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/spctrl.dat spctrl.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/table1.dat table1.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/table2.dat table2.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/tarray.dat tarray.dat
/bin/cp /usr/local/src/recipes_cpp/demo/data/text.dat text.dat
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/demo/src/xairy.cpp
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/recipes/airy.cpp
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/recipes/bessik.cpp
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/recipes/bessjy.cpp
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/recipes/beschb.cpp
g++ -I/usr/local/src/recipes_cpp/utils -I. -c /usr/local/src/recipes_cpp/recipes/chebev.cpp
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: not found
make: *** [xairy.reslt] Error 127

P.S. I've changed CC=CC to CC=g++

Thank you.

eyc
08-01-2007, 07:12 PM
Hello,

Somehow I've solved my own problem. It turns out that my perl is in the directory /usr/bin/ instead of /usr/local/bin. (so I added a link from /usr/local/bin to /usr/bin)

However, I think I need some clarification for the following paragraph in the README file:

After the results files are created, you can check them against
the intended answers. It's easy to do this if you make a subdirectory
"results", and

mv *.reslt results

It may be possible to just run diff(1) on the two directories:

diff [-s] results <path>/recipes_cpp/demo/answers > diff.log

However, your C++ may format some answers differently than
ours, such as 0.0 verses 0.0000. This, plus differences due to rounding,
may cause the results from diff(1) to be less helpful. If you have the
PERL language on your system, you may find the "nrdiff.pl"
approximate-comparison program (in the demo subdirectory) useful.


My questions are as follows:
1. Isn't nrdiff.pl already used in the makefile? I suppose make.log contain information on whether the two results are the same.

2. nrdiff.pl is actually in the utils subdirectory instead of demo subdirectory.

Thank you.