Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
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
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
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
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
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
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
`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
That works, thanks!
Offline
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
see https: //gitlab.com/codeaster-opensource-documentation/opensource-installation-development
Offline