我正在尝试安装 lars 包。我的操作系统是 Ubuntu 11.04 Natty 64 位。在构建时出现以下错误:
* installing *source* package âlarsâ ...
** libs
gfortran -fpic -O3 -pipe -g -c delcol.f -o delcol.o
gcc -shared -o lars.so delcol.o -lgfortran -lm -L/usr/lib64/R/lib -lR
/usr/bin/ld: cannot find -lgfortran
collect2: ld returned 1 exit status
make: *** [lars.so] Error 1
ERROR: compilation failed for package âlarsâ
我已经安装了gfortran,并且运行 gfortran --version
命令可以看到:
gfortran --version GNU Fortran (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
sudo ldconfig -v
命令运行时出现了以下错误:
/sbin/ldconfig.real: Cannot stat /usr/lib/libgfortran.so: No such file or directory
我已经尝试过卸载并重新安装gfortran,但问题仍未解决。请问我需要怎么做才能解决这个问题?