-   Linux - Newbie (
-   -   Cant find Fortran File (

unixfreak 08-24-2004 11:16 PM

Cant find Fortran77 File After Installing
I just Installed the Fortran77 package from CD#2 and I dont know where the package is.
It asked me for CD2 and the Package was installed successfully, but the question is I cant find where it installed it to.

acid_kewpie 08-25-2004 02:44 AM

you should just need to access the g77 executable (assuming it was g77 you installed) from any old command line, as it should be on your path already.

unixfreak 08-25-2004 02:49 AM

I went to Xterm, and I typed g77 but no directory. Where could this be, that my question. Im tring to figure out where this package went. Its seems a mystery.

I will try Find Filea maybe it will pop up there, but I doubt it.

unixfreak 08-25-2004 03:18 AM

I really liked to find this file. It just bugs me.

btmiller 08-25-2004 04:34 AM

find / -name g77 -print

My guess is that it'll be in /usr/bin.

shengchieh 08-25-2004 05:33 PM

To find anything, use the whereis command, i.e.,

whereis g77 .

Mine is at /usr/bin/g77 .

Also, the find utility is nice. In KDE, it's kfind.
The find program is also probably (distribution-specific)
in your Home/Start/Launch menu at the very bottom
left corner.


unixfreak 08-25-2004 07:37 PM

Its in the Root Directory /usr/bin/g77 but I cant open the program.
I think I have to become root.

And I even typed 'su' in the terminal and it cant find the file or open the file.

btmiller 08-25-2004 08:11 PM

Post the results of "ls -l /usr/bin/g77" (no quotes) here if you're having further difficulties.

unixfreak 08-25-2004 08:39 PM

Results are:

lrwxrwxrwx 1root root /usr/bin/g77 (highlited blue) >> /etc/alternatives/g77* (hightlited green)

btmiller 08-25-2004 09:58 PM

Interesting ... what exactly happens if you try to run g77 from the command line (post the exact messages you get)? It looks like it's there, but I'm wondering why it's linked to something in /etc/alternatives...

unixfreak 08-26-2004 01:44 AM

It says 'No input Files'

I know its strange. I dont know. I have a feeling that these CDs I got some files or packages are corrupted. I just have a strange feeling.

Well, any other suggestions??? Although, it did say successful install.

btmiller 08-26-2004 02:44 AM

Oh, well in that case, it's all OK then. You need to pass g77 a Fortran source file for it to compile or it will complain in the manner you describe. Unix commands aren'tt known for their verbose errors messages :).

unixfreak 08-26-2004 02:50 AM

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?

unixfreak 08-26-2004 01:53 PM

I think Im being ignored here.

Im trying to locate this program. Please help me out.

michaelk 08-26-2004 03:13 PM

Not really... btmiller provided you with the answer but then I do not what you are looking for.

g77 is a command line compiler not a xwindows development environment.

If the fortran source code file is named file.f then to compile the program from a console window:
g77 file.f

The compiler creates the executable application called a.out. To run your application you would enter in a console window.

All times are GMT -5. The time now is 01:16 AM.