[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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
0
hermesc
Asked:
hermesc
  • 6
  • 4
  • 3
  • +2
3 Solutions
 
ddunleaCommented:
Hi hermesc,

You need to install make and several other tools to build. The default SuSE install does not have compilers etc. set up by default. While logged in as root, run yast (Yet Another Setup Tool), go to Software -> Install And Remove Software -> Filter -> Search -> make

Select the make package for installation. It should resolve the dependencies automatically and install a bunch of programs. You will want to install gcc as well in a similar manner, though it may get installed automatically when you install make.

Hope that helps.
0
 
hermescAuthor Commented:
hello ,

I have downloaded intel fortran 90 ,what settings should I do in order to use it easily?(env path settings etc...)
0
 
ddunleaCommented:
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.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
hermescAuthor Commented:
What I have to do to setup environment variables?
0
 
ddunleaCommented:
You can set enviornmental variables in the .bashrc file in your home dir by adding a line like

export SOME_ENV_VAR="SOME_VALUE"

As for what variables you'll need to set to make the compiler work, I'm not really sure. Genrally, a well written configure program and makefile should be able to help with a lot of these issues, but as I say, I'm unfamiliar with Fortran 90.
0
 
hermescAuthor Commented:
do you know also how to configure makefile?
0
 
ddunleaCommented:
I'm sorry, but the information you are giving is too vague for me to make any use of. Sorry.
0
 
_corey_Commented:
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
0
 
hermescAuthor Commented:
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
0
 
hermescAuthor Commented:
hello another problem is I want to use "command"
instead of "./command" what should I do for this?
0
 
_corey_Commented:
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
0
 
hermescAuthor Commented:
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
0
 
_corey_Commented:
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
0
 
tzkCommented:
hermesc,
      Editing the path in .profile, add "." to the path. Then you can use "command" instead of "./command"

0
 
westlinCommented:
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 6
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now