LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   in linux fortran: problem with the command "make" (https://www.linuxquestions.org/questions/programming-9/in-linux-fortran-problem-with-the-command-make-357133/)

terrence 08-26-2005 02:42 AM

in linux fortran: problem with the command "make"
 
hello all
i have the following problem when i try to run the make command for an optics program:

make optics
(cd /lib; make liboptics.a)
make[1]: Entering directory `/lib'
make[1]: *** No rule to make target `liboptics.a'. Stop.
make[1]: Leaving directory `/lib'
make: *** [/liboptics.a] Error 2


any ideas what the errors are about?
btw i have no fortran background, just java.

Ike M. 08-26-2005 03:24 AM

Are you sure
 
that you have all of the appropriate compilers installed on your system? That is not a message that I am accustomed to getting from any of mine. Usually if I run into a problem, it is more towards the end of a whole list of stuff, and it is usually a message telling me that I donīt have this or that required package or this or that in the directory that the compiler was expecting to find this or that in.

terrence 08-27-2005 04:02 AM

thanks for the reply

it turns out, i needed to switch csh shell and setup the enviornmental variables. However, when tried to run the 'make optics' command once again, the following errors resulted:

make optics
f77 -static -fpe -cpp -C -I. -I/root/Desktop/optics -c optics.f
f77: unrecognized option `-cpp'
f771: unrecognized option `-fpe'
make: *** [optics.o] Error 1


this is a project i've been working on for months now, i'm very new to linux, so i've been inching by just to try to setup and get the program running. the program and its info can be found at
http://pibeta.phys.virginia.edu/public_html/optics/


All times are GMT -5. The time now is 10:06 AM.