usr/bin/ld: cannot find -lgfortran 是因为gcc换成了7,然后系统没装gcc 7的lib fortran 装一下就好了 sudo apt-get install gfortran-7