Spring module for CentOS 7

Spring is a software developed at the EMBL. You can download it here and find more information about Spring here. I had previously nightmares installing it on my old Fedora.20 systems. So I was kind of reluctant to try again on CentOS.7. But persistence and canceled appointments made me try it.

If you have a a look to the spring installation page, you see that CentOS.7 is not on the listed distributions. But anyway, I give it a try. I check I have the prerequisites from Linux (Fedora20) via yum. It  looks like I miss libpng12: I install it via yum install libpng12.

Then I do as suggested:

tar xvf spring-latest-linux.tar.gz

I move the resulting folder to the default software location, and run there the suggested script.

sh patches/binary_install_linux.sh

So far, so good. The output after the installation tells us:

Ran 4 tests in 36.977s
OK
=================================================
Testing done. 
If 4 quick tests ran OK Spring was correctly installed.
Install done. 
Please type to add the following line to your .cshrc:
echo setenv PATH:blablabla/bin:$PATH >> ~/.cshrc
or your favorite Bourne shell rc file (e.g. .bashrc, .zshrc):
echo export PATH:blablabla/bin:$PATH >> ~/.bashrc
=================================================

It’s looking nicer than last time I tried. Let’s go for a basic module.

#%Module1.0######################################
##
## modules spring/spring-0.84
##
## modulefiles/spring/spring-0.84. spring/spring-0.84
##
proc ModulesHelp { } {
 global version modroot

puts stderr "spring/spring-0.84 - 
sets the Environment for using spring 0.84"
}

module-whatis "Sets the environment for using spring 0.84"

# for Tcl script use only
set topdir /usr/local/spring_v0-84-1470
set version 0.84
set sys linux86

# no additional env variables 

prepend-path PATH $topdir/bin

As ridiculous as it looks, it seems to work. Now, once more, it’s time to wait for the user to test it 🙂

Advertisements

About bitsanddragons

A traveller, an IT professional and a casual writer
This entry was posted in bits, centos. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s