GAMS-dev / studio

GAMS Studio
https://www.gams.com/latest/docs/T_STUDIO.html
GNU General Public License v3.0
36 stars 5 forks source link

Error [18:46:55]: Could not find GAMS #187

Closed cchrisgong closed 4 years ago

cchrisgong commented 4 years ago

I have Ubuntu 19.10 and R 3.6.1. I installed GAMS and could run GAMS code from the command line. The trouble started when I wanted to install GAMS Studio. My GAMS path is currently opt/gams/gams30.2_linux_x64_64_sfx, and it is in the PATH variable. I tried to launch the AppImage from the directory opt/gams/gams30.2_linux_x64_64_sfx/studio but I get an error: in GUI it says "Could Not display studio.AppImage" and in command line it says

"QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' [32166:32166:0222/185342.241885:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180."

I tried

" chmod a+x studio.AppImage " It didn't fix it. And then I tried

" ./studio.AppImage --no-sandbox " and I got "Unknown option 'no-sandbox'."

Now stuck since I couldn't find a lot of info with these, so I copied the AppImage file directly to the home directory (without root permission necessary) and I could launch the studio.AppImage file and I see the interface. However, it seems that now the studio cannot find GAMS because when I now run a gms file in the studio, it returns the error message

"Error [18:46:55]: Could not find GAMS"

So I suppose I have to now tell studio where GAMS is, but I don't know how to do that.

Any info would be great!

cchrisgong commented 4 years ago

I solved it by changing the permission for the folder not just the AppImage file.