Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The g77 command requires you give it a filename on the command line. As michaelk mentioned, a valid command would be something like: g77 some_file.f
You need to provide that file. You have to create it yourself. Open a text editor, type in the FORTRAN source code you want, and save it.
Then, at a command line, issue the command above, but change "some_file.f" to whatever filename you saved with the text editor previously.
When the command completes, it will either inform you of errors in your file that you need to correct, or it will produce an executable file.
If you do not see any errors, you run the program by executing: ./a.out
The g77 command does not open a text editor for you. It's not a development environment. Its only purpose is to convert the code you give it into an executable file. If you're looking for a development environment (like Visual C++, Borland Turbo Pascal, or other types you find in Windows), then you need to find another program. Chances are good that other program is simply a shell that will use the g77 command. So don't remove g77 if you go look for a development environment.
Originally posted by unixfreak Ok, so i need to use Fortran77. So I cant use Fortran? Or what do I need to do to get this going?
How could I use it then?
You said that you're getting an error similar to "no input files". Do you have a Fortran source to compile. If yes, then pass the necessary parameters to g77. Read the g77 man page for proper command syntax. If you don't have any Fortran source handy, open your favorite text editor and start writing. I'm sure that if you did a Google search you could find a quick "hello world" program to use as a test compile.