Commit a7a81aba authored by Pablo Toharia's avatar Pablo Toharia

Minor improvements for bash installer scripts. Improvement of README.md

parent 2f32cda9
......@@ -2,34 +2,30 @@
# Introduction {#Introduction}
Modules-Linux allows to "mount" diverse libraries on top of system installed versions, allowing to dynamically load and unload the versions needed for building or running other applications. Note these modules do NOT overwrite or modify existing system installations.
Modules-Linux allows to make available diverse libraries or programs
on top of system installed versions, allowing to dynamically load and
unload the versions needed for building or running other
applications. Note these modules do NOT overwrite or modify existing
system installations.
# Features {#Features}
* Automatic installers for the download and installling of required versions
* Module files ready to be loaded and unloaded for diverse libraries such as Qt 5.5, OpenSceneGraph 3.4.0
* Module files ready to be loaded and unloaded for diverse libraries such as
Qt 5.5, OpenSceneGraph 3.4.0
# Building {#Building}
# Pre-requisites {#Pre-requisites}
To prepare the installation, follow these steps:
This project assumes you are using bash and you are using Ubuntu 14.04.
## Install GNU modules
sudo apt-get install environment-modules
## Create directories for modules
mkdir -p $HOME/opt
## Download available modules
cd $HOME/opt
git clone git@gitlab.gmrv.es:common/modules-linux.git modules
## Create directory for source
mkdir -p $HOME/opt/src
## Make module available and set MODULEPATH
echo "source /etc/profile.d/modules.sh" >> $HOME/.bashrc
echo "export MODULEPATH=\$HOME/opt/modules:\$MODULEPATH" >> $HOME/.bashrc
Prior to start running installers and loading/unloading modules you need to
install GNU Modules and create a directory structure (based on $HOME/opt) to
hold the software and modules. This project includes a script that does the
whole process:
```bash
./install.sh
```
# Installing Modules {#Installing Modules}
......@@ -37,8 +33,10 @@ Run the desired scripts located on the installers folder.
Example:
```bash
cd installers
./Qt-5.5
./Qt-5.5.sh
```
# Loading/Unloading Modules {#Loading/Unloading Modules}
......@@ -48,25 +46,34 @@ Modules can be simply loaded and unloaded on demand.
In order to load a module, execute this command
```bash
module load <module_name>
```
Example:
Example:
```bash
module load Qt-5.5
```
## Unload
To unload an already loaded module:
```bash
module unload <module_name>
```
Example:
Example:
module unload Qt-5.5
```bash
module unload Qt-5.5.sh
```
## List loaded modules
To list the already loaded modules:
```bash
module list
```
#!/bin/bash
# Install GNU modules
sudo apt-get install environment-modules
# Create directories for modules
mkdir -p $HOME/opt
# Download available modules
cd $HOME/opt
git clone git@gitlab.gmrv.es:common/modules-linux.git modules
# Create directory for source
mkdir -p $HOME/opt/src
# Make module available and set MODULEPATH
echo "source /etc/profile.d/modules.sh" >> $HOME/.bashrc
echo "export MODULEPATH=\$HOME/opt/modules:\$MODULEPATH" >> $HOME/.bashrc
\ No newline at end of file
echo "export MODULEPATH=\$HOME/opt/modules:\$MODULEPATH" >> $HOME/.bashrc
#!/bin/bash
# Download, compile and install cmake 3.3.1
cd $HOME/opt/src
wget http://www.cmake.org/files/v3.3/cmake-3.3.1.tar.gz
......
#!/bin/bash
mkdir -p ~/opt/src && cd ~/opt/src
git clone https://github.com/RLovelett/eigen
cd eigen
......
#!/bin/bash
cd $HOME/opt
wget http://gmrv.es/~ptoharia/OpenSceneGraph-3.4.0-Qt5.5.tgz
tar zxvf OpenSceneGraph-3.4.0-Qt5.5.tgz
......
#!/bin/bash
mkdir -p $HOME/opt/src && cd ~/opt/src
wget http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-3.4.0.zip
unzip OpenSceneGraph-3.4.0.zip
......
#!/bin/bash
cd $HOME/opt
wget http://gmrv.es/~ptoharia/Qt-5.5.tgz
tar zxvf Qt-5.5.tgz
......
#!/bin/bash
sudo apt-get install libturbojpeg libjpeg-turbo8-dev
mkdir -p ~/opt/src && cd ~/opt/src
wget http://netassist.dl.sourceforge.net/project/virtualgl/2.4.1/VirtualGL-2.4.1.tar.gz
......
#!/bin/bash
sudo apt-get install libqt5designer5 qttools5-dev
mkdir -p ~/opt/src && cd ~/opt/src
wget http://gmrv.es/~ptoharia/libQGLViewer-2.6.3.tar.gz
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment