3

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.

  • I think that you also need superuser privileges with 'sudo' to install gvSIG on Ubuntu 16.04. – xunilk Feb 14 '17 at 11:12
4

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
  • Hi Mario, welcome to StackExchange. I was indeed able to run the install script this way, but still I do not get a functional gvSIG installation. Please check the update to the question. – Luís de Sousa Feb 14 '17 at 10:29
  • Just for posterior clarity: It's the same answer, just a different reason. You're explicitly calling it via sh, while the script expects bash or something else (hence the syntax error). sh is linked to dash on ubuntu. – lynxlynxlynx May 29 '18 at 19:23
2

If you don't know you have a portable version. Very useful if you have problems with the installation.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

-1

It is important to be sure the .run file has permission to run. Go to the .run file, right-click it and under “Properties”. Check the box to allow the execution of this file.

  • Welcome! He already made the file executable by the chmod call seen in the question, so this wouldn't help. – lynxlynxlynx May 29 '18 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.