LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2008, 03:25 PM   #1
minaesm
Member
 
Registered: Oct 2008
Posts: 38
Blog Entries: 3

Rep: Reputation: 15
Exclamation problem installing fortran77 on suse11


hi every one
lately i'v installed suse11 on my laptop(dell-inspiron-1525) . for my project i have to compile a program (software doanloaded from internet). but the error is that i do not have f77. i dawnloaded a g77pack from net but i do not knowhow to install it on my suse11.plz help me and give instructions. thnks
 
Old 11-13-2008, 03:33 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,149

Rep: Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856
Quote:
Originally Posted by minaesm View Post
hi every one
lately i'v installed suse11 on my laptop(dell-inspiron-1525) . for my project i have to compile a program (software doanloaded from internet). but the error is that i do not have f77. i dawnloaded a g77pack from net but i do not knowhow to install it on my suse11.plz help me and give instructions. thnks
So you DOWNLOADED something from the internet, but what? Did you download the RPM file, or did you download the source code? Where did you download it from? Did you look in the package or on that site, for the instructions???

If you downloaded the RPM file, (as root), type in "rpm -i <whatever file name you have>". Source code? Uncompress it, and go into the directory it created. There are probably installation instructions in there, along with auto-configure scripts.
 
Old 11-13-2008, 10:51 PM   #3
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
Quote:
Originally Posted by minaesm View Post
hi every one
lately i'v installed suse11 on my laptop(dell-inspiron-1525) . for my project i have to compile a program (software doanloaded from internet). but the error is that i do not have f77. i dawnloaded a g77pack from net but i do not knowhow to install it on my suse11.plz help me and give instructions. thnks
I think that you do not need g77. You have gfortran installed in your system. Just type
Code:
which gfortran
to be sure. It should return something like /usr/bin. If not add the GNU compiler (4.3 or above) from your repositories.

Next, when you compile, probably the first step is to type ./configure. Type
Code:
./configure --help
to get a list of options. If you find something like F77 or FC, you can set either or both in this manner:
Code:
./configure F77=gfortran FC=gfortran
and you should be on your way.

The other option is (though i am not sure if it is the right thing to do) that you create a symbolic link 'g77' to gfortran.

Good luck!
 
Old 11-14-2008, 09:26 AM   #4
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
what i've downloaded

Quote:
Originally Posted by TB0ne View Post
So you DOWNLOADED something from the internet, but what? Did you download the RPM file, or did you download the source code? Where did you download it from? Did you look in the package or on that site, for the instructions???

If you downloaded the RPM file, (as root), type in "rpm -i <whatever file name you have>". Source code? Uncompress it, and go into the directory it created. There are probably installation instructions in there, along with auto-configure scripts.
hi and thanks for your help. i've downloaded " g77-3.2.3.tgz " from internet.does it the compatible file for linux???and how can i install it?
 
Old 11-14-2008, 09:35 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,149

Rep: Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856
Quote:
Originally Posted by minaesm View Post
hi and thanks for your help. i've downloaded " g77-3.2.3.tgz " from internet.does it the compatible file for linux???and how can i install it?
Did you read my first response to you? The part where it says "Uncompress it, and go into the directory it created. There are probably installation instructions, along with auto-configure scripts"???? Why don't you try that?
 
Old 11-14-2008, 12:44 PM   #6
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
Did you read my first response to you? The part where it says "Uncompress it, and go into the directory it created. There are probably installation instructions, along with auto-configure scripts"???? Why don't you try that?
hi actually i did it and again when i try to compile my program again there was a fortran error
 
Old 11-14-2008, 01:04 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,149

Rep: Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856
Quote:
Originally Posted by minaesm View Post
hi actually i did it and again when i try to compile my program again there was a fortran error
How about actually TELLING US WHAT THE ERROR WAS, if you'd like help.
 
Old 11-17-2008, 03:15 AM   #8
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
How about actually TELLING US WHAT THE ERROR WAS, if you'd like help.
Quote:
Originally Posted by TB0ne View Post
How about actually TELLING US WHAT THE ERROR WAS, if you'd like help.
hi . actually as i said before i did exactly what u and others said but again the same problem occurs. let me explain exactly what i want to do: i downloaded this software http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands and i uncompress it in this path as root: usr/local/mpb . i opened terminal window and the error was this :

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = linux-bdk3
uname -m = i686
uname -r = 2.6.25.5-1.1-pae
uname -s = Linux
uname -v = #1 SMP 2008-06-07 01:55:22 +0200

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde3/bin
PATH: /opt/cross/bin
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin
PATH: /usr/lib/qt3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1297: checking for vendor f77 to be used instead of g77
configure:1299: result:
configure:1305: checking for f77
configure:1334: result: no
configure:1305: checking for xlf77
configure:1334: result: no
configure:1305: checking for cf77
configure:1334: result: no
configure:1305: checking for fort77
configure:1334: result: no
configure:1305: checking for f90
configure:1334: result: no
configure:1305: checking for xlf90
configure:1334: result: no
configure:1392: checking for g77
configure:1421: result: no
configure:1392: checking for f77
configure:1421: result: no
configure:1392: checking for xlf
configure:1421: result: no
configure:1392: checking for frt
configure:1421: result: no
configure:1392: checking for pgf77
configure:1421: result: no
configure:1392: checking for fl32
configure:1421: result: no
configure:1392: checking for af77
configure:1421: result: no
configure:1392: checking for fort77
configure:1421: result: no
configure:1392: checking for f90
configure:1421: result: no
configure:1392: checking for xlf90
configure:1421: result: no
configure:1392: checking for pgf90
configure:1421: result: no
configure:1392: checking for epcf90
configure:1421: result: no
configure:1392: checking for f95
configure:1421: result: no
configure:1392: checking for fort
configure:1421: result: no
configure:1392: checking for xlf95
configure:1421: result: no
configure:1392: checking for lf95
configure:1421: result: no
configure:1392: checking for g95
configure:1421: result: no
configure:1433: checking for Fortran 77 compiler version
configure:1436: --version </dev/null >&5
./configure: line 1437: --version: command not found
configure:1439: $? = 127
configure:1441: -v </dev/null >&5
./configure: line 1442: -v: command not found
configure:1444: $? = 127
configure:1446: -V </dev/null >&5
./configure: line 1447: -V: command not found
configure:1449: $? = 127
configure:1462: checking for Fortran 77 compiler default output
configure:1465: conftest.f >&5
./configure: line 1466: conftest.f: command not found
configure:1468: $? = 127
configure: failed program was:
| program main
|
| end
configure:1507: error: Fortran 77 compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACTIVATE_READLINE=''
BLAS_LIBS=''
BUILD_MPB_DATA=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EIGS_FLAGS_SCM=''
EXEEXT=''
F77=''
FFLAGS=''
FLIBS=''
GEN_CTL_IO=''
HAVE_GUILE_CONFIG=''
INSTALL_DATA=''
INSTALL_MPB_SPLIT=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LAPACK_LIBS=''
LDFLAGS=''
LIBCTL_DIR=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPB_VERSION='1.4.2'
MPICC=''
MPILIBS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SCALAR_TYPE=''
SET_MAKE=''
SHELL='/bin/sh'
SH_JOB=''
ac_ct_CC=''
ac_ct_F77=''
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
gen_ctl_io_ok=''
guile_ok=''
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77


i typed " which gfortran " and the answer was /usr/bin/gfortran
then "./configure --help " and it was F77. so i did this :
./configure F77=gfortran
as u said but again the same problem while installing mpb package appeared.
then i downloaded a " g77-3.2.3.tgz" from this site : http://dir.filewatcher.com/d/OpenBSD...z.5386570.html
i put it and uncompress it in the path :
/usr/local/g77/
although i looked at installation instruction but i didn't any thing to help me install it .
thank u all

Last edited by minaesm; 11-17-2008 at 03:20 AM.
 
Old 11-17-2008, 03:21 AM   #9
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by samrat_rao View Post
I think that you do not need g77. You have gfortran installed in your system. Just type
Code:
which gfortran
to be sure. It should return something like /usr/bin. If not add the GNU compiler (4.3 or above) from your repositories.

Next, when you compile, probably the first step is to type ./configure. Type
Code:
./configure --help
to get a list of options. If you find something like F77 or FC, you can set either or both in this manner:
Code:
./configure F77=gfortran FC=gfortran
and you should be on your way.

The other option is (though i am not sure if it is the right thing to do) that you create a symbolic link 'g77' to gfortran.

Good luck!

hi . actually as i said before i did exactly what u and others said but again the same problem occurs. let me explain exactly what i want to do: i downloaded this software http://ab-initio.mit.edu/wiki/index....Photonic_Bands and i uncompress it in this path as root: usr/local/mpb . i opened terminal window and the error was this :

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = linux-bdk3
uname -m = i686
uname -r = 2.6.25.5-1.1-pae
uname -s = Linux
uname -v = #1 SMP 2008-06-07 01:55:22 +0200

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde3/bin
PATH: /opt/cross/bin
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin
PATH: /usr/lib/qt3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1297: checking for vendor f77 to be used instead of g77
configure:1299: result:
configure:1305: checking for f77
configure:1334: result: no
configure:1305: checking for xlf77
configure:1334: result: no
configure:1305: checking for cf77
configure:1334: result: no
configure:1305: checking for fort77
configure:1334: result: no
configure:1305: checking for f90
configure:1334: result: no
configure:1305: checking for xlf90
configure:1334: result: no
configure:1392: checking for g77
configure:1421: result: no
configure:1392: checking for f77
configure:1421: result: no
configure:1392: checking for xlf
configure:1421: result: no
configure:1392: checking for frt
configure:1421: result: no
configure:1392: checking for pgf77
configure:1421: result: no
configure:1392: checking for fl32
configure:1421: result: no
configure:1392: checking for af77
configure:1421: result: no
configure:1392: checking for fort77
configure:1421: result: no
configure:1392: checking for f90
configure:1421: result: no
configure:1392: checking for xlf90
configure:1421: result: no
configure:1392: checking for pgf90
configure:1421: result: no
configure:1392: checking for epcf90
configure:1421: result: no
configure:1392: checking for f95
configure:1421: result: no
configure:1392: checking for fort
configure:1421: result: no
configure:1392: checking for xlf95
configure:1421: result: no
configure:1392: checking for lf95
configure:1421: result: no
configure:1392: checking for g95
configure:1421: result: no
configure:1433: checking for Fortran 77 compiler version
configure:1436: --version </dev/null >&5
./configure: line 1437: --version: command not found
configure:1439: $? = 127
configure:1441: -v </dev/null >&5
./configure: line 1442: -v: command not found
configure:1444: $? = 127
configure:1446: -V </dev/null >&5
./configure: line 1447: -V: command not found
configure:1449: $? = 127
configure:1462: checking for Fortran 77 compiler default output
configure:1465: conftest.f >&5
./configure: line 1466: conftest.f: command not found
configure:1468: $? = 127
configure: failed program was:
| program main
|
| end
configure:1507: error: Fortran 77 compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACTIVATE_READLINE=''
BLAS_LIBS=''
BUILD_MPB_DATA=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EIGS_FLAGS_SCM=''
EXEEXT=''
F77=''
FFLAGS=''
FLIBS=''
GEN_CTL_IO=''
HAVE_GUILE_CONFIG=''
INSTALL_DATA=''
INSTALL_MPB_SPLIT=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LAPACK_LIBS=''
LDFLAGS=''
LIBCTL_DIR=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPB_VERSION='1.4.2'
MPICC=''
MPILIBS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SCALAR_TYPE=''
SET_MAKE=''
SHELL='/bin/sh'
SH_JOB=''
ac_ct_CC=''
ac_ct_F77=''
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
gen_ctl_io_ok=''
guile_ok=''
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77

i typed " which gfortran " and the answer was /usr/bin/gfortran
then "./configure --help " and it was F77. so i did this :
./configure F77=gfortran
as u said but again the same problem while installing mpb package appeared.
then i downloaded a " g77-3.2.3.tgz" from this site : http://dir.filewatcher.com/d/OpenBSD...z.5386570.html
i put it and uncompress it in the path :
/usr/local/g77/
although i looked at installation instruction but i didn't any thing to help me install it .
thank u all

Last edited by minaesm; 11-17-2008 at 03:24 AM.
 
Old 11-17-2008, 04:04 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Looking at your config.log (see the relevant part below) it looks like you've not really set the environment variable F77:
Code:
...
$ ./configure 
...
...
ac_cv_env_F77_set=
ac_cv_env_F77_value=
...
...
F77=''
...
So please, do the following
Code:
export F77=gfortran
./configure
You don't need to install another fortran compiler if you already have one available on your system (and if it works for your needs). Also, when you look for some piece of software, it's better to try the yast package manager first to see if a pre-built RPM package is available for your system. Looking at the link you've posted, you've downloaded a g77 package containing binaries for OpenBSD and PowerPC architecture!!
 
Old 11-18-2008, 12:38 AM   #11
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
hi and thank U for your help . i opened terminal windows in the directory of the software which i mentioned and i did what u said but an error occured :
linux-bdk3:/usr/local/mpb/mpb-1.4.2 # ./configure export F77=gfortran
configure: WARNING: you should use --build, --host, --target
checking for vendor f77 to be used instead of g77...
checking for f77... gfortran
checking for export-g77... (cached) gfortran
checking for Fortran 77 compiler default output... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for vendor cc to be used instead of gcc...
checking for cc... cc
checking for export-gcc... (cached) cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for export-ranlib... no
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for sqrt in -lm... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries... -L/usr/lib/gcc/i586-suse-linux/4.3 -L/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/lib -L/usr/lib/gcc/i586-suse-linux/4.3/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking for fftw in -ldfftw... no
checking for fftw in -lfftw... no
configure: error: The FFTW libraries could not be found. Make sure FFTW is installed, and that LDFLAGS and CPPFLAGS are set appropriately if necessary.


i wonder if i did it correctly?and if so i do not know any thing about FFTW and how to install it .
 
Old 11-18-2008, 04:30 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You did it right, almost! The export command must be issued prior to launch ./configure, that is you create the compilation environment to which the configure script refers, then launch it. So the first thing is simply
Code:
export F77=gfortran
then in the same terminal (otherwise the F77 variable is lost) you will launch ./configure along with the required options (if any). You can find out the useful environment variables by running
Code:
# ./configure --help
<omitted>
Some influential environment variables:
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CC          C compiler command
  CFLAGS      C compiler flags
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
As you can see the configure script looks for these environment variables, by which you can customize your compilation. For example you may chose your preferred fortran compiler, be it gfortran, ifort (the intel compiler) or pgf95 (the portland compiler) and so on.

That said, now you have to match the requirements for your compilation. You have to look at the developer's site for useful information and read the README and/or INSTALL files inside the source directory. Regarding the FFTW libraries, they are the "Fastest Fourier Transform in the West", a collection of routines to compute the discrete Fourier transform. They are not installed by default on OpenSuSE 11, so you have to open the Yast - Software management and install the fftw and fftw-devel packages. The -devel packages are those that provide the libraries and the header files, necessary to compile a software from source.

After installing ffwt relaunch the configure script and see the next requirement. Indeed, you're trying to install a software which has a lot of dependencies. Check them all with a bit of patience and the trick is done!
 
Old 12-23-2008, 12:59 AM   #13
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
the same problem with another program

hi again everybody and thank you for your really useful helps to me and to my work , they really worked.
now i'm working on another program that is some codes written in f77 and the only thing that is written in its manual as " how to install" is putting it in the right directory (usr/local/the name of the program) and to open the terminal window and type this :
f77 -C -o gme.e gme.f ft2d.f sub.f

when i did it again this problem arised:

f77:command not found

i used what was suggested here for another problem with fortran but they did'nt worked .
what can i do now ? i need your help alot . thank you so much
 
Old 12-23-2008, 06:33 PM   #14
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Well... I did not re-read all the posts above, but to summarize someone suggested to look for gfortran and you verified it was available on your system. So, why to try the f77 command, when you already know you have a working fortran compiler called gfortran?!

Furhermore the f77 command is usually a symbolic link to an actual compiler, be it g77 or gfortran. You can create the link and let it point to the gfortran executable, that is as root do:
Code:
cd /usr/bin
ln -s /usr/bin/gfortran f77
then you can issue the f77 command but take in mind you're actually using gfortran.

Moreover, different flavors of fortran compilers (GNU fortran, G95, Intel Fortran, Portland Fortran) may have their own compiler options, but most of them are the same since they are part of a standard. So you can safely run the command
Code:
gfortran -C -o gme.e gme.f ft2d.f sub.f
without any problem. Hopefully!
 
Old 12-24-2008, 02:49 AM   #15
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
hi

hi and thanks for your help . actually i'm working on another pc so at first i typed " which gfortran " to be sure whether it has it or not. i'm not sure that i did the right thing but when i typed gfortran instead of f77 i didnt get f77 error and it was good cos i went one step forward . tnx for that .actually i did this :

khd@linux-4av4:~> which gfortran
/usr/bin/gfortran
khd@linux-4av4:~> cd /usr/bin
khd@linux-4av4:/usr/bin> ln -s /usr/bin/gfortran g77
ln: creating symbolic link `g77': Permission denied

khd@linux-4av4:/usr/local/GME> gfortran -C -o gme.e gme.f ft2d.f sub.f
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannotopen output file gme.e: Permission denied
collect2: ld returned 1 exit status


i'm here waiting for your helps , thank u so much .
 
  


Reply

Tags
fortran


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
Grub problems after installing second hard disk and SuSE11.0 HellesAngel SUSE / openSUSE 46 09-15-2008 03:13 PM
Suse11 can not see windows systems in workgroup linuxlover.chaitanya SUSE / openSUSE 3 08-25-2008 01:16 AM
Not able to update Suse11. linuxlover.chaitanya SUSE / openSUSE 8 08-21-2008 12:05 AM
Open Suse11 RC wifi/ndiswrapper problem slacard SUSE / openSUSE 2 06-13-2008 06:35 PM
Dynamically set array length in Fortran77? halfpower Programming 2 12-15-2005 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 AM.

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