Difference between revisions of "Installation/Helyx-OS/CentOS SL RHEL"

From OpenFOAMWiki
(CentOS 6.4: Copy-pasted-adapted the instructions for CentOS)
(typo fix)
Line 55: Line 55:
 
cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/</bash>
 
cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/</bash>
 
</li>
 
</li>
<li>Go into the subfolder `v1.0.1`:
+
<li>Go into the subfolder {{tt|v1.0.1}}:
 
<bash>cd v1.0.1</bash>
 
<bash>cd v1.0.1</bash>
 
</li>
 
</li>
Line 118: Line 118:
 
cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/</bash>
 
cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/</bash>
 
</li>
 
</li>
<li>Go into the subfolder `v1.0.1`:
+
<li>Go into the subfolder {{tt|v1.0.1}}:
 
<bash>cd v1.0.1</bash>
 
<bash>cd v1.0.1</bash>
 
</li>
 
</li>

Revision as of 15:29, 2 November 2013

1 Introduction

This page is dedicated to explaining how to install Helyx-OS in:

  • Community ENTerprise Operating System, aka CentOS.
  • Red Hat Enterprise Linux, aka RHEL.
  • Scientific Linux, aka SL.

In theory, all of the above follow the same versioning. Therefore, at the time this page was first written, RHEL, CentOS and SL were all at version 6.4.

Note: Many of these instructions were copied (with permission) from the original HelyxOS (Unofficial instructions) written by User:Wyldckat.

If you do not yet feel comfortable using Linux, then perhaps you better first read the page Working with the Shell and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.


2 Copy-Paste steps

A few notes before you start copy-pasting:

  1. Lines that start with # don't have to be copy-pasted. They are just comments to let you know what's going on.
  2. One wrong character is enough for breaking this guide, so make sure you can read the characters properly or that the installed language system does not break the copied characters!


2.1 CentOS 6.4

2.1.1 CentOS 6.4 32bit

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions

Note: These instructions have been written for CentOS 6.4 32bit (i686) (based on the ones for Fedora 17 and CentOS 6.4 x86_64). They might work on CentOS 6.3.

Steps:

  1. Install the EPEL repository, which will provide VTK 5.8 with Java bindings:
    su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

    Details about EPEL:

  2. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  3. Download the binary tarball for HelyxOS from the download section. For example, download the file:
    20130122-Engys-HelyxOS-1.0.1-linux-x64-JRE.tar.bz2
  4. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130122-Engys-HelyxOS-1.0.1-linux-x64-JRE.tar.bz2
  5. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  6. Get a local copy of the OpenJDK installation that CentOS has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/
  7. Go into the subfolder v1.0.1:
    cd v1.0.1
  8. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/i386:$HELYXHOME/../jre/lib/i386/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  9. Eliminate the contents of the ext subfolder:
    rm ext/*
  10. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib/vtk/lib*.so.5.8.0; do
        b=${a%*.5.8.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done 
     
  11. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to CentOS's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib/vtk/java/vtk.jar lib/vtk-5.10.jar
  12. That is it! You are ready to go:
    ./helyxOS.sh

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions


2.1.2 CentOS 6.4 64bit

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions

Note: These instructions have been written for CentOS 6.4 64bit (x86_64). They might work on CentOS 6.3.

Steps:

  1. Install the EPEL repository, which will provide VTK 5.8 with Java bindings:
    su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

    Details about EPEL:

  2. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  3. Download the binary tarball for HelyxOS from the download section. For example, download the file:
    20130122-Engys-HelyxOS-1.0.1-linux-x64-JRE.tar.bz2
  4. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130122-Engys-HelyxOS-1.0.1-linux-x64-JRE.tar.bz2
  5. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  6. Get a local copy of the OpenJDK installation that CentOS has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/
  7. Go into the subfolder v1.0.1:
    cd v1.0.1
  8. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  9. Eliminate the contents of the ext subfolder:
    rm ext/*
  10. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib64/vtk/lib*.so.5.8.0; do
        b=${a%*.5.8.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib64/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done 
     
  11. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to CentOS's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib64/vtk/java/vtk.jar lib/vtk-5.10.jar
  12. That is it! You are ready to go:
    ./helyxOS.sh

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions