Link to home
Start Free TrialLog in
Avatar of hermesc
hermesc

asked on

New to Linux

this question is not diffucult I guess.

I am new to linux (2 days only).I am using this for my research ( actually have to ).Well the problem is I cant use make or makefile commands moreover I cant use many commands which I could by shhing to other linux machines.So I have to fix somethings what are they? I tried even path command which said there is no such command.I have linux suse and I just want to use it to compile and run some fortran applications thats all.Regards
SOLUTION
Avatar of ddunlea
ddunlea

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hermesc
hermesc

ASKER

hello ,

I have downloaded intel fortran 90 ,what settings should I do in order to use it easily?(env path settings etc...)
I have no clue - I've never used fortran.

SuSE has a Fortran 77 compiler, but there doesn't seem to be a Fortran 90 compiler that comes with it. If you install the Fortran 77 compiler (search for fortran within Yast) then it should set up the various environment settings for you. If using a third party compiler such as one from Intel, I'm afraid I can't help you.

Best of luck.
Avatar of hermesc

ASKER

What I have to do to setup environment variables?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hermesc

ASKER

do you know also how to configure makefile?
I'm sorry, but the information you are giving is too vague for me to make any use of. Sorry.
hermesc,

  Is the intel fortran compiler required?  If so, I wouldn't know about setting it up.  However, with the new release of GCC 4.0, there is now included a new fotran 95 compiler.  Documentation/introduction on that is available here: http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gfortran/index.html#toc_Getting-Started

  It might be available in the manner ddunlea describe for SuSe, but I don't use SuSe.

  You'll need to specify what kind you want out of a Makefile for anyone to help.  There is a basic structure however.  Do the fotran applications already have Makefiles or do you need to compile manually?

corey
Avatar of hermesc

ASKER

corey I have the makefile from my advisor where he is running in Suse with no problem.I resolved the path problem but in makefile I got no command found errors
Avatar of hermesc

ASKER

hello another problem is I want to use "command"
instead of "./command" what should I do for this?
Ok, if you can post the errors, we could probably help you resolve path and command issues.

The ./command allows you to execute a program or script in the current directory instead of searching your paths for it.

corey
Avatar of hermesc

ASKER

Makefile is the directions to compile.In our server I use makefile ( even make is enough ) so it compiles.But here I have to wrtie ./makefile
Is this "Makefile" an actual makefile or just a regular shell script?

What errors do you get from running just make in the directory?

You will have to give specifics, I cannot guess.

corey
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tzk,

While adding "." to your search path will resolve the ./command vs command issue you can create yourself other issues with your system then because of the way *nix systems execute programs.  If your program is in your path and you compiled it then installed it (for example) and attemp to launch it everything is fine (as long as you do not move from that directory).  But if you change your code then recompile the system will always run the one in the current path.  It will create hours of head scratching because of the multiple copies of the command in the path.  The important thing to remember is that the FIRST hit for a command in the path found is always the one used no matter the current working directory; unlike Micro$oft Windows where the current directory always overrides the path.