5

I need to install f2c in Linux. Given the steps;

  1. Download installation script : Download install_f2c_linux.csh.

  2. Run installation script

    # chmod +x install_f2c_linux.csh
    # ./install_f2c_linux.csh
    

I run the second step in the root and user directory. But, it says

curl: Command not found.
tar: f2c.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
gunzip: No match.
f2c: No such file or directory.

How to solve the problem?

Melebius
  • 11,750

2 Answers2

7

FORTRAN 77 to C/C++ translator is already packaged in Ubuntu repositories as f2c package.

You can install it with:

sudo add-apt-repository universe
sudo apt-get update 
sudo apt-get install f2c

Note: develop new good habit - before trying to compile something manually visit http://packages.ubuntu.com and search for needed application here.

N0rbert
  • 103,263
4

You have to install curl:

sudo apt install curl

But it is better to use the Ubuntu rep and install with:

sudo apt-get install f2c

as N0rbert posted.

N0rbert
  • 103,263
abu_bua
  • 11,313