[GRASS-dev] why java SE runtime is needed to run GRASS in Mac?
Yann
ychemin at gmail.com
Sat Nov 1 04:29:05 PDT 2014
there is a reference to osascript (which really is AppleScript), I don’t know the dependencies of that thing.
The rest seems to be usual *Nix, maybe an eagle eye could see something more...
-----------------------------------------
MacBook:~ yann$ /bin/sh -x `LC_ALL=en_GB.UTF-8 /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/grass.sh`
+ trap 'echo '\''User break!'\'' ; exit' 2 3 9 15
+ GRASS_OS_STARTUP=Mac.app
+ export GRASS_OS_STARTUP
++ uname -p
+ SYSARCH=i386
++ uname -r
++ cut -d . -f 1
+ SYSVER=13
++ dirname /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/grass.sh
+ GISBASE=/Applications/GRASS/GRASS-7.1.app/Contents/MacOS
+ export GISBASE
++ cut -d . -f 1-2 /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/etc/VERSIONNUMBER
+ grass_ver=7.1
+ GRASS_CONFIG_DIR=Library/Preferences/GRASS/
+ GISBASE_USER=/Users/yann/Library/GRASS/7.1
+ export GISBASE_USER
+ GISBASE_SYSTEM=/Library/GRASS/7.1
+ export GISBASE_SYSTEM
+ PATH='-framework GDAL/Library/Frameworks/PROJ.framework/Programs:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/GDAL.framework/Programs:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin'
+ export PATH
+ mkdir -p /Users/yann/Library/GRASS/7.1/Modules/bin
+ mkdir -p /Users/yann/Library/GRASS/7.1/Modules/scripts
+ '[' '!' '' ']'
+ GRASS_ADDON_BASE=/Users/yann/Library/GRASS/7.1/Modules
+ export GRASS_ADDON_BASE
+ mkdir -p /Users/yann/Library/GRASS/7.1/Modules/etc
+ addpath=/Users/yann/Library/GRASS/7.1/Modules/etc:/Library/GRASS/7.1/Modules/etc
+ '[' '' ']'
+ GRASS_ADDON_ETC=/Users/yann/Library/GRASS/7.1/Modules/etc:/Library/GRASS/7.1/Modules/etc
+ export GRASS_ADDON_ETC
+ mkdir -p /Users/yann/Library/GRASS/7.1/Modules/lib
+ addpath=/Users/yann/Library/GRASS/7.1/Modules/lib:/Library/GRASS/7.1/Modules/lib
+ '[' '' ']'
+ DYLD_LIBRARY_PATH=/Users/yann/Library/GRASS/7.1/Modules/lib:/Library/GRASS/7.1/Modules/lib
+ export DYLD_LIBRARY_PATH
+ export DYLD_FRAMEWORK_PATH=/Applications/GRASS/GRASS-7.1.app/Contents/MacOS/lib
+ DYLD_FRAMEWORK_PATH=/Applications/GRASS/GRASS-7.1.app/Contents/MacOS/lib
+ mkdir -p /Users/yann/Library/GRASS/7.1/Modules/docs/html
+ /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/etc/build_html_user_index.sh /Applications/GRASS/GRASS-7.1.app/Contents/MacOS
+ /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/etc/build_gui_user_menu.sh
+ '[' '!' '' ']'
+ GRASS_FONT_CAP=/Users/yann/Library/GRASS/7.1/Modules/etc/fontcap
+ export GRASS_FONT_CAP
+ '[' '!' '' ']'
+ GRASS_XTERM=/Applications/GRASS/GRASS-7.1.app/Contents/MacOS/etc/grass-xterm-mac
+ export GRASS_XTERM
++ osascript -e 'tell application "System Events" to item 1 of (get name of processes whose frontmost is true)'
+ USERTERM=Terminal
+ '[' '!' Terminal ']'
+ x11=
+ '[' '' ']'
+ GRASS_WXBUNDLED=1
+ export GRASS_WXBUNDLED
+ pyexe=pythonw
+ GRASS_PYTHONWX=pythonw
+ pyver_want=2.7
+ GRASS_WX64BIT=0
+ export GRASS_WX64BIT
+ py=
+ '[' '' ']'
+ '[' '!' '' ']'
++ type -p pythonw2.7
+ py=/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
+ '[' /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 ']'
++ /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 -V
++ grep ' 2.7'
+ pyver='Python 2.7.8'
+ '[' '!' 'Python 2.7.8' ']'
+ '[' '!' /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 ']'
+ '[' '!' /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 ']'
+ '[' /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 ']'
+ echo 'Python 2.7.8 found.'
+ GRASS_PYTHONWX=/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
+ export GRASS_PYTHONWX
+ GRASS_PYTHON=python
+ export GRASS_PYTHON
+ GRASSRC=/Users/yann/Library/Preferences/GRASS//rc
+ '[' '!' '' ']'
+ '[' -f /Users/yann/Library/Preferences/GRASS//rc ']'
+ '[' '!' '' ']'
+ GRASS_GUI=wxpython
+ '[' wxpython = text ']'
+ exec /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/bin/python /Applications/GRASS/GRASS-7.1.app/Contents/MacOS/grass71
Cleaning up temporary files...
Starting GRASS GIS...
On Nov 1, 2014, at 15:06, Markus Neteler <neteler at osgeo.org> wrote:
> On Sat, Nov 1, 2014 at 10:32 AM, Yann <ychemin at gmail.com> wrote:
>> Hi,
>>
>> Just trying to run GRASS in Mac:
>>
>> MacBook:~ yann$ LC_ALL=en_GB.UTF-8
>> '/Applications/GRASS/GRASS-7.1.app/Contents/MacOS/grass.sh'
>
> ... interesting that this is still a shell script!
> At this point you can use -x in the first line:
>
> #! /bin/sh -x
>
> to check where that funny Java call comes from.
>
> Markus
More information about the grass-dev
mailing list