How to compile and install newest version of scilab from github using a bash script in Ubuntu 14.04 LTS 64-bit

Posted: 2015/04/12 in Data Science, Ubuntu
Tags: , , , , , , , , , ,

!!!! Following procedure is risky, because manually installing the 6 library dependencies below can potentially break your package manager dependencies !!!!!
!!!!! Use following bash script at your own risk !!!!!
!!!!! It is highly recommended to run this script in Ubuntu 14.04 LTS 64-bit in a virtual machine (Virtualbox or VMWare) and not in your host Ubuntu installation !!!!!!
However, the build of scilab was tested and works on my own real install of Ubuntu 14.04 LTS 64-bit
It is probably safer to follow this procedure in Ubuntu 15.04 final beta, but I have not tested Ubuntu 15.04 final beta myself, as I am sticking to LTS releases of Ubuntu.

Contents of bash script:

# !!!! Following procedure is risky, because manually installing the 6 library dependencies below can potentially break your package manager dependencies !!!!!
# !!!!! Use following bash script at your own risk !!!!!
# !!!!! It is highly recommended to run this script in Ubuntu 14.04 LTS 64-bit in a virtual machine (Virtualbox or VMWare) and not in your host Ubuntu installation !!!!!!
# However, the build of scilab was tested and works on my own real install of Ubuntu 14.04 LTS 64-bit
# It is probably safer to follow this procedure in Ubuntu 15.04 final beta, but I have not tested Ubuntu 15.04 final beta myself, as I am sticking to LTS releases of Ubuntu.
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get purge scilab
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install checkinstall build-essential unp git
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep scilab
# manually install 6 library dependencies for scilab in Ubuntu 14.04 LTS 64-bit:
# these dependencies are available in the standard Ubuntu repositories for vivid (Ubuntu 15.04 final beta)
cd /tmp
wget --no-check-certificate https://launchpad.net/ubuntu/+source/libjogl2-java/2.2.4+dfsg-1/+build/6556107/+files/libjogl2-java-doc_2.2.4%2Bdfsg-1_all.deb
wget --no-check-certificate https://launchpad.net/ubuntu/+source/libjogl2-java/2.2.4+dfsg-1/+build/6556107/+files/libjogl2-java_2.2.4%2Bdfsg-1_all.deb
wget --no-check-certificate http://launchpadlibrarian.net/189706070/libjogl2-jni_2.2.4%2Bdfsg-1_amd64.deb
wget --no-check-certificate http://launchpadlibrarian.net/189706067/libjogl2-toolkits_2.2.4%2Bdfsg-1_all.deb
wget --no-check-certificate http://francisdavey.co.uk/ubuntu/ubuntu/pool/universe/g/gluegen2/libgluegen2-jni_2.2.4-2_amd64.deb
wget --no-check-certificate http://francisdavey.co.uk/ubuntu/ubuntu/pool/universe/g/gluegen2/libgluegen2-rt-java_2.2.4-2_all.deb
rm *i386*.deb
sudo dpkg -i libgluegen2-jni_*.deb
sudo dpkg -i libgluegen2-rt-java*.deb
sudo dpkg -i libjogl2-jni_*.deb
sudo dpkg -i libjogl2-java_*.deb
sudo dpkg -i libjogl2-toolkits_*.deb
sudo dpkg -i libjogl2-java-doc_*.deb
#compile and install newest version of scilab in Ubuntu 14.04 LTS 64-bit:
cd
sudo rm -rf ~/scilab
git clone https://github.com/opencollab/scilab.git
cd ~/scilab/scilab
sudo ./configure
sudo make
sudo make install
/usr/local/bin/scilab -version
# Terminal output should look similar to this output:
# Scilab version "5.6.0.0"
# scilab-branch-master
/usr/local/bin/scilab
Advertisements

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