松吉様 ならびに、みなさま
小南です。
VirtualBox ver5.2.30上に
Linux/ubuntu 18.04.03LTS(日本語Remix版ではありません)を日本語環境でインストールして、
eDF社純正のsalome_meca-2018.0.1-LGPL-1.tgzをインストールしようとしています。
ここまでの操作内容と現状の途中経過を備忘として書き込んでおきます。
結局のところ、OpenGL周りの設定が上手くいっていないようで、まだSalomeMecaを動かせていません。
(長文を失礼します。)
Linux/ubuntuのアーカイブマネージャーが2バイト文字には対応していないらしく、デスクトップ上での解凍に失敗する。
→homeディレクトリで解凍する。
$ ./salome_meca-2018.0.1-LGPL-1.run
でインストーラを実行する。
→インストールに失敗する(python3はインストールされているがpython2がインストールされていないため)
$ sudo apt install python でpython2
$ salome_meca-2018.0.1-LGPL-1.run
→インストールに成功
$ cd ~/salome_meca/appli_V2018.0.1_public
$ ./salome
→以下のエラー(抜粋)
================
runSalome running on dexcs-VirtualBox
Error when trying to access active network connections.
Traceback (most recent call last):
File "/home/dexcs/salome_meca/appli_V2018.0.1_public/bin/salome/PortManager.py", line 111, in __isNetworkConnectionActiveOnPort
p = Popen(cmd, stdout=PIPE, stderr=STDOUT)
File "/home/dexcs/salome_meca/V2018.0.1_public/prerequisites/Python-2710/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/home/dexcs/salome_meca/V2018.0.1_public/prerequisites/Python-2710/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Searching for a free port for naming service: 2812 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +SALOME_Session_Server: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/dexcs/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 633, in useSalome
clt = startSalome(args, modules_list, modules_root_dir)
File "/home/dexcs/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 578, in startSalome
session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
File "/home/dexcs/salome_meca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/orbmodule.py", line 174, in waitNSPID
raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 5138 for /Kernel/Session not found
--- Error during Salome launch ---
===============
“Error when trying to access active network connections.”の対策のため、以下のコマンドでnet-toolsをインストールしました。
$ sudo apt-get update
$ sudo apt-get install net-tools
$ sudo apt autoremove
ふたたび
$ cd ~/salome_meca/appli_V2018.0.1_public
$ ./salome
===================
runSalome running on dexcs-VirtualBox
Searching for a free port for naming service: 2813 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +SALOME_Session_Server: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/dexcs/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 633, in useSalome
clt = startSalome(args, modules_list, modules_root_dir)
File "/home/dexcs/salome_meca/appli_V2018.0.1_public/bin/salome/runSalome.py", line 578, in startSalome
session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)
File "/home/dexcs/salome_meca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/orbmodule.py", line 174, in waitNSPID
raise RuntimeError, "Process %d for %s not found" % (thePID,theName)
RuntimeError: Process 6160 for /Kernel/Session not found
--- Error during Salome launch ---
=====================
下記のeDF社の掲示板に、net-toolsとlibnlopt0をインストールすると治るかもしれないという記載があったので、
$ sudo apt-get update
$ sudo apt-get install libnlopt0
としましたけど、エラーの内容は変わりません。
掲示板のコメントから、どうやらQT5がインストールされてないか、インストールされているならリンク先をポンピングしたら良いらしいです。
管理者のAsterO'dactyleの書き込みでは
=============
Hello,
For Ubuntu18.04, you have to install:
libQt5OpenGL
libQt5Concurrent
libNLopt0
To use shaper:
libQT5MultimediaWidgets
==============
したがって、まず、QT5のインストールをしました。
$ sudo apt-get update
$ sudo apt install qtbase5-dev qttools5-dev-tools qt5-default
libQt5OpenGL
libQt5Concurrent
libNLopt0
は、sudo apt-get install コマンドではパッケージが見つからないため、インストーできませんでした。
eDFのページでSalomeMecaの操作/コンパイルに必要な環境として、gcc,g++,gfortranが載っていたので、単なる思い付きでインストールしました。
$ sudo apt-get install g++
$ sudo apt-get install gfortran
gccは初めからインストールされていました。
libQt5OpenGL、libQt5Concurrent、libNLopt0
のパッケージはインストールできませんでした。
ふたたび
$ cd ~/salome_meca/appli_V2018.0.1_public
$ ./salome
===================
runSalome running on dexcs-VirtualBox
Searching for a free port for naming service: 2816 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service +++++++Gtk-Message: 15:31:29.292: Failed to load module "canberra-gtk-module"
++++MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Warning: this type (SALOME_MED/MEDCouplingFieldDoubleCorbaInterface,objref) already exists, it will be ignored.
++ found in 6.5 seconds
Start SALOME, elapsed time : 6.7 seconds
===================
エラーメッセージが変わって、gktが原因のようだからgktをインストールしました。
$ sudo apt install libgtk-3-dev
$ ./salome
===================
同じ
===================
canberra-gtk-module をインストールしました。
$ sudo apt install canberra-gtk*
$ ./salome
===================
runSalome running on dexcs-VirtualBox
Searching for a free port for naming service: 2824 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Kernel/Session in Naming Service ++MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
+Warning: this type (SALOME_MED/MEDCouplingFieldDoubleCorbaInterface,objref) already exists, it will be ignored.
found in 1.5 seconds
Start SALOME, elapsed time : 1.6 seconds
===================
Mesa は OpenGL 互換の 3D グラフィックライブラリで、
$ sudo apt-get install mesa-utils
というコマンドでmesaのユーティリティをインストールして
mesaのVersionを調べると19.2.8
swrastはソフトウェアレンダラーとのことで、
どうやら、ソフト:swrastとハード:mesa
の間の連携がうまくいっていないようです。
ここで、さっきの
管理者のAsterO'dactyleによる書き込み
=============
Hello,
For Ubuntu18.04, you have to install:
libQt5OpenGL
libQt5Concurrent
libNLopt0
To use shaper:
libQT5MultimediaWidgets
==============
が気になるのですが、sudo apt-get install コマンドではパッケージが見つかりません。
以上