Cannot run Linux-Portable without manual corrections

sm8ps shared this question 7 years ago
Answered

I downloaded GeoGebra-Linux-Portable-4.9.{266,267}.0.tar.bz2, unpacked the archives and tried to run 'sh geogebra-portable'. That did not work but resulted in

"./geogebra-portable: 14: ./geogebra-portable: Bad substitution"


So I had to 'chmod +x geogebra-portable' before I could run './geogebra-portable'. That resulted in "Error: missing `server' JVM at `/home/stefan/Downloads/firefox/GeoGebra-Linux-Portable-4.9.266.0/jre1.7.0_45-i686/lib/i386/server/libjvm.so'.

Please install or use the JRE or JDK that contains these missing components."


Thanks to tmelorc's post from Fri Feb 14, 2014 5:34 pm in 'http://www.geogebra.org/forum/viewtopic.php?f=52&t=34749&hilit=linux' I understood that I had to manually copy the folder '(...)/i386/client' into '(...)/i386/server', thus duplicating it. After that GeoGebra started fine.


This looks like an omission by the packagers. I suggest to have the following set before packaging:

1.) chmod +x geogebra-portable

2.) cp (...)/i386/client (...)/i386/server


That way people do not have to scratch their heads just to get the software running.


Cheers!

sm

Comments (4)

photo
1

Hi, i don't have such a problem using after unpacked within say /home/miir/<directory> :

run, within the /home/miir/<directory>/GeoGebra-Linux-Portable-4.9.267.0, './geogebra-portable'

or/and

run '/home/miir/<directory>/GeoGebra-Linux-Portable-4.9.267.0/geogebra-portable'

photo
1

Thank you for reporting this issue!

I downloaded GeoGebra-Linux-Portable-4.9.{266,267}.0.tar.bz2, unpacked the archives and tried to run 'sh geogebra-portable'.
Instead of using "sh", here you need "bash". However, "./geogebra-portable" should also be OK. Maybe your unpacking software made a mistake by forgetting to keep the executable bit of the geogebra-portable script (it is already set). Another reason may be that you use a non-compatible filesystem (e.g. FAT32 or NTFS) which does not store the executable bit. However, later you managed to change that bit manually, thus this sounds strange.
Thanks to tmelorc's post from Fri Feb 14, 2014 5:34 pm in 'http://www.geogebra.org/forum/viewtopic.php?f=52&t=34749&hilit=linux' I understood that I had to manually copy the folder '(...)/i386/client' into '(...)/i386/server', thus duplicating it. After that GeoGebra started fine.
Thanks for pointing this out. We'll fix this bug soon.


Best, Zoltan

photo
1

Please check the latest version at http://download.geogebra.or....

photo
1

Hello. I've got some of the problems discussed here:

I downloaded GeoGebra-Linux-Portable-4.4.43.0.


- If I extract it with the default extractor of Lubuntu 14.04 (Archive Manager?), I need to make three files executable again: geogebra-portable, geogebra/geogebra, and jre1.7.0_45-i686/bin/java

Then I can run it.


- But my aim is to put and use Geogebra-portable on my usb stick, which is in fat32 since I also use it on Windows. I understand it's a fat32 problem, but as far as I remember, it did work on my previous system, but doesn't work anymore (I get the text of the script instead of its execution). I read and tried this solution (creating a new udev rule, since I'd like my usb stick to auto-mount as all executable) but, for me, it didn't work. And I don't feel confident enough to change fstab with instructions I don't understand, so I'm still looking for a (permanent) solution to this general problem.


Now, regarding Geogebra again, when I type in a terminal: bash ./geogebra-portable

I get: ./geogebra-portable: ligne 39: [...] /Geogebra/GeoGebra-Linux-Portable-4.4.43.0/geogebra/geogebra: Permission non accordée

(i.e. forbidden, not about the first but the second file: geogebra/geogebra)

By the way, sudo doesn't change anything (I thought root had all rights).

© 2021 International GeoGebra Institute