installing f77 in opensuse11.4

Hello
Happy new year
I am a new user in open suse.
I have open susue 11.4.
I want to run daophot codes in astronomy(they are codes in fortran77 in order to photometry ), so i went to YaST2 and search for fortran and choosed libg2c33 - (The GNU Fortran Compiler Runtime Library) and accepted it and finally installed.
also i do this in another way:I went to http://software.opensuse.org/search?q=libg2c&baseproject=openSUSE%3A11.4&lang=en&exclude_debug=true and chose* libg2c33* and click in 1-click install
But when i type f77 or g77 in terminal this error :
*susan@linux-thcq:~> f77
If ‘f77’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf f77
susan@linux-thcq:~> cnf f77
f77: command not found *
It show me that g77 didn’t install!!!
what can i do?
please help me
thank you

Did you have a special reason for using libg2c33 instead of the default gcc-4.5 (4.6 in 12.1) packages?

My 11.4 machine has the following packages installed (you won’t need them all):

:~> rpm -qa *gcc* | sort
gcc-4.5-19.1.x86_64
gcc-ada-4.5-19.1.x86_64
gcc-c++-4.5-19.1.x86_64
gcc-fortran-4.5-19.1.x86_64
gcc-gij-4.5-19.1.x86_64
gcc-info-4.5-19.1.x86_64
gcc45-4.5.1_20101208-9.8.x86_64
gcc45-ada-4.5.1_20101208-9.8.x86_64
gcc45-c++-4.5.1_20101208-9.8.x86_64
gcc45-fortran-4.5.1_20101208-9.8.x86_64
gcc45-gij-4.5.1_20101208-9.4.x86_64
gcc45-info-4.5.1_20101208-9.8.noarch
libgcc45-32bit-4.5.1_20101208-9.8.x86_64
libgcc45-4.5.1_20101208-9.8.x86_64

apropos gives a list of relevant man pages

:~> apropos fortran
ctags (1p)           - create a tags file (DEVELOPMENT, FORTRAN)
fort77 (1p)          - FORTRAN compiler (FORTRAN)
gfortran (1)         - GNU Fortran compiler
gfortran-4.5 (1)

I invoke the Fortran compiler with gfortran

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

You might get better help in:
http://forums.opensuse.org/english/other-forums/development/programming-scripting/

these codes wrote in fortran 77.
I tried gfortran but it didn’t Make my “make file”.
What can I do???

What about a professional package such as absoft?

Absoft Pro Fortran Compiler Suites!

They have a 30 day free trial; they also appear to have a student license, probably very cheap and very worth the money.

Am 01.01.2012 13:56, schrieb beihaghian:
>
> these codes wrote in fortran 77.
> I tried gfortran but it didn’t Make my “make file”.
> What can I do???
>
>
The command is gfortran (instead of f77). So you have two options,
change the makefile to call the command gfortran instead of f77 for
compilation or simply make a symlink f77 which points to gfortran.


sudo ln -s /usr/bin/gfortran /usr/bin/f77

gfortran is fully compliant with the old f77 standard.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.4 |
nVidia ION | 3GB Ram

  1. This is a forum to support Free/Libre software – not to advertise proprietary products.
  2. US companies are not allowed to export to countries that object to CIA interference with their governance.
  3. Some places, a months salary for a professional equates to an Ivy League undergraduate’s pocket change.
  4. In this case, it would just substitute a cheap problem with a more expensive one.

as they say, “you only get what you pay for…” Not sure if you have it in Scotland, but, here in the States, we have freedom of speech and I was simply exercising mine;

As an aside…Although I have not tried the GNU/Linux version of GNU Fortran, I have used it successfully on a Sparc64 OpenBSD system, so I know it works and can be easily installed…

On 01/01/2012 09:40 AM, Martin Helm wrote:
> Am 01.01.2012 13:56, schrieb beihaghian:
>>
>> these codes wrote in fortran 77.
>> I tried gfortran but it didn’t Make my “make file”.
>> What can I do???
>>
>>
> The command is gfortran (instead of f77). So you have two options,
> change the makefile to call the command gfortran instead of f77 for
> compilation or simply make a symlink f77 which points to gfortran.
>
>


> sudo ln -s /usr/bin/gfortran /usr/bin/f77
> 

>
> gfortran is fully compliant with the old f77 standard.

You also need to install make. It is a separate package.

Hello all
Thanks for your help
I created a symbolic link with this code:ln -s /usr/bin/gfortran /usr/bin/g77
But my codes didn’t make again!
Also i change my make file in this manner:
F77 = g77 change in to F77 = gfortran
But didn’t work again!

thank you for your attention
please help me

dear eng-int
i have this packeges in my laptop:


susan@linux-thcq:~> rpm -qa *gcc* | sort

gcc-32bit-4.5-19.1.x86_64
gcc33-3.3.3-45.1.x86_64
gcc33-fortran-3.3.3-45.1.x86_64
gcc-4.5-19.1.x86_64
gcc45-32bit-4.5.1_20101208-9.8.x86_64
gcc45-4.5.1_20101208-9.8.x86_64
gcc45-c++-4.5.1_20101208-9.8.x86_64
gcc45-fortran-32bit-4.5.1_20101208-9.8.x86_64
gcc45-fortran-4.5.1_20101208-9.8.x86_64
gcc45-gij-4.5.1_20101208-9.4.x86_64
gcc45-info-4.5.1_20101208-9.8.noarch
gcc45-java-4.5.1_20101208-9.4.x86_64
gcc45-objc-32bit-4.5.1_20101208-9.8.x86_64
gcc45-objc-4.5.1_20101208-9.8.x86_64
gcc-c++-32bit-4.5-19.1.x86_64
gcc-c++-4.5-19.1.x86_64
gcc-fortran-32bit-4.5-19.1.x86_64
gcc-fortran-4.5-19.1.x86_64
gcc-gij-4.5-19.1.x86_64
gcc-info-4.5-19.1.x86_64
gcc-java-4.5-19.1.x86_64
gcc-objc-32bit-4.5-19.1.x86_64
gcc-objc-4.5-19.1.x86_64
libgcc45-32bit-4.5.1_20101208-9.8.x86_64
libgcc45-4.5.1_20101208-9.8.x86_64

and when i did it with gfortran i faced with this:


susan@linux-thcq:~/Documents/daophot first step> ls
addstar.f    daogrow.f      fudge.f       libvops.a      pckpsf.f
allframe.f   daomaster.f    group.f       lnxsubs.f      peak.f
allstar.f    daomatch.f     iosubs.f      lnxsubs.o      psf.f
allstar.o    daophot.f      iosubs.o      Makefile       README.txt
allstsubs.f  daophotii.ps   irasubs.f     Makefile.mac   sort.f
allstsubs.o  daophotii.tex  libcfitsio.a  Makefile.unix  substar.f
arrays.inc   dummysm.f      libcompat.a   mathsubs.f     unxsubs.f
bothsubs.f   find.f         libimfort.a   mathsubs.o
ccdpck.man   fitsubs.f      libos.a       montage2.f
cook3.1.ps   fotometry.f    libsys.a      nstar.f
susan@linux-thcq:~/Documents/daophot first step> make
gfortran -c -O2 bothsubs.f
bothsubs.f:69.33:

      character function  message*80  (imgtyp, ier)                     
                                 1
Error: Expected formal argument list in function definition at (1)
bothsubs.f:76.16:

      message = error                                                   
                1
Error: Can't convert CHARACTER(1) to INTEGER(4) at (1)
make: *** [bothsubs.o] Error 1

and this also placed, when i symlinked gfortran with f77or g77

I am a new in linux please help me with details …

Am 03.01.2012 10:46, schrieb beihaghian:
>
> Hello all
> Thanks for your help
> I created a symbolic link with this code:ln -s /usr/bin/gfortran
> /usr/bin/g77
> But my codes didn’t make again!
> Also i change my make file in this manner:
> F77 = g77 change in to F77 = gfortran
> But didn’t work again!
>
> thank you for your attention
> please help me
>
>
“Didn’t work” does not help us helping you. Please post the exact error
messages when you run make between code tags.
What is the software you want to compile? Is it available from a link so
we can take a look at it?


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.4 |
nVidia ION | 3GB Ram