ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/linux/instal_asterv15plus.bash
Revision: 1146
Committed: Tue May 7 14:28:07 2024 UTC (15 months, 3 weeks ago) by francois
File size: 2711 byte(s)
Log Message:
Mise a jour de l'aide MAGiC avec la version code aster 15.6

File Contents

# User Rev Content
1 francois 1146 #!/bin/bash
2     echo "**********************************************************"
3     echo "* MAGiC *"
4     echo "* *"
5     echo "* ERICCA *"
6     echo "* *"
7     echo "* Departement de genie mecanique - UQTR *"
8     echo "* *"
9     echo "* Installation des modules Code aster "$1" *"
10     echo "* *"
11     echo "**********************************************************"
12     echo ""
13     echo $(date)
14     versionos=$(lsb_release -sr)
15     echo ""
16     echo "Code Aster installation"
17     if [ $1 == 15.6 ];
18     then
19     version=15.6
20     else
21     echo "Version "$1" non supportée"
22     exit
23     fi
24     echo "version" $version
25     echo "Checking / Installing dependencies"
26    
27     tabdep=(build-essential libseccomp-dev pkg-config squashfs-tools cryptsetup)
28    
29     echo "Dependance a verifier :"${#tabdep[*]}
30     for i in ${!tabdep[*]};
31     do
32     nomdep=${tabdep[i]}
33     dpkg -s $nomdep >> /dev/null 2>&1
34     if [ $? == 1 ];
35     then
36     echo $nomdep...............FAIL
37     sudo apt-get -y install $nomdep
38     else
39     echo $nomdep...............ok
40     fi
41     done
42     echo 'export GOPATH=${HOME}/go' >> ~/.bashrc
43     echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc
44     source ~/.bashrc
45     cd $HOME
46     wget http://ericca.uqtr.ca/codeaster/go1.15.5.linux-amd64.tar.gz
47     tar -C ./ -xzf go1.15.5.linux-amd64.tar.gz
48     go version
49    
50     mkdir $HOME/dev
51     cd $HOME/dev
52     git clone https://github.com/sylabs/singularity.git && cd singularity
53     git checkout v3.7.0
54     ./mconfig
55     cd ./builddir
56     make
57     sudo make install
58    
59    
60    
61     __DIR=`pwd`
62     if [ $version == 15.6 ];
63     then
64     wget http://ericca.uqtr.ca/codeaster/salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif
65     mkdir $HOME/containers
66     mv salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif $home/containers
67     cd $HOME/containers
68     singularity run --app install salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif
69     fi
70    
71    
72     cd $__DIR
73     echo ""
74     echo $(date)
75     echo ""
76     echo "**********************************************************"
77     echo "* MAGiC *"
78     echo "* *"
79     echo "* ERICCA *"
80     echo "* *"
81     echo "* Departement de genie mecanique - UQTR *"
82     echo "* *"
83     echo "* Installation du module Code aster *"
84     echo "* *"
85     echo "**********************************************************"
86    
87    

Properties

Name Value
svn:executable *