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

You are not logged in.

#26 2020-08-05 23:25:27

sb1966
Member
Registered: 2015-03-16
Posts: 211

Re: Installation on Ubuntu 20.04

Hi,
From the output you have shown viz.

salome_meca post-installation ...
./create_appli.sh: line 263: python: command not found
./create_appli.sh: line 287: ./salome_post_install.py: No such file or directory

it appears that there is still python name error.
1. Please make sure that you followed the step no 4 and 6 described in my post.
2. Following all the steps serially is important.
3. Only this much I can say now, based on your report.

Hope this helps.
Please let us know here, whether this works or not.

Regards.

Sukumar

Offline

#27 2020-08-29 10:07:07

Hems
Member
Registered: 2018-06-07
Posts: 10

Re: Installation on Ubuntu 20.04

Hi Sukumar,

Thanks a lot. I followed the procedure again as per your suggestion. It worked!

But I have same message as Roger has about the Europlexus module. I decided to ignore it for now.


Thanks and regards,
Hems

Offline

#28 2020-09-18 19:03:15

amvali
Member
Registered: 2020-09-17
Posts: 6

Re: Installation on Ubuntu 20.04

Hi there,

I followed instruction and install Salome-Meca, but still having problem with installation. Here what I got after installation:

amvali@amvali-VirtualBox:~$ ./salome_meca-2019.0.3-1-universal.run

=========================================================
Self Extracting salome_meca V2019.0.3_universal Installer
=========================================================

Enter the salome_meca install directory [default=/home/amvali/salome_meca] : salome_meca is in English, do you want to be in French ? [y/N] : n
Installation of salome_meca V2019.0.3_universal in /home/amvali/salome_meca/V2019.0.3_universal ...
Verifying archive integrity...
All good.
Done                                                                                                                                                   
./create_appli.sh: line 108: /salome_prerequisites_root.sh: No such file or directory
./create_appli.sh: line 109: /salome_modules.sh: No such file or directory
Creating salome_meca application in /home/amvali/salome_meca/appli_V2019.0.3_universal ...
sed: can't read /.config_appli_template.xml: No such file or directory
grep: salome_context.cfg: No such file or directory
salome_meca post-installation ...
./create_appli.sh: line 263: python: command not found
./create_appli.sh: line 287: ./salome_post_install.py: No such file or directory
The salome_meca application was successfully created.
To run the application:
$ /home/amvali/salome_meca/appli_V2019.0.3_universal/salome
Adjusting wishexecutable /home/amvali/salome_meca/V2019.0.3_universal/tools/Code_aster_frontend-20190/etc/codeaster/profile.sh
Initialize terminal and editor for Code_aster
Final configuration

Would you please help me?

Thanks,
Ali

Offline

#29 2020-10-22 23:21:59

Meinke
Member
Registered: 2020-10-22
Posts: 1

Re: Installation on Ubuntu 20.04

Hello, you teach me a lot zohir about the instalation, but all theses problems can be solutioned installing python before salome

>>sudo apt install python

It's a prerequisite that is not mentioned

So will not be needed change python to python2 on the instalation file

But the aster_study will not work yet, so download this package libffi6_3.2.1-9_amd64.deb.

After this, open terminal in Downloads location.

>>sudo dpkg -i libffi6_3.2.1-9_amd64.deb

This is for manually install the package.

Now all should be fine.

Thanks zohir.

Last edited by Meinke (2020-10-23 01:05:34)

Offline

#30 2021-02-14 15:37:15

bashibozuk
Member
Registered: 2021-02-14
Posts: 1

Re: Installation on Ubuntu 20.04

Thank you sb1966. It is worked like a magic.

sb1966 wrote:

Hi all,

Installation of Salome-meca2019.0.3 in Xubuntu 20.04 was successful with these following minimalistic steps,
unlike the detailed python reinstall as described in the previous reply by ckrug. My steps are as follows:

1. Install all the prerequisites listed in forum (c-a.org/V2/spip.php?article 273).

sudo apt-get install python3-dev
sudo apt-get install python3-numpy
sudo apt-get install tcl tk
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev
sudo apt-get install libopenblas-dev

2. Make sure also to install libopenblas-base.

sudo apt-get install libopenblas-base

This is essential to avoid  "Exit error=127" later while running code-aster (AsterStudy)

3. Install the requisite qt5 pacakges and net-tools etc as described in forum post php?id=24470

sudo apt-get install libqt5pengl5
sudo apt-get install libqt5concurrent5
sudo apt-get install libqt5opengl5
sudo apt-get install libqt5multimediawidgets5
sudo apt-get install net-tools
sudo apt-get install libnlopt0 

4. install python2, named python2-minimal in ubuntu 20.04:

sudo apt-get install python2-minimal

5. Install salome-meca following usual procedure.
5a. This will not create the application, but creates a script create_appl.sh.
6. edit the file to change "python" to "python2" in all its occurences (it occurs three times), as zohir described in one of his posts in this page.
6a. Then run this edited file in terminal:

./create_appli.sh 

.
This will install the application along with the desktop icon.

7. Install liffi6.3.2 as described earlier in this page.
viz.:

wget -O $HOME/Downloads/libffi6_3.2.1-9_amd64.deb http://ftp.br.debian.org/debian/pool/main/libf/libffi/libffi6_3.2.1-9_amd64.deb
sudo dpkg -i $HOME/Downloads/libffi6_3.2.1-9_amd64.deb

8. Create symbolic link of libffi.so.6 as follows:

cd ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib 

ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 libffi.so.6 

9. remove or rename libstdc++.so* files in ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib

mv libstdc++.so _libstdc++.so
mv libstdc++.so.6 _libstdc++.so.6
mv libstdc++.so.6.0 _libstdc++.so.6.0
mv libstdc++.so.6.0.22 _libstdc++.so.6.0.22 

This was essential to avoid opengl error in my case.

EDIT: This issue was also discussed in ___/forum2/viewtopic.php?id=24956

10. Now salome-meca-2019 can be invoked normally.

Hope this helps someone.

Best regards

Sukumar

Offline

#31 2021-02-15 10:39:11

sb1966
Member
Registered: 2015-03-16
Posts: 211

Re: Installation on Ubuntu 20.04

bashibozuk wrote:

Thank you sb1966. It is worked like a magic.

Hi,
Happy to know that it was helpful for you.
Best wishes..

Sukumar

Last edited by sb1966 (2021-02-15 10:40:59)

Offline

#32 2021-03-02 15:14:55

MoritzBaess
Member
Registered: 2021-02-11
Posts: 6

Re: Installation on Ubuntu 20.04

Hello everyone,

I am currently struggling to install Salome_meca20 on my new PC and can't figure out how to solve the problem.
So far I followed the procedure described in  Post:20
But when i try to run the create_appli.sh file I get the error message:

./create_appli.sh
Enter salome_meca virtual application directory [default=/home/mbaess/salome_meca/appli_V2020.0.1_universal_universal] : Creating salome_meca application in /home/mbaess/salome_meca/appli_V2020.0.1_universal_universal ...
Setting for help already set
salome_meca post-installation ...
Adjusting the file : /home/mbaess/salome_meca/appli_V2020.0.1_universal_universal/SalomeApp.xml
Warning: the directory /home/mbaess/salome_meca/V2020.0.1_universal_universal/modules/EUROPLEXUS_20200/lib/salome is in a path variable but does not exist
Warning: the directory /home/mbaess/salome_meca/V2020.0.1_universal_universal/modules/MELIDEFX_V9_4_0/lib/salome is in a path variable but does not exist
./create_appli.sh: line 301: syntax error near unexpected token `fi'
./create_appli.sh: line 301: `fi'

Does anyone know how to handle this problem?
Thanks alot.
regards,
Moritz

Offline

#33 2021-03-02 17:48:36

sb1966
Member
Registered: 2015-03-16
Posts: 211

Re: Installation on Ubuntu 20.04

Hi Moritz,

This post is not really a reply to your query, but something related to it, which, I thought of sharing..

1. Please note that earlier post #20 was meant for installing salomeMeca2019.0.3 in Ubuntu 20.04. Hence this does not necessarily ensure that it will work for salome-meca 2020 also. However, it is good that you have tried and let us know that it didn't work.

2. I have not tried installing Salome-meca 2020 yet on Ubuntu 20.04.

3. However, I have installed Salome-meca 2020 in Ubuntu 18.04 without any hassle and it has worked smoothly for simple MECA_STATIQUE analysis of an elastic body.

4. I have not tried yet any complicated analysis in salome-meca 2020. I hope it will work for such analyses too.

Best regards

Sukumar

Offline

#34 2021-03-02 18:24:03

MoritzBaess
Member
Registered: 2021-02-11
Posts: 6

Re: Installation on Ubuntu 20.04

Thank you for your answer,

On my old Laptop it was running fine Ubuntu20.04, but I cant remember how I solved it. I thought I followed your post, but apparently I didnt.
maybe I will try Ubuntu 18.04 instead.

regards,
Moritz

Offline

#35 2021-07-22 23:42:39

Marceleza
Member
Registered: 2021-07-20
Posts: 1

Re: Installation on Ubuntu 20.04

This worked for me installing SM 2020.0.1 on Ubuntu 20.04. Thank you!

sb1966 wrote:

Hi all,

Installation of Salome-meca2019.0.3 in Xubuntu 20.04 was successful with these following minimalistic steps,
unlike the detailed python reinstall as described in the previous reply by ckrug. My steps are as follows:

1. Install all the prerequisites listed in forum (c-a.org/V2/spip.php?article 273).

sudo apt-get install python3-dev
sudo apt-get install python3-numpy
sudo apt-get install tcl tk
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev
sudo apt-get install libopenblas-dev

2. Make sure also to install libopenblas-base.

sudo apt-get install libopenblas-base

This is essential to avoid  "Exit error=127" later while running code-aster (AsterStudy)

3. Install the requisite qt5 pacakges and net-tools etc as described in forum post php?id=24470

sudo apt-get install libqt5pengl5
sudo apt-get install libqt5concurrent5
sudo apt-get install libqt5opengl5
sudo apt-get install libqt5multimediawidgets5
sudo apt-get install net-tools
sudo apt-get install libnlopt0 

4. install python2, named python2-minimal in ubuntu 20.04:

sudo apt-get install python2-minimal

5. Install salome-meca following usual procedure.
5a. This will not create the application, but creates a script create_appl.sh.
6. edit the file to change "python" to "python2" in all its occurences (it occurs three times), as zohir described in one of his posts in this page.
6a. Then run this edited file in terminal:

./create_appli.sh 

.
This will install the application along with the desktop icon.

7. Install liffi6.3.2 as described earlier in this page.
viz.:

wget -O $HOME/Downloads/libffi6_3.2.1-9_amd64.deb http://ftp.br.debian.org/debian/pool/main/libf/libffi/libffi6_3.2.1-9_amd64.deb
sudo dpkg -i $HOME/Downloads/libffi6_3.2.1-9_amd64.deb

8. Create symbolic link of libffi.so.6 as follows:

cd ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib 

ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 libffi.so.6 

9. remove or rename libstdc++.so* files in ~/salome_meca/V2019.0.3_universal/prerequisites/debianForSalome/lib

mv libstdc++.so _libstdc++.so
mv libstdc++.so.6 _libstdc++.so.6
mv libstdc++.so.6.0 _libstdc++.so.6.0
mv libstdc++.so.6.0.22 _libstdc++.so.6.0.22 

This was essential to avoid opengl error in my case.

EDIT: This issue was also discussed in ___/forum2/viewtopic.php?id=24956

10. Now salome-meca-2019 can be invoked normally.

Hope this helps someone.

Best regards

Sukumar

Offline

#36 2021-07-23 21:28:10

sb1966
Member
Registered: 2015-03-16
Posts: 211

Re: Installation on Ubuntu 20.04

Hi,

This worked for me installing SM 2020.0.1 on Ubuntu 20.04. Thank you!

Happy to know that the same procedure has worked for SM 2020.0.1 also.

Best regards.

Sukumar

Offline

#37 2021-10-10 11:39:47

filjan
Member
From: Poland, Cracow
Registered: 2016-07-11
Posts: 80

Re: Installation on Ubuntu 20.04

Hi community!

I encountered failures during installation singularity-container on my Ubuntu 20.04. Singularity is vital for the newest S_M 2021. For me helped belowed snippet (unfortunately i'm not allowed to paste direct link), which one I'd like to share:

Source: github ' How can I get singularity container on Ubantu 20.04 #5390 ' issue

qhaas wrote:

Luckily for those not wanting to compile from source, most of the binaries in the (well maintained) EPEL EL8 singularity 3.8.x rpm are static linked, so it is one of the cleaner conversions using alien:

$ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="Ubuntu 20.04.2 LTS"
$ alien --version
alien version 8.95
# WARNING:  singularity version numbers subject to change, browse the yum repo to get up-to-date URL
wget https:/ /dl.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/singularity-3.8.0-1.el8.x86_64.rpm
$ sudo alien -d singularity-3.8.0-1.el8.x86_64.rpm
...
$ sudo apt-get install ./singularity_3.8.0-2_amd64.deb
...
$ singularity --version
singularity version 3.8.0-1.el8

Hope this answer will help someone else.
Regards
Filjan

Offline

#38 2021-10-10 12:33:40

ing.nicola
Member
Registered: 2017-12-11
Posts: 133

Re: Installation on Ubuntu 20.04

This worked for me on Xubuntu 20.04

sudo apt-get update && \
sudo apt-get install -y build-essential \
libseccomp-dev pkg-config squashfs-tools cryptsetup

sudo rm -r /usr/local/go

export VERSION=1.13.15 OS=linux ARCH=amd64  # change this as you need

wget -O /tmp/go${VERSION}.${OS}-${ARCH}.tar.gz https://dl.google.com/go/go${VERSION}.${OS}-${ARCH}.tar.gz && \
sudo tar -C /usr/local -xzf /tmp/go${VERSION}.${OS}-${ARCH}.tar.gz

echo 'export GOPATH=${HOME}/go' >> ~/.bashrc && \
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc && \
source ~/.bashrc

curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh |
sh -s -- -b $(go env GOPATH)/bin v1.21.0

mkdir -p ${GOPATH}/src/github.com/sylabs && \
cd ${GOPATH}/src/github.com/sylabs && \
git clone https://github.com/sylabs/singularity.git && \
cd singularity

git checkout v3.6.3

cd ${GOPATH}/src/github.com/sylabs/singularity && \
./mconfig && \
cd ./builddir && \
make && \
sudo make install

singularity version

Offline