Page 1 of 1

gdxrrw Mac OS

Posted: Wed Apr 08, 2020 6:19 pm
by svenne
Dear group,

I am using Mac OS 10.15.4 (19E266), GAMS 30.3, R version 3.6.1 (2019-07-05), and downloaded gdxrrw 1.0.5. I have the feeling that installation was successful since I do not get any error message even loading the package in R. However, I have trouble to point to the GDX API.

Any suggestions?

Best
Sven

Here is what I do and get:
> library(gdxrrw)
> igdx()
The GDX library has not been loaded
> igdx("/Applications/GAMS30.3")
Error loading the GDX API from gamsSysDir=/Applications/GAMS30.3
Could not load shared library /Applications/GAMS30.3/libgdxdclib64.dylib: dlopen(/Applications/GAMS30.3/libgdxdclib64.dylib, 2): image not found
Environment variable R_GAMS_SYSDIR not set: no GDX API there
Error loading the GDX API via the default shared library search mechanism
Could not load shared library libgdxdclib64.dylib: dlopen(libgdxdclib64.dylib, 2): image not found
DYLD_LIBRARY_PATH is not set!
The GDX library has not been loaded

Re: gdxrrw Mac OS

Posted: Wed Apr 08, 2020 6:25 pm
by Freddy
Hello. The problem is that the gdx library is not in the path you specified. Instead, use:

Code: Select all

igdx("/Applications/GAMS30.3/Resources/sysdir")

Re: gdxrrw Mac OS

Posted: Wed Apr 08, 2020 9:29 pm
by svenne
Excellent! That did the job. Thank you so much!

Re: gdxrrw Mac OS

Posted: Fri Jan 29, 2021 7:06 am
by Fernanda
Hello,

I have a similar problem to that of Sven. I am using Mac OS Big Sur, GAMS 27.3, RStudio Version 1.3.1093, and gdxrrw 1.0.8. I cannot point to GDX API either, though I believe that I have specified the gdx library.

I have:
> library(gdxrrw)
> igdx()
The GDX library has not been loaded
> igdx("/Applications/GAMS27.3/sysdir")
Error loading the GDX API from gamsSysDir=/Applications/GAMS27.3/sysdir
Could not load symbol 'gdxStoreDomainSets': gdxdclib: gdxStoreDomainSets cannot be found in the library.
Environment variable R_GAMS_SYSDIR not set: no GDX API there
Error loading the GDX API via the default shared library search mechanism
Could not load shared library libgdxdclib64.dylib: dlopen(libgdxdclib64.dylib, 2): image not found
DYLD_LIBRARY_PATH is not set!
The GDX library has not been loaded

Any suggestions?
Thanks,

Re: gdxrrw Mac OS

Posted: Tue Mar 30, 2021 10:27 am
by lorerubiano
Dear all,

I am using Mac OS big Sur 11.2.3, GAMS 34.3, RStudio Version 1.4.1106, and downloaded gdxrrw 1.0.8. I think that installation was successful. However, I have trouble to point to the GDX API.

I am doing
igdx("/Applications/GAMS34.3/Resources/sysdir")

Any suggestions?

Best
Lorena

Here is what I do and get:
Error loading the GDX API from gamsSysDir=/Users/lreyes/Documents/GAMS/Studio/workspace
Could not load shared library /Users/lreyes/Documents/GAMS/Studio/workspace/libgdxdclib64.dylib: dlopen(/Users/lreyes/Documents/GAMS/Studio/workspace/libgdxdclib64.dylib, 2): image not found
Environment variable R_GAMS_SYSDIR not set: no GDX API there
Error loading the GDX API via the default shared library search mechanism
Could not load shared library libgdxdclib64.dylib: dlopen(libgdxdclib64.dylib, 2): image not found
DYLD_LIBRARY_PATH is not set!
The GDX library has not been loaded

Re: gdxrrw Mac OS

Posted: Wed Mar 31, 2021 8:20 pm
by dirkse
Lorena,

Did you check that you actually have a GAMS system installed in the directory "/Applications/GAMS34.3/Resources/sysdir" ? If there is no GAMS system there, then calling igdx() with this directory won't help locate the GDX shared library.

For recent GAMS systems, the location has moved to /Library/Frameworks/GAMS.framework/Versions/blahBlahBlah. For example, this is what I see with GAMS 33 on my Mac:

Code: Select all

pete:/Users/sdirkse$type gams
gams is /Library/Frameworks/GAMS.framework/Versions/33/Resources/gams
-Steve