Installation Question! (A suggestion)

RadSurfer RadSurfer@yahoo.com
Wed Aug 8 16:53:00 GMT 2007


Angelo Graziosi <Angelo.Graziosi <at> roma1.infn.it> writes:

> 
> 
> On Tue, 7 Aug 2007, FX Coudert wrote:
> 
> > >        (sudo) tar -xjvf gfortran-sys_pakage.tar.bz2 -C /
[snip]
> No. It does not interfere. Re-read the mail. I wrote
>   prefix_dir="/usr/local/gfortran"
> 
> so that the above tar command installs GFortran in /usr/local/gfortran!
[snip]

> After the installation one should create:
> 
>   ln -sf /usr/local/gfortran/bin/gfortran.exe /usr/local/bin/gfc
>   ln -s /usr/local/gfortran/bin/gfortran.exe /usr/local/bin/gfortran
> 
> Cheers,
>    Angelo.
[snip]

OK: this is what I did, and it does _not_ seem to work; what went wrong?
[please read carefully: I tried to provide as much info as I could think of]

1) Copy complete contents /irun folder into /usr/local/gfortran
   precompiled binaries from the archive:
  -rw-rw-r--  1 RadSurfer RadSurfer 35349924 Jul 25 18:46
  gfortran-linux.tar.gz

2)
[root@centos ~]#
    ln -sf /usr/local/gfortran/bin/gfortran.exe /usr/local/bin/gfc
[root@centos ~]# 
    ln -s /usr/local/gfortran/bin/gfortran.exe /usr/local/bin/gfortran

No error messages as you can see.

[root@centos ~]# gfortran --version

GNU Fortran 95 (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
Copyright (C) 2006 Free Software Foundation, Inc.  (still OLD CentOS version)

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

[root@centos ~]# cd /usr/local/gfortran/bin    <---- NOTE! NOTE!

[root@centos bin]# ./gfortran
gfortran: no input files

[root@centos bin]# ./gfortran --version
GNU Fortran (GCC) 4.3.0 20070722 (experimental)
Copyright (C) 2007 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

----and---
[root@centos RadSurfer]# gfc
-bash: gfc: command not found
[root@centos RadSurfer]# ./gfc
-bash: ./gfc: No such file or directory

THERE is no  `gfc`  on the system; EXCEPT for what was created by the
link above...   perhaps this is the problem?

I am not getting the "irun" version of gfortran.  What went wrong?

---also---
lrwxrwxrwx  1 root      root          36 Aug  8 12:32 gfc ->
/usr/local/gfortran/bin/gfortran.exe   (broken)
lrwxrwxrwx  1 root      root          36 Aug  8 12:32 gfortran ->
/usr/local/gfortran/bin/gfortran.exe   (broken)

Nautilus actually shows "(Broken)" but `ls -al` does not.
~~~~~~~~~~~~~~~~~
[RadSurfer@centos ~]$ /usr/local/gfortran/bin/gfortran --version
GNU Fortran (GCC) 4.3.0 20070722 (experimental)
Copyright (C) 2007 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
~~~~~~~~~~~~~

Thanks for the help!

//Rich//



More information about the Fortran mailing list