ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/linux/instal_asterv15plus.bash
Revision: 1169
Committed: Fri Jul 26 15:46:22 2024 UTC (13 months ago) by francois
File size: 2793 byte(s)
Log Message:
bug script installation code aster > 15

File Contents

# Content
1 #!/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 git)
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 export GOPATH=${HOME}/go
43 export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin
44 echo 'export GOPATH=${HOME}/go' >> ~/.bashrc
45 echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc
46 source ~/.bashrc
47 cd $HOME
48 wget http://ericca.uqtr.ca/codeaster/go1.15.5.linux-amd64.tar.gz
49 tar -C ./ -xzf go1.15.5.linux-amd64.tar.gz
50 go version
51
52 mkdir $HOME/dev
53 cd $HOME/dev
54 git clone https://github.com/sylabs/singularity.git && cd singularity
55 git checkout v3.7.0
56 ./mconfig
57 cd ./builddir
58 make
59 sudo make install
60
61
62
63 __DIR=`pwd`
64 if [ $version == 15.6 ];
65 then
66 wget http://ericca.uqtr.ca/codeaster/salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif
67 mkdir $HOME/containers
68 mv salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif $HOME/containers
69 cd $HOME/containers
70 singularity run --app install salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif
71 fi
72
73
74 cd $__DIR
75 echo ""
76 echo $(date)
77 echo ""
78 echo "**********************************************************"
79 echo "* MAGiC *"
80 echo "* *"
81 echo "* ERICCA *"
82 echo "* *"
83 echo "* Departement de genie mecanique - UQTR *"
84 echo "* *"
85 echo "* Installation du module Code aster *"
86 echo "* *"
87 echo "**********************************************************"
88
89

Properties

Name Value
svn:executable *