Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gams transfert if installed #14

Open
lolow opened this issue Feb 16, 2023 · 2 comments
Open

Use gams transfert if installed #14

lolow opened this issue Feb 16, 2023 · 2 comments

Comments

@lolow
Copy link
Owner

lolow commented Feb 16, 2023

https://www.gams.com/42/docs/API_R_GAMSTRANSFER.html

@Samu372
Copy link

Samu372 commented Mar 19, 2024

I write this code

library(tidyverse)
library(gdxtools)
igdx(dirname(Sys.which('gams'))) 
mygdx <- gdx('results.gdx')
mygdx

but it gives me this error
Error loading the GDX API from gamsSysDir=
Could not load shared library /Applications/GAMS Studio 46.app/libgdxdclib64.dylib: dlopen(/Applications/GAMS Studio 46.app/libgdxdclib64.dylib, 0x0002): tried: '/Applications/GAMS Studio 46.app/libgdxdclib64.dylib' (no such file), '/System/Volumes/Preboo
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, 0x0002): tried: 'libgdxdclib64.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibgdxdclib64.dylib' (no such file), '/usr/lib/libgdxdclib64.dylib' (no such file, no
DYLD_LIBRARY_PATH is not set!
The GDX library has not been loaded
how can i fix (i'm from mac)?

@lolow
Copy link
Owner Author

lolow commented Mar 19, 2024

Hi @Samu372, thanks for your question.
It seems that you don't have gams in your PATH, so the command igdx fails. Please use one of this path "/Library/Application Support/GAMS" or "/Users/username/Library/Application Support/GAMS" when you call the command igdx, or add the path in your PATH variable.
Unfortunately, I don't have much experience with the MacOS GAMS version. You might find more information at https://www.gams.com/latest/docs/UG_MAC_INSTALL.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants