This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
software-cst-317-2015 [2016/06/20 16:44] gilberto |
software-cst-317-2015 [2016/06/20 17:13] gilberto |
||
---|---|---|---|
Line 19: | Line 19: | ||
=== TerraME installation in Windows === | === TerraME installation in Windows === | ||
- | Please install TerraME in "C:\TerraME" in Windows. | + | - Download the EXE application to your desktop. |
+ | - Doubleclick the EXE application. When prompted for an installation directory, please choose "C:\TerraME". | ||
=== TerraME installation in MAC OS X === | === TerraME installation in MAC OS X === | ||
- | To install TerraME on a MAC, please follow the instructions below: | + | - Download the DMG application to your destktop. |
+ | - Double click the DMG application and move the TerraME icon to the Applications folder. | ||
+ | - In MAC OS X, TerraME should be run from a Terminal. To allow for terminal execution, please add the following line to your ".bash_profile": ''export PATH=$PATH:/Applications/terrame.app/Contents/bin'' | ||
- | - Install homebrew, a package manager for MAC. | ||
- | - install qt5 using homebrew (%brew install qt5) | ||
- | - Download terrame-1.4-mac.tgz from TerraME website | ||
- | - Copy terrame-14.mac.tgz to /usr/local directory (as "sudo") | ||
- | - In /usr/local directory, run the command "sudo tar xzvf terrame-1.4-mac.tgz" | ||
- | - Include the following lines in your ".profile" | ||
- | <code> export TERRAME=/usr/local/terrame | ||
- | export TME_PATH=$TERRAME/bin | ||
- | export PATH=$PATH:$TME_PATH | ||
- | export LUA_PATH="./?.lua;$TME_PATH/?.lua" | ||
- | export LUA_CPATH="$TME_PATH/?.so" | ||
- | </code> | ||
==== Zero Brane Studio: IDE for TerraME ==== | ==== Zero Brane Studio: IDE for TerraME ==== | ||
Line 43: | Line 34: | ||
After you download ZeroBraneStudio (ZBS), please do the following steps: | After you download ZeroBraneStudio (ZBS), please do the following steps: | ||
+ | |||
+ | ===== Zero Brane Studio in Windows ===== | ||
- Configuration file: tells ZBS where to find the TerraME interpreter. Copy the [[http://www.dpi.inpe.br/gilberto/terrame/zerobrane/user.lua | user.lua]] configuration file to the "cfg" folder where you have installed ZBS. In Windows, it is usually "''C:\ZeroBraneStudio\cfg''". In the MAC, the folder is "''/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/cfg''". In Ubuntu, it is "''/opt/zbstudio/cfg''". | - Configuration file: tells ZBS where to find the TerraME interpreter. Copy the [[http://www.dpi.inpe.br/gilberto/terrame/zerobrane/user.lua | user.lua]] configuration file to the "cfg" folder where you have installed ZBS. In Windows, it is usually "''C:\ZeroBraneStudio\cfg''". In the MAC, the folder is "''/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/cfg''". In Ubuntu, it is "''/opt/zbstudio/cfg''". | ||
Line 48: | Line 41: | ||
- Keyword description: tells ZBS to highlight both Lua and TerraME keywords. Copy the [[http://www.dpi.inpe.br/gilberto/terrame/zerobrane/lua.lua | lua.lua]] keyword description file to the "spec" folder where you have installed ZeroBraneStudio. In Windows, this folder is "C:\ZeroBraneStudio\spec".In the MAC, it is "''/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/spec''". In Ubuntu, it is ''/opt/zbstudio/spec''. | - Keyword description: tells ZBS to highlight both Lua and TerraME keywords. Copy the [[http://www.dpi.inpe.br/gilberto/terrame/zerobrane/lua.lua | lua.lua]] keyword description file to the "spec" folder where you have installed ZeroBraneStudio. In Windows, this folder is "C:\ZeroBraneStudio\spec".In the MAC, it is "''/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/spec''". In Ubuntu, it is ''/opt/zbstudio/spec''. | ||
- Optional: delete the other interpreters of ZeroBrane (Corona, Guideros, etc.) and leave only Lua, Lua5.2 and TerraME. | - Optional: delete the other interpreters of ZeroBrane (Corona, Guideros, etc.) and leave only Lua, Lua5.2 and TerraME. | ||
+ | |||
+ | ===== Zero Brane Studio on MAC OS X ===== | ||
==== Additional Packages for TerraME ==== | ==== Additional Packages for TerraME ==== | ||
Line 53: | Line 48: | ||
For this course, we are going to use additional packages: | For this course, we are going to use additional packages: | ||
- | * [[http://www.dpi.inpe.br/gilberto/terrame/sysdyn_0.1.zip | System Dynamics]] - a package for modelling system dynamic problems. | + | * sysdyn - modelling system dynamic problems. |
- | * [[http://www.dpi.inpe.br/gilberto/terrame/sci_0.1.zip | SciTerraME]] - a package for scientific and statistical functions in TerraME. | + | * sci - scientific and statistical functions in TerraME. |
+ | * ca - cellular automata models. | ||
+ | * logo - simple agent-based models. | ||
- | To install these packages, please save the "zip" files to a folder in your computer. Run TerraME, click on the button "Install New Package" and select the files one by one. | + | To install these packages, run TerraME, click on the button "Install Package" and select the files one by one. |