gdxrrw Mac OS

questions about GAMS' tools
Post Reply
User avatar
svenne
User
User
Posts: 2
Joined: 6 years ago

gdxrrw Mac OS

Post 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
Freddy
User
User
Posts: 16
Joined: 5 years ago

Re: gdxrrw Mac OS

Post 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")
User avatar
svenne
User
User
Posts: 2
Joined: 6 years ago

Re: gdxrrw Mac OS

Post by svenne »

Excellent! That did the job. Thank you so much!
Fernanda
User
User
Posts: 1
Joined: 3 years ago

Re: gdxrrw Mac OS

Post 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,
lorerubiano
User
User
Posts: 1
Joined: 3 years ago

Re: gdxrrw Mac OS

Post 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
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: gdxrrw Mac OS

Post 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
Post Reply