LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-14-2006, 10:31 AM   #1
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Rep: Reputation: 15
Installing g77 fortran compiler for xfoil!


hi...
i have downloaded the tar.gz file of g77 fortran compiler. can someone tell me how to install it?
the reason was to get xfoil working...so if someone can help me with that too, that would be great.
Thanks
 
Old 07-14-2006, 10:44 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
If it's a .deb file (think this works for .rpm too) open it in the file manager mc go to it tap enter go inside to 'install' tap enter.
 
Old 07-14-2006, 10:55 AM   #3
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
what does all that mean? I have arch linux.
need a lil bit more help with explaining what to do.
 
Old 07-14-2006, 12:08 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
Code:
tar -zxvf <package_name>.tar.gz
./configure
make 
make install
That should get it installed. you might want to check out all the options configure has.
 
Old 07-14-2006, 02:02 PM   #5
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
actually i have gcc 4.1.1..gcc-fortran
but when i put it into the config.make file of Xfoil, it still doesnt work. ANyone know how to get xfoil to work?
 
Old 07-14-2006, 06:39 PM   #6
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
i tried your method but it doesnt work and its probably because its arch. pacman doesnt have it so im kinda stuck. help - gr8tly appreciated!
 
Old 07-17-2006, 11:42 AM   #7
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by jstephens84
Code:
tar -zxvf <package_name>.tar.gz
./configure
make 
make install
That should get it installed. you might want to check out all the options configure has.
Should think you have to go into the directory the thing's in before you do the above - the directory with 'configure' in it. what happens when you do the above?

What's the full name of the file?
 
Old 07-18-2006, 10:07 AM   #8
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
sorry for the delay.
i gave up on trying to put g77 on...so for xfoil, i put gfortran for my FC. it sorta worked but i think i changed too many things so im gonna install it again and see what happens. Ill let you know if it did.
THanks for your help. Ill keep what you said in mind.
 
Old 08-03-2006, 12:03 PM   #9
flipwhy
Member
 
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
well...i left xfoil for along while..but then decided i needed it.
SO i got as far as make xfoil using gfortran.(added the flag -ff2c so it is compatible with f77 code)..this is when it says this:
../plotlib/libPltDP.a(ps_subs.o): In function `bitpat_':
ps_subs.f.text+0x78): undefined reference to `rshift_'
ps_subs.f.text+0xf9): undefined reference to `rshift_'
collect2: ld returned 1 exit status
make: *** [xfoil] Error 1


This is what the ps_sub.f file (the required portion) says:

c--- Shift the mask until the low order bit is 1 to start...
imask = mask
do n = 1, 16
ibitold = and(1,imask)
if(ibitold.NE.0) go to 5
nshft = n
imask = rshift(imask,1)
end do
c
5 nout = 0
if(nshft.GE.16) return
nbits = 0
c


anyone know how or what to do?i cant find anything on google.
 
Old 11-16-2006, 05:30 AM   #10
seiyachan
LQ Newbie
 
Registered: Jun 2005
Posts: 9

Rep: Reputation: 0
I found this in the Makefile for plotlib:

### Uncomment for f77 compiler w/o AND() and RSHIFT/LSHIFT functions.
### This adds some functions to duplicate these using IAND and ISHFT
### which often appear in these offending fortran's libraries.
### The compilers that this has affected include:
### HPUX f77
### Absoft f77 on Linux
###
#OBJMISC = util-ops.o
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
Fortran compiler gcc-g77 installation problem refp16 Linux - Software 6 11-26-2005 12:49 PM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
G77 Fortran included in Fedora 2 ? aeslin Linux - Software 1 11-08-2004 07:27 AM
problems installing FORTRAN compiler in SuSeE 8.2 rich442 Linux - Software 0 06-25-2003 09:39 PM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration