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
Hi
The other solution now is to use the binaries available here:
http://www.scilab.org/team/sylvestre.ledru/
Sylvestre
Comment by Sylvestre — November 21, 2008 @ 3:44 pm |
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
Comment by Bigbrovar — November 21, 2008 @ 5:42 pm |
Nop, they are different!
Comment by Sylvestre (from Scilab) — November 24, 2008 @ 11:00 am |
@ sylvertre thanks i have updated my post with your guide. thanks .. one more thing anyway to get a repo that would work with hardy?
Comment by Bigbrovar — November 24, 2008 @ 11:37 am |
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
Comment by Swagat — December 5, 2008 @ 5:31 pm |
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
Comment by Bigbrovar — December 5, 2008 @ 11:04 pm |
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
Comment by swagat — December 6, 2008 @ 8:31 pm |
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.
Comment by Tuxi — December 7, 2008 @ 3:40 pm |
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.
Comment by J2K — December 20, 2008 @ 11:58 am |
[…] I remembered the last time i had to install a 5.x version of scilab on ubuntu (hardy heron) it was a hellish experience because there was no installable binary package and i had to download and compile from source which was just a PITA because most of the dependencies needed were not available in the Hady Heron Repo. what made things worse is after compiling, The package was very buggy and kept crashing especially when i try the translation tool from the application menu. Rather than witch and whine about this, in true Free software Culture i filled a bug which thankfully as been fixed in the latest version 5.1. […]
Pingback by How to install Scilab-5.1 on Ubuntu LInux « bigbrovar — February 21, 2009 @ 8:57 am |
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..
Comment by parhyang — April 15, 2009 @ 4:27 pm |
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
Comment by parhyang — April 16, 2009 @ 10:16 am |
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!
Comment by tibytza — June 9, 2009 @ 12:53 pm |
am glad it worked for you .. thanks for the feedback
Comment by Bigbrovar — June 9, 2009 @ 7:46 pm |