How to install scilab 5.0.3 on Ubuntu 8.4

THIS GUIDE IS NOW DEPRECIATED, A MORE RECENT AND EASIER VERSION CAN BE FOUND HERE

They say if u want something done you’d better do it your self. Since there was no deb package for the latest scilab 5.0.3. I had no choice than to build one from source. it wasn’t easy hunting down the needed dependency many of which are not available in the hardy repository. I had to download online from the intrepid repo . here are the things  i did to get it to compile.

first download the latest scilab 5.0.3

wget http://www.scilab.org/download/5.0.3/scilab-5.0.3-src.tar.gz

mv it to your home directory

mv scilab-5.0.3-src.tar.gz $HOME

then we install the scilab dependencies that are available in that hardy repository

sudo apt-get build-dep scilab
sudo apt-get install liblaf-plugin-java libjgoodies-looks-java scilab-doc ant sun-java5-jdk

once that is done
time to download and install the external dependencies that are not available in hardy repo to make things easy we create a directory called dependencies

mkdir dependencies

now we enter into the dependencies directory we just created

cd dependencies

then we download the required dependencies

libflexdock-jni
wget http://mirrors.kernel.org/ubuntu/pool/universe/libf/libflexdock-java/libflexdock-jni_0.5.1-dfsg1-4_i386.deb

libflexdock-java-doc
wget http://mirrors.kernel.org/ubuntu/pool/universe/libf/libflexdock-java/libflexdock-java-doc_0.5.1-dfsg1-4_all.deb

libflexdock-java-demo
wget [url]http://mirrors.kernel.org/ubuntu/pool/universe/libf/libflexdock-java/libflexdock-java-demo_0.5.1-dfsg1-4_all.deb[/url]

libjogl-jni
wget http://mirrors.kernel.org/ubuntu/pool/multiverse/libj/libjogl-java/libjogl-jni_1.1.1-2ubuntu1_i386.deb


libjogl-java

wget http://mirrors.kernel.org/ubuntu/pool/multiverse/libj/libjogl-java/libjogl-java_1.1.1-2ubuntu1_all.deb

libjrosetta-java
wget http://mirrors.kernel.org/ubuntu/pool/universe/libj/libjrosetta-java/libjrosetta-java_1.0.1+gpl-1_all.deb

libmatio0
wget http://mirrors.kernel.org/ubuntu/pool/universe/libm/libmatio/libmatio0_1.3.3-2_i386.deb

libmatio-dev
wget http://mirrors.kernel.org/ubuntu/pool/universe/libm/libmatio/libmatio-dev_1.3.3-2_i386.deb

libflexdock-java
wget http://mirrors.kernel.org/ubuntu/pool/universe/libf/libflexdock-java/libflexdock-java_0.5.1-dfsg1-4_all.deb

libskinlf-java
wget http://mirrors.kernel.org/ubuntu/pool/universe/libs/libskinlf-java/libskinlf-java_6.7-3_all.deb

once every last one of the dependency as been downloaded
we then install all of them with one command

sudo dpkg -i *.deb

once done . we have installed all the dependencies needed by the application.

NOTE: I didnt build this on a fresh ubuntu so they maybe some needed which didnt show up because there were already installed on my computer. so to be save make sure you install build-essential
sudo apt-get install build-essential

now we start the build.

cd ..

extract the scilab

tar -xzvf scilab-5.0.3-src.tar.gz

enter the directory

cd scilab-5.0.3

then run configure

./configure

it would take a while. and if all went well it would return no errors meaning all the dependencies needed for compiling the package is installed. now we run make

make

this would take a very very long time.. if you have anything else to do .. this is the right time.
i ran this on a pentium dual core 1.8ghz 2gb ram and it took almost 1 hour.

but once its done

sudo make install

it would also take some time to complete .. but once its done without errors that means that scilab 5.0.3 has been installed and can be found in /Application/Education/Scilab

hope some one finds this useful.

PS.. if u run ibex. you dont just

sudo apt-get build-dep scilab
sudo apt-get install liblaf-plugin-java libjgoodies-looks-java scilab-doc ant sun-java5-jdk

and

sudo apt-get install libflexdock-jni libskinlf-java libflexdock-java libmatio-dev libmatio0 libjrosetta-java jogl-java libjogl-jni libflexdock-java-demo libflexdock-java-doc

before starting the compiling

For those using Intrepid good news is that u dont have to go thru all the process i went thru just
In /etc/apt/sources, add the line:

deb http://www.scilab.org/team/sylvestre.ledru/repository/ubuntu/ intrepid main

sudo aptitude update

sudo aptitude install scilab

Reference http://www.scilab.org/team/sylvestre.ledru/

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

This entry was posted in Education, FOSS & Mathematical Science, Ubuntu, Uncategorized. Bookmark the permalink.
  • Sylvestre

    Hi

    The other solution now is to use the binaries available here:
    http://www.scilab.org/team/sylvestre.ledru/

    Sylvestre

  • http://bigbrovar.wordpress.com/ Bigbrovar

    oh thanks .. i will install it on the lab computers and if it goes well then i will post the out come here.. by the way is the debian sid repo compatible with ubuntu hardy or ibex

  • http://www.scilab.org Sylvestre (from Scilab)

    Nop, they are different!

  • http://bigbrovar.wordpress.com/ Bigbrovar

    @ sylvertre thanks i have updated my post with your guide. thanks .. one more thing anyway to get a repo that would work with hardy?

  • Swagat

    Hi, I followed the instruction given here. But could not finish installation. When I run ./configure, I get following error:

    checking jhall… no
    configure: error: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)

    How can I fix this problem? Please help ….

    Thanks,
    Swagat

  • http://bigbrovar.wordpress.com/ Bigbrovar

    i got round that proble by installing scilab 4.x ( the one in the official ubuntu repositories) help package which is scilab-docs so

    sudo apt-get install liblaf-plugin-java libjgoodies-looks-java scilab-doc ant sun-java5-jdk

    i stated this in the guide … make sure you follow the guide throughly without missing a step

  • swagat

    Hi,

    I installed all packages as mentioned in this page, but still I am getting the same error. Please see the output of following commands:

    ——————

    $ sudo apt-get install libflexdock-jni libskinlf-java libflexdock-java libmatio-dev libmatio0 libjrosetta-java libjogl-java libjogl-jni libflexdock-java-demo libflexdock-java-doc
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    libflexdock-jni is already the newest version.
    libskinlf-java is already the newest version.
    libflexdock-java is already the newest version.
    libmatio-dev is already the newest version.
    libmatio0 is already the newest version.
    libjrosetta-java is already the newest version.
    libjogl-java is already the newest version.
    libjogl-jni is already the newest version.
    libflexdock-java-demo is already the newest version.
    libflexdock-java-doc is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    ——————-

    $ sudo apt-get install liblaf-plugin-java libjgoodies-looks-java scilab-doc ant sun-java5-jdk
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    liblaf-plugin-java is already the newest version.
    libjgoodies-looks-java is already the newest version.
    scilab-doc is already the newest version.
    ant is already the newest version.
    sun-java5-jdk is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    —————-

    $ sudo apt-get install build-essential
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    build-essential is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    ————

    $ sudo apt-get build-dep scilab
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    —————–

    $ ./configure

    checking jogl… /usr/share/java//jogl.jar
    checking jhall… no
    configure: error: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)

    ————————–

    Please help. thanks,
    Swagat

  • Tuxi

    Thanks for the Intrepid Ibex instructions. I just successfully installed Scilab 5.

    I found I had to manually create a menu entry. I’m not sure if this is common.

  • J2K

    If you have problems with “package/jar jhall” you probably missing jhall.jar in your “/usr/share/java”. Try to download java.help from Sun and manually copy jhall.jar into this location.

  • Pingback: How to install Scilab-5.1 on Ubuntu LInux « bigbrovar

  • parhyang

    thanks for this tutors, i think build from source or debs repo’s are good choice. last day i download ~100 tgz binary and try to use on my pc intrepid but get unlucky, sometimes its crash when run SciPad and load into SciLab. i don’t know..

  • parhyang

    Hi Sylvestre (from Scilab) i was install from your debs repos. but.. ‘copy’ and ‘paste’ function only works on SciLab,not with others apps. please hlp me, i want to make a tutorials with OOo Writer. thanks

  • http://tiberiumihai.co.cc tibytza

    thank you!!

    i finaly did it!

    i decided to move from windows to ubuntu 9.04 and scilab is a good alternative for matlab. thanks.

    with your help i finaly did it!

    • http://bigbrovar.wordpress.com/ Bigbrovar

      am glad it worked for you .. thanks for the feedback

  • http://www.poolinstallationguides.com Pool Installation

    Great! Thank for information, I’m looking for it for
    a long time,