gfortran not found
时间: 2023-08-01 15:11:15 浏览: 120
gfortran-windows
It seems like you are having trouble finding the gfortran compiler on your system.
First, make sure that gfortran is installed on your system. You can check this by running the following command in your terminal:
```
gfortran --version
```
If gfortran is not installed, you can install it using your system's package manager. For example, on Ubuntu, you can run:
```
sudo apt-get install gfortran
```
If gfortran is installed but not found by your system, you may need to add the directory containing the gfortran executable to your PATH environment variable. You can do this by adding the following line to your shell configuration file (e.g. ~/.bashrc for bash):
```
export PATH="/path/to/gfortran/directory:$PATH"
```
Make sure to replace "/path/to/gfortran/directory" with the actual directory containing the gfortran executable. After saving your configuration file, run the following command in your terminal to apply the changes:
```
source ~/.bashrc
```
I hope this helps! Let me know if you have any further questions.
阅读全文