在Ubuntu下查找Fortran库文件,可参考以下方法:
/usr/lib和/usr/local/lib目录下,可通过ls命令查看,如ls /usr/lib | grep "libexample.so"。lib子目录中,如/usr/local/gfortran/lib。find命令:sudo find / -name "libexample.so" 2>/dev/null,可在整个文件系统查找。locate命令:先sudo updatedb更新数据库,再locate libexample.so查找。dpkg命令:若通过包管理器安装,用dpkg -L libexample-dev | grep .so查看。ldconfig命令:ldconfig -p | grep libexample,可查看已安装库的路径。