LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 08-24-2004, 10:16 PM   #1
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Rep: Reputation: 30
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.

Last edited by unixfreak; 08-24-2004 at 10:38 PM.
 
Old 08-25-2004, 01:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 08-25-2004, 01:49 AM   #3
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
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.
 
Old 08-25-2004, 02:18 AM   #4
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I really liked to find this file. It just bugs me.
 
Old 08-25-2004, 03:34 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
find / -name g77 -print

My guess is that it'll be in /usr/bin.
 
Old 08-25-2004, 04:33 PM   #6
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
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.

Sheng-Chieh
 
Old 08-25-2004, 06:37 PM   #7
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
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.
 
Old 08-25-2004, 07:11 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Post the results of "ls -l /usr/bin/g77" (no quotes) here if you're having further difficulties.
 
Old 08-25-2004, 07:39 PM   #9
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
Results are:

lrwxrwxrwx 1root root /usr/bin/g77 (highlited blue) >> /etc/alternatives/g77* (hightlited green)
 
Old 08-25-2004, 08:58 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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...
 
Old 08-26-2004, 12:44 AM   #11
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
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.
 
Old 08-26-2004, 01:44 AM   #12
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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 .
 
Old 08-26-2004, 01:50 AM   #13
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
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?

Last edited by unixfreak; 08-26-2004 at 01:52 AM.
 
Old 08-26-2004, 12:53 PM   #14
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I think Im being ignored here.

Im trying to locate this program. Please help me out.
 
Old 08-26-2004, 02:13 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
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.

Example
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.
./a.out


http://gcc.gnu.org/fortran/

Last edited by michaelk; 08-26-2004 at 02:14 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
How to output a C stream into a binary file readable via Fortran I/O? zero79 Programming 8 02-07-2005 08:51 PM
Find File broken, need search utility, where does WineX install, KDE file roller? Ohmn Mandriva 6 07-05-2004 10:34 PM
Fortran unformatted file conversion from Solaris to linux SenorPedo Programming 2 02-29-2004 11:13 PM
how can I see a fortran file in linux tal Linux - Newbie 2 10-02-2003 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration