Closed XiangLiu-github closed 1 year ago
You need to set the R_GAMS_SYSDIR in /etc/paths.
e.g. with nano /etc/paths
/Library/Frameworks/GAMS.framework/Versions/41/Resources
The path variable can be in different locations. https://www.gams.com/latest/docs/UG_MAC_INSTALL.html#UG_MAC_PKG_INSTALL
Thanks for your response @flohump
I put the line /Library/Frameworks/GAMS.framework/Versions/41/Resources
into /etc/paths
file and restarted the system. Error still occurred.
I test the GAMS installation by using
gamslib trnsport
gams trnsport
The results seem fine.
If you just run gams
what does the line starting with System Directory
show?
*** GAMS Release : 41.5.0 2a5a4ddc DEX-DEG x86 64bit/macOS
*** Release Date : Jan 3, 2023
*** To use this release, you must have a valid license file for
*** this platform with maintenance expiration date later than
*** Oct 28, 2022
*** System Directory : /Library/Frameworks/GAMS.framework/Versions/41/Resources/
*** License : /Users/xiangliu/Library/Application Support/GAMS/gamslice.txt
Maybe you have to build gdxrrw
and gdx
on your machine because you have an M2 Apple chip.
install.packages("X", repos = "Y", type="source")
Sorry for the mistake, I just realize that I did not restart R. Anyway, Installing from source is still not working.
It turns out Docker and conda saved me.
Hi, Thanks for developing this package.
I want to install magpie for modeling food demand in macOS, M2 chip. I already install GAMS as well as its license.
However, it cannot be loaded.
When I:
It produces:
Here is my session information:
Do you have any idea how to make it work?