在https://doc.freefem.org/introduction/download.html下载Ubuntu对应的安装包
sudo apt-get install libgsl-dev libhdf5-dev liblapack-dev libopenmpi-dev freeglut3-dev\ sudo dpkg -i FreeFEM_VERSION_Ubuntu_withPETSc_amd64.deb
安装完运行结果
$ FreeFem++
FreeFem++ - version 4.6 (Thu Apr 2 15:47:38 CEST 2020 - git v4.6) 64bits
License: LGPL 3+ (https://www.gnu.org/licenses/lgpl-3.0.en.html)
Usage: FreeFem++ [FreeFEM arguments] filename [script arguments]
FreeFEM arguments:
-f: [filename] script file name
-v: [verbosity] level of FreeFEM output (0 - 1000000)
-nw: no graphics
-wg: with graphics
-ne: no edp script output
-cd: change directory to script directory
-cdtmp: change directory to /tmp
-jc: just compile
-ns: same as -ne
-nowait: do not wait graphics at the end
-nc: without console (MS Windows only)
-log: with console (MS Windows only)
-wait: wait graphics at the end
-fglut: [filename] redirect graphics in file
-glut: [command] use custom glut
-gff: [command] use custom glut (with space quoting)
-check_plugin [filename] just try if the plugin is correct
-?: show help
with default ffglut: ffglut
FreeFEM website: https://freefem.org/
FreeFEM documentation: https://doc.freefem.org/
FreeFEM forum: https://community.freefem.org/
FreeFEM modules: https://modules.freefem.org/
Please cite us in your research papers and add a link to FreeFEM on your personnal website
@article{FreeFEM,
AUTHOR = {Hecht, F.},
TITLE = {New development in FreeFem++},
JOURNAL = {J. Numer. Math.},
FJOURNAL = {Journal of Numerical Mathematics},
VOLUME = {20}, YEAR = {2012},
NUMBER = {3-4}, PAGES = {251--265},
ISSN = {1570-2820},
MRCLASS = {65Y15},
MRNUMBER = {3043640},
URL = {https://freefem.org/}
}
安装过程中的报错处理
$ FreeFem++ FreeFem++: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory
解决方法
sudo apt-get install libgfortran4
$ FreeFem++ FreeFem++: error while loading shared libraries: libhdf5_serial.so.100: cannot open shared object file: No such file or directory
解决方法
sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.103 /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.100
作用:link llibhdf5_serial.so.103 to libhdf5_serial.so.100
参考:
https://doc.freefem.org/introduction/installation.html
https://github.com/FreeFem/FreeFem-sources/issues/104
https://blog.csdn.net/weixin_39417324/article/details/111873678



