LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2009, 04:53 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Short Tutorial : How to Install Salome-Platform in Slackware64 13


Hi Forum

I post this stuff here in case someone may find this useful :


This is about installing Salome Platform , an oustanding CAD environment, Pre-Post processing tool created by EDF Recherche to help Engineers analyze stuff.

http://www.salome-platform.org/

You should get this version from here :

http://www.salome-platform.org/downloads/salome-v5.1.2

You want the Debian Etch 64bit version... ( works for me... so... )

Did not try the 5.1.3 version yet...




It will create geometries, mesh them, and analyze the results issued from some Open Source ( but also proprietary ) analysis packages like

Code aster
Code saturne
OpenFOAM


................................

Think of Ansys, only without the solvers... with the ability to run Python scripts...

Yeah... Figure yourself this... instead of doing some time consuming repetitive tasks involved in creating your design, you can automate such things with scripts... and parametrize lots of features in your design...

Can you do this Ansys guys... ??


I am in the process of designing an aircraft in Salome Platform...

[RANT] In Salome-Platform's Forum, I asked repeatedly how I could solve the issues that came along when trying to install it in Slackware... nobody seemed to care... well...
...I just did it anyway... BANZAI [/END RANT]

What you will need :

Slackware64 13
Salome Platform Tarball

( duh... )


Python 2.5.2
libgfortran.so.1
libg2c.so.0

As to Python you can downgrade it to the version of Slackware 12.x, and it will behave nicely...

so... You untar the package, cd into it and run

Code:
iskandhar:/home/alex/Desktop/Newdat/CDSal/InstallWizard_5.1.2_Debian_4.0_64bit# ls -la
total 580
drwxr-xr-x 7 alex alex   4096 2009-07-29 14:06 .
drwxr-xr-x 4 alex alex   4096 2009-12-17 22:27 ..
drwxr-xr-x 3 alex alex   4096 2009-07-06 12:50 bin
-rwxr-xr-x 1 alex alex  28140 2009-07-29 09:47 config_Debian_4.0_64bit.xml
drwxr-xr-x 3 alex alex   4096 2009-07-06 12:50 config_files
drwxr-xr-x 2 alex alex   4096 2009-07-06 12:50 doc
drwxr-xr-x 4 alex alex   4096 2009-07-06 12:49 Products
-rwxr-xr-x 1 alex alex  20815 2009-07-06 12:50 README
-rwxr-xr-x 1 alex alex  52735 2009-07-06 12:50 runInstall
-rwxr--r-- 1 alex alex 449541 2009-07-29 14:04 SALOME_5_1_2_Release_Notes.pdf
drwxr-xr-x 2 alex alex   4096 2009-07-06 12:50 src
iskandhar:/home/alex/Desktop/Newdat/CDSal/InstallWizard_5.1.2_Debian_4.0_64bit# ./runInstall -b -t <your target dir>
default target dir is $HOME/salome_5.1.2

Failure to use the switch -b ( batch mode ) will default the install process to the -g ( GUI mode ) mode, and it will fail, because the installer gui executable was compiled for 32 bits...

So if you have multilib enabled, shouldn't make any difference to use -b or not... but if you have Slackware64 13 pure, use -b.


It will make a question about which version to install, choose the only one available Debian Etch... since i installed it as root, I choose /opt/salome_5.1.2...

Once it stops, you should cd into your install dir, and perform a bit of a hackery...

Since libgfortran.so.1 does not exist, you must lie to Salome binaries...

Code:
iskandhar:~/salome_5.1.2# ln -s /usr/lib64/libgfortran.so.3 libgfortran.so.1
iskandhar:~/salome_5.1.2#
Quote:
2.1. Setting of the environment for SALOME

Installation Wizard creates some environment files to simplify
the procedure of launching SALOME. These shell scripts set all
necessary environment variables for all products you have installed.
These files are:
* env_products.csh + env_products.sh in the target directory;
these files can be used for the launching of SALOME.
* salome.csh + salome.sh in the KERNEL module's sources/binaries
root directories; these files are the copies of the
corresponding env_products.* files.
* env_build.csh + env_build.sh in the target directory;
these files contain minimal environment settings necessary
to build SALOME packages from sources (see paragraph 4).

To set SALOME environment just type in the terminal window:

cd <KERNEL_ROOT_DIR>
source salome.sh
or
cd <KERNEL_ROOT_DIR>
source salome.csh

where <KERNEL_ROOT_DIR> is KERNEL binaries directory, e.g.
KERNEL_5.1.2 for the 5.1.2 version.

Quote:
2.2. Launching of SALOME

After you set environment you can start SALOME. Go to the KERNEL
module's binaries directory (KERNEL_5.1.2/bin/salome for the version
5.1.2) by using of 'cd' command and then type:

runSalome [<parameters>]

This will start SALOME according to the launching parameters which
are described in the configuration files: SalomeApp.xml in the
<GUI_ROOT_DIR>/share/salome/resources/gui folder and
.SalomeApprc.<version_number> file, located in your home
directory (where <version_number> is SALOME version number).
If the user configuration file does not exist, it is automatically
created when exiting SALOME GUI.
So in your calling script, something like

Code:
echo 'export LD_LIBRARY_PATH=/path/to_salome/root/dir:$LD_LIBRARY_PATH&&. <source salome environment script>&&<call to the launching script of salome source tree>' > /usr/local/bin/salome&&chmod +x /usr/local/bin/salome
Would be enough for you to call salome from bash as user...

One step remains though ... libg2c.so.0

For this you can grab an rpm for 64bits arch from centOS here... :

http://mirror.centos.org/centos/5.4/...6-4.x86_64.rpm

and run rpm2tgz over this... it will create a package containing the lib and a symlink to it... installpkg it, and you will be done here.

Failure to perform this last step will hider the ability of Salome platform to build meshes.

... Well, guess this is all for now...

Enjoy

BRGDS

Alex

PS This work would not have been possible without the hint from user knudfl, he gave me the hint on how to get libg2c.so.0 from the rpm from CentOS. Once again thanks Knudfl

Last edited by Alexvader; 12-17-2009 at 06:03 PM.
 
Old 12-17-2009, 07:50 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Hey Alex good work again. Also did you think about posting this in a blog?

Regards
 
1 members found this post helpful.
Old 12-18-2009, 07:16 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Shylock

Glad you liked it...

I have no blog yet...

I've been to lazy to ceate one so far...

But As soon as I create one, I will post this stuff there, as well as many "tricks" in engineering design, simulation, History of Technology in Warfare... lots of interesting stuff.

BRGDS

Alex
 
  


Reply

Tags
cad, engineering, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Short Tutorial : How to install Code Aster in Slackware64 13 Alexvader Slackware 6 12-21-2009 04:22 PM
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-07-2009 11:23 PM
Slackware64 install on HP dv3-2155mx krlrvr Slackware 6 07-28-2009 09:36 AM
slackware64 : want to install wbar wingevil Slackware 5 07-26-2009 03:06 AM
help install slackware64-current christyler2009 Slackware 2 06-26-2009 11:31 AM


All times are GMT -5. The time now is 06:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration