Install Code aster 14.4 to xUbuntu 20.04 LTS

After installing Salome meca, Code Aster 14.4.0 was installed.

The source code was downloaded.

Then packages were added

$sudo apt-get install  gfortran g++ python-dev python-numpy liblapack-dev libblas-dev tcl tk zlib1g-dev bison flex checkinstall openmpi-bin libx11-dev cmake grace gettext swig

In case of xUbuntu 20.04, python3.8 is standard and it is cause of a trouble at building.(refere to this). Therefore we installed python3.6 and related packages as follows

$sudo apt-get install python3.6 python3.6-dev libboost1.67-all-dev

To get Numpy, visit to here and installed python-numpy_1.16.2-1ubuntu1_amd64.deb.

Then symbolic links was modified that  python3 indicated python3.6.

$cd /usr/bin
$sudo rm python3
$sudo ln -s python3.6 python3
$sudo rm python3-config
$sudo ln -s python3.6-config python3-config

Unpack the source code and move to the folder. Then start building.

$python3 setup.py install --prefix=/opt/aster

In my case, the build finished without any trouble.

After building, python3 was returned to python3.8.

$cd /usr/bin
$sudo rm python3
$sudo ln-s python3.8 python3
$sudo rm python3-config
$sudo ln -s python3.8-config python3-config

For confirmation,  forma01a was conducted.

$/opt/aster/bin/as_run --vers=14.4 --test forma01a

The result was next.

I wish for it to help you.




コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です