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

You are not logged in.

#1 2018-02-13 12:31:28

DURAI04
Member
Registered: 2016-04-15
Posts: 43

Source code installation of Code_Aster

Hi,

  How to install a code aster using source Code? if any procure please share with me.


How to rectify this error?

udvavisk@FEA:~/dev/codeaster/devtools/bin$ ./install_env
INFO     checking repository /home/udvavisk/dev/codeaster/data
INFO     checking repository /home/udvavisk/dev/codeaster/src
INFO     settings added into /home/udvavisk/dev/codeaster/src/.hg/hgrc
INFO     checking repository /home/udvavisk/dev/codeaster/validation
INFO     checking repository /home/udvavisk/dev/codeaster/devtools
INFO     settings added into /home/udvavisk/dev/codeaster/devtools/.hg/hgrc
WARNING  You should add this line into your ~/.bashrc environment:
   export PATH=$PATH:/home/udvavisk/dev/codeaster/devtools/bin
WARNING  You should add this line into your ~/.bashrc environment:
   export PYTHONPATH=$PYTHONPATH:/home/udvavisk/dev/codeaster/devtools/lib
Do you want to automatically configure and build Code_Aster (y/n) ?  y
INFO     configure and build Code_Aster by running:
. $HOME/dev/codeaster/devtools/etc/env_unstable.sh
cd /home/udvavisk/dev/codeaster/src
./waf configure
./waf install
checking environment... loading /home/udvavisk/dev/codeaster/devtools/etc/env_unstable.sh
Setting top to                           : /home/udvavisk/dev/codeaster/src
Setting out to                           : /home/udvavisk/dev/codeaster/src/build
Setting prefix to                        : /home/udvavisk/dev/codeaster/install/std
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for 'g++' (C++ compiler)        : /usr/bin/g++
Checking for 'gfortran' (Fortran compiler) : /usr/bin/gfortran
Checking for C compiler version          : gcc 5.4.0
Checking for Fortran compiler version    : gfortran 5.4.0
fortran link verbose flag                : -v
Checking for OpenMP flag -fopenmp        : yes
Getting fortran runtime link flags       : ok (-Lrelro -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lgfortran -lm -lquadmath -lm)
Checking for library pthread             : yes
Checking for library dl                  : yes
Checking for library util                : yes
Checking for program 'python'            : /usr/bin/python
Checking for python version              : (2, 7, 12, 'final', 0)
python-config                            : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration            : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
Testing pyext configuration              : yes
Checking for numpy                       : yes
Checking for numpy version               : 1.11.0
Checking for numpy include               : ['/usr/lib/python2.7/dist-packages/numpy/core/include']
Getting platform                         : LINUX64
Checking for library pthread             : yes
Checking for library m                   : yes
Checking for number of cores             : 4
Checking for python module 'numpy'       : 1.11.0
Checking for program 'ldd'               : /usr/bin/ldd
Checking library blas                    : yes (blas)
Checking library lapack                  : yes (lapack)
Detected math libraries                  : ['pthread', 'm', 'blas', 'lapack']
Setting libm after files                 : yes ("-lm" removed from LINKFLAGS_CLIB)
Checking for a program using blas/lapack : yes
Checking for a program using omp thread  : yes (on 4 threads)
Checking for library hdf5                : not found
Checking for library med                 : not found
Checking for library metis               : not found
Checking for smumps_struc.h              : no
Checking for header scotch.h             : no
Checking for library petsc               : not found
Reading build preferences from ~/.hgrc   : {}
Compiling a simple fortran app           : yes
Detecting whether we need a dummy main   : yes main
Checking for fortran option              : yes (-fdefault-double-8 -fdefault-integer-8 -fdefault-real-8)
Checking for fortran option              : yes (-Wimplicit-interface)
Checking for fortran option              : yes (-Wintrinsic-shadow)
Checking for fortran option              : yes (-fno-aggressive-loop-optimizations)
Checking for fortran option              : yes (-ffree-line-length-none)
Setting fortran compiler flags           : ['-fPIC', '-fdefault-double-8', '-fdefault-integer-8', '-fdefault-real-8', '-Wimplicit-interface', '-Wintrinsic-shadow', '-fno-aggressive-loop-optimizations', '-ffree-line-length-none']
Getting fortran mangling scheme          : ok ('_', '', 'lower-case')
Checking size of integer4                : 4
Checking the matching C type             : int
Checking size of default integer         : 8
Checking the matching C type             : long
Checking size of logical                 : 1
Checking size of simple precision real   : 4
Checking the matching C type             : float
Checking size of double precision real   : 8
Checking the matching C type             : double
Checking size of double complex          : 16
Setting type for fortran string length   : unsigned int
Setting size of blas/lapack integers     : 4
Checking fpp stringify using #           : no
Checking fpp stringify using ""          : yes
Checking compilation with long lines     : yes
Check for backtrace feature              : yes
Check for tracebackqq feature            : no
Checking for compiler flags -std=c++11   : yes
Checking for library stdc++              : yes
Getting C compiler flags                 : ['-fPIC']
Checking for library dl                  : yes
Getting code_aster version               : warning: failed to parse the definition of revset alias "new": at 36: not a prefix: )
warning: failed to parse the definition of revset alias "reference": at 42: not a prefix: )
[(14, 1, 6), 'e7e04543dfc7f23a2f1f8d7f7c87493b7e8a5b0d', 'default', '08/02/2018', 'default', 1]
Traceback (most recent call last):
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 114, in waf_entry_point
    run_commands()
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 175, in run_commands
    ctx=run_command(cmd_name)
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 166, in run_command
    ctx.execute()
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Configure.py", line 87, in execute
    super(ConfigurationContext,self).execute()
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 93, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/udvavisk/dev/codeaster/src/wscript", line 217, in configure
    self.recurse('mfront')
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/udvavisk/dev/codeaster/src/mfront/wscript", line 44, in configure
    self.check_mfront()
  File "/home/udvavisk/dev/codeaster/src/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Configure.py", line 184, in fun
    return f(*k,**kw)
  File "/home/udvavisk/dev/codeaster/src/mfront/wscript", line 122, in check_mfront
    os.environ['TFELHOME'] = tfelhome[0]
IndexError: list index out of range
checking environment... loading /home/udvavisk/dev/codeaster/devtools/etc/env_unstable.sh
The project was not configured: run "waf configure" first!

Offline

#2 2018-02-14 16:52:38

souren
Member
Registered: 2016-10-26
Posts: 47

Re: Source code installation of Code_Aster

Hey DURAI04

I actually had the same problem.
If you are trying to install the code following the instruction on 'bitbucket.org/code_aster/codeaster-src/wiki/Tutorial' as I did here is the remedy to your problem.
After going through

mkdir -p $HOME/dev/codeaster && cd $HOME/dev/codeaster
hg clone https://bitbucket.org/code_aster/codeaster-devtools devtools
hg clone https://bitbucket.org/code_aster/codeaster-src src

skip the step: 'configuration of the repository' and jump on 'configuration and first built of code aster' after running:

cd $HOME/dev/codeaster/src
source $ASTER_ROOT/$ASTER_VERSION/share/aster/profile_mfront.sh
./waf configure --use-config-dir=$ASTER_ROOT/$ASTER_VERSION/share/aster --use-config=aster_full_config --prefix=../install/std
./waf install -p

go back to 'configuration of the repository' and run the command given there. This is what I did and worked well. Why? I have no idea to be honest!
Also don't forget to change ASTER_ROOT=/opt/aster in the commands according to your own path.

Don't forget to add the following lines to your ~/.bashrc file

export PATH=$PATH:$HOME/dev/codeaster/devtools/bin
export PYTHONPATH=$PYTHONPATH:$HOME/dev/codeaster/devtools/lib
export PATH=$PATH:/opt/aster/bin

I hope that would help,
Good luck

Offline

#3 2018-02-15 12:45:50

DURAI04
Member
Registered: 2016-04-15
Posts: 43

Re: Source code installation of Code_Aster

Hi thanks for your reply. How to open the ASTK using source background. Now the ASTK was integrated with salome_Meca. I need to run without integration.

Offline

Board footer