[GIS] How to install gvSIG on Ubuntu 16.04

gvsigUbuntu

I am trying to install gvSIG on Ubuntu 16.04. I would prefer to use the package management system, but it seems this programme has never been packaged.

Therefore I went to the website and downloaded the .run file that is labelled for Ubuntu 16.04. Then I tried to run it:

$ chmod +x ./gvSIG-desktop-2.3.1-2501-final-lin_ubuntu_16.04-x86_64-standard.run

$ sh ./gvSIG-desktop-2.3.1-2501-final-lin_ubuntu_16.04-x86_64-standard.run
./gvSIG-desktop-2.3.1-2501-final-lin_ubuntu_16.04-x86_64-standard.run: 1: ./gvSIG-desktop-2.3.1-2501-final-lin_ubuntu_16.04-x86_64-standard.run: Syntax error: "(" unexpected

So this does not work either. Are there any other options?

Update

As Mario explains below, the .run file is an installation executable that must be run directly. That way the installer fires up correctly and, apparently, installs gvSIG (I left all options by default). However, gvSIG itself is not functional the .run is done. It outputs the following:

$ sh /opt/gvSIG-desktop/gvSIG-desktop-2.3.1/gvSIG.sh 
[...] 
INFO launch Running autorun from plugin  org.gvsig.scripting.app.mainplugin 
/opt/gvSIG-desktop/gvSIG-desktop-2.3.1/gvSIG.sh: 110: [: ==: unexpected operator 
mkdir: missing operand 
Try 'mkdir --help' for more information.

The full output is available here.

I understand something else is missing in the installation.

Best Answer

You only have to run:

$ ./gvSIG-desktop-2.3.1-2501-final-lin_ubuntu_16.04-x86_64-standard.run

without sh, because it's not a shell script but a binary.

Running the programme also dispenses the sh:

$ /path/to/install/folder/gvSIG.sh
Related Question