Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2021-12-19 11:29:07

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 464

Install code_aster from 15.4 version

To install a development version of code_aster.

You need to download singularity container containing all pre-requisites. Install it:
https://code-aster.org/V2/spip.php?article303

NB: now it's the same container to run salome_meca (graphic mode with salome) and to develop code_aster in unstable version

Pull repositories (src and devtools) from sourceforge.

Launch container in shell mode:
salome_meca-lgpl-2021.0.0-1-20210811-scibian-9 --shell

Now you are in a complete environment with all pre-requisites to compile aster:

cd dev/codeaster/src
source dev/codeaster/devtools/env/env_unstable.sh
./waf configure
./waf install


Code_Asterの開発者

Offline

#2 2021-12-20 23:22:57

sb1966
Member
From: INDIA
Registered: 2015-03-16
Posts: 263

Re: Install code_aster from 15.4 version

Hi,
I think, in order to download the mentioned container, the correct address is
htt ps://www.code-aster.org/FICHIERS/singularity/  (please remove the space in the beginning)

The given link in post #1 directs to version 2021.0.0-0 in the regular download page.

Best regards

Sukumar

Offline

#3 2021-12-27 16:53:01

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 4,049

Re: Install code_aster from 15.4 version

hello Aster O'dactyle

following your instruction i did with the following result

Singularity> cd dev/codeaster/src
Singularity> source dev/codeaster/devtools/env/env_unstable.sh
bash: dev/codeaster/devtools/env/env_unstable.sh: Aucun fichier ou dossier de ce type
Singularity> 

what is wrong,
nevertheless  in tried

./waf configure
./waf install

without any errors

now how to add this version in ASTK,

thanks
and bonnes fêtes !!

jean pierre aubry


consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline

#4 2022-01-03 11:23:26

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,183

Re: Install code_aster from 15.4 version

Pull repositories (src and devtools) from sourceforge.

but sourcing env_unstable.sh is not required (it just adds paths to devtools/bin tools).


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#5 2022-01-03 14:16:56

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 4,049

Re: Install code_aster from 15.4 version

hello mathieu

thanks
and a happy new year

jean pierre aubry


consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline

#6 2022-01-16 16:48:27

chmw
Member
Registered: 2022-01-16
Posts: 3

Re: Install code_aster from 15.4 version

Hello AsterO'dactyle,

how does one use gdb for debugging the self-compiled development version inside Singularity?
When i try to run any program that begins with python glue (or just even python3) with gdb inside a singularity shell, i get the following error message

Singularity> gdb python3

Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Current thread 0x00007fb88b8aa600 (most recent call first):
Aborted (core dumped)

This can be fixed by installing python3-dbg.
As the singularity images are read-only and only have internal EDF servers as apt sources, i created a writable singularity sandbox from the .sif file

sudo singularity build --sandbox sandbox.img salome_meca-lgpl-2021.0.0-1-20210811-scibian-9.sif  
sudo singularity shell --writable sandbox.img    

and added the standard Debian repositories to the /etc/apt/sources.list.
Sadly, installing python3-dbg this way creates some kind of dependency hell. Forcing the install lead to me being able to launch Python programs from gdb though.

Is python3-dbg missing from the singularity image a kind of bug, or is there a working way for using gdb to debug the most recent sources?

Thanks,
chmw

Offline

#7 2022-01-18 08:55:38

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,183

Re: Install code_aster from 15.4 version

`unset PYTHONHOME` should be sufficient to run gdb


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#8 2022-01-19 08:27:12

chmw
Member
Registered: 2022-01-16
Posts: 3

Re: Install code_aster from 15.4 version

That works, thanks!

Offline

#9 2023-05-08 15:04:49

Cloud10
Member
Registered: 2016-04-01
Posts: 6

Re: Install code_aster from 15.4 version

Hi,
I have a question about the installation of code aster development. I followed the instructions above and CA basically works. Now I am trying to learn a bit more about the new python interface and use it to couple CA with other software.
I have also built a sandbox in order to play around, but, as the container is Debian 9, some compoents are a bit outdated and/or incompatible with the software I need to compile for coupling. I am wondering if it is possible and feasible to compile CA, starting from the repository above, without the container or is the environment required? Are there instructions for this somewhere?
Otherwise, is it possible to somehow update the container?
Thank you
Claudio

Last edited by Cloud10 (2023-05-08 15:05:46)

Offline

#10 2023-05-09 08:20:39

nicolas_p
Member
Registered: 2020-04-14
Posts: 96

Re: Install code_aster from 15.4 version

see https: //gitlab.com/codeaster-opensource-documentation/opensource-installation-development

Offline