Scilab 6.0.1 Ubuntu 18.04 LTS – How to Get Scilab 6.0.1 Working


I have installed clean Ubuntu MATE 18.04 LTS and installed Scilab from repository here with

sudo apt-get update
sudo apt-get install scilab

After installation I tried to launch it from GUI (Applications → Other → Scilab) – it does not start.
Then I tried to launch it from terminal with scilab command. Terminal output is as follows:

$ scilab
/usr/bin/scilab-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

so it can't find Java. I reported bug 1762999 about this problem.

I checked existence of

$ dpkg -S  
openjdk-11-jre-headless:amd64: /usr/lib/jvm/java-11-openjdk-amd64/lib/

so it is in place.

What should I do to get Scilab 6.0.1 working on Ubuntu 18.04 LTS?

Best Answer

* Repository-based method (Scilab itself and ATOMS will not work)

Update 2020-12-07. Nowadays Scilab is broken again as indicated in bug 1884277.

* Binary download method (fully-functional, seems to be really recommended)

So if you need fully-functional Scilab you should remove deb-packaged version with

sudo apt-get purge scilab scilab scilab-cli scilab-data scilab-doc scilab-full-bin scilab-include scilab-minimal-bin scilab-sivp scilab-test
sudo apt-get autoremove

and use latest binary archive 6.1.0 from official site and run the commands below (download, extract, add to PATH, set shortcuts and MIME-association):

mkdir ~/Software
cd  ~/Software
tar -xzf scilab-6.1.0.bin.linux-x86_64.tar.gz
cd scilab-6.1.0
echo "PATH=$PATH:/home/$USER/Software/scilab-6.1.0/bin" >> ~/.bashrc
echo "PATH=$PATH:/home/$USER/Software/scilab-6.1.0/bin" >> ~/.profile
mkdir -p ~/.local/share/applications
cp -a ~/Software/scilab-6.1.0/share/{icons,applications,mime} ~/.local/share/
update-mime-database ~/.local/share/mime/

The ATOMS and other components will work as expected. Do not forget to install build-essential package to run Xcos Modelica simulations.

* AppImage download method (fully-functional)

We need to download the latest release from corresponding page or manually:

mkdir ~/Software
cd ~/Software
chmod +x Scilab-x86_64.AppImage
ln -s Scilab-x86_64.AppImage scilab

and then add it to PATH with

echo "PATH=$PATH:/home/$USER/Software/" >> ~/.bashrc
echo "PATH=$PATH:/home/$USER/Software/" >> ~/.profile

As the result you will get Scilab working. But there is no MIME associations (yet).

If you want to get Scilab 5.5.2 working on Ubuntu 18.04.1 LTS see other answer. But be careful with libcurl4 removal!