Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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?
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?
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
How about actually TELLING US WHAT THE ERROR WAS, if you'd like help.
Quote:
Originally Posted by TB0ne
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: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.
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
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: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.
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
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!!
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 .
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!
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.