fortran - Where can I get the files to install f2c on redhat linux? -


I am looking for an RPM or simple installation instructions so that f2c is used to work on my redhat linux os. I am new to Linux and it is difficult to find something like this on Google.

(target is to use F2c to convert a simple Fortran 77 file, then compile it)

Do anyone have any suggestions?

Receiving source with Rsync (recommended):

  $ rsync -vz netlib.org 
"post-text" itemprop = "text ">
  1. :: Obtain source via FTP:

      $ mkdir -p f2c / src $ cd f2c / src $ ftp ftp .netlib.org Ftp & gt; Cd fcc ftp & gt; Quick FTP & gt; Mget *  
  2. To create sources, do the f2c / src directory:

      $ make -f makefile.u To install binary, copy it to a directory in your $ PATH:   $ mkdir -p / usr / local / bin / usr / local / man / man1 $ cp f2c / You will also need this to compile FORTRAN programs:  
  3. / P>

      $ mkdir libf2c $ cd libf2c $ unzip ../libf2c.zip $ make -f makefile.u $ make -f makefile.u install LIBDIR = / Usr / local / lib  

    libf2c The combination of libraries is that you can set up these libraries separately and then link to "-lF77-lI77". Assume that f2c / src is available from the current directory, saves and does the following (if you already installed libf2c above is not necessary):

      $ sh libf77 $ Sh libi77 $ cd libF77 $ make CFLAG = - I / F2C / SRC $ $ LIBDIR = / usr / local / lib $ cd .. / libI77 $ CFLAG = -i. / F2C / SRAC LIBDIR = / usr / local / lib  
  4. This is a good view to use with F2C. Save it somewhere else:

      $ cp fc / usr / local / bin / f77 $ chmod 755 / usr / local / bin / f77  

    I collision To avoid it was changed to F77, because FC has a built-in bash. The FC script expects libf2c instead of libF77 and libI77, so you have to edit it and replace "-lf2c" with "-lF77-lI77" if you have installed these libraries instead of the above libf2c. Finally, to compile your program, you can do this:

      $ f77 source.f -o binary  

besides, and some other stuff that can be useful.

Readme ( low F2C / SCR / redeme ) and manpage ( man f2c ) for more information about F2C. For more information about FC script on comments at the beginning of the file.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -