deepin15.9.3Desktop上安装comsol5.1
Tofloor
poster avatar
fuyao
deepin
2019-04-28 18:00
Author
本帖最后由 fuyao 于 2019-8-2 12:15 编辑

0. 安装依赖:sudo apt install libwebkitgtk-1.0-0

1. 将文件放置于code目录,并在code目录下新建comsol目录
2. 在code目录打开终端,挂载iso文件:sudo mount -t iso9660 -o loop COMSOL_5.1_Win_DVD.iso ./comsol/
3. cd comsol
4. ./setup 安装选择自己的home目录,完成安装
5. 在~/.bashrc中设置环境变量:export PATH=${HOME}/COMSOL51/binPATH , 并使之在当前终端生效:source ~/.bashrc
6. 在终端直接运行 ./comsol ,出现下面错误:
Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp

(comsollauncher:12043): Gtk-WARNING **: 10:07:44.624: Unable to locate theme engine in module_path: "adwaita",

(comsollauncher:12043): Gtk-WARNING **: 10:07:44.624: Unable to locate theme engine in module_path: "adwaita",
failed to create drawable
FL3D: error at line 671 in file fl3dglcontext_x11common.c:
   Failed to create PBuffer.
failed to create drawable
FL3D: error at line 671 in file fl3dglcontext_x11common.c:
   Failed to create PBuffer.
FL3D: error at line 235 in file fl3dglcontext_x11common.c:
   assert: x11Handle

7. 经查,是3d渲染的问题,启动命令改为:comsol -3drend sw ,可以正常启动了,以后启动可以直接用comsol就行,不用再加后面的参数。

启动后可以打开自带的demo测试一下:


Reply Favorite View the author
All Replies

No replies yet