[GRASS-dev] Compiling grass 7 svn trunk on OS X

William Kyngesburye woklist at kyngchaos.com
Wed Jan 6 10:19:51 PST 2016


It's probably the new SIP security protection, which makes executables ignore DYLD_LIBRARY_PATH.  Part of GRASS compilation is to run the modules to generate help files.  Since they're not in their install location yet, DYLD_LIBRARY_PATH is needed for them to find the GRASS libraries, but DYLD_LIBRARY_PATH is now ignored, and it fails.

One option is to disable SIP before compilation and reenble it after installation.  I haven't upgraded to El Capitan yet so I don't know the exact way to do this.  Probably in System Prefs-Security.

> On Jan 6, 2016, at 11:06 AM, Rainer M Krug <Rainer at krugs.de> wrote:
> 
> Hi
> 
> I am trying to compile GRASS 7 from svn on OS X El Capitan. I have
...
> ,----
> | 5:37:13 ~/ownCompiled/grass/grass7_trunk/scripts/d.correlate$ make
> | if [ "/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.correlate" != "" ] ; then GISRC=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/demolocation/.grassrc71 GISBASE=/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0 PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:$PATH" PYTHONPATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/etc/python:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:/Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/lib:" LC_ALL=C /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/scripts/d.correlate --html-description < /dev/null | grep -v '</body>\|</html>' > d.correlate.tmp.html ; fi
> | dyld: Library not loaded: /Applications/GRASS-7.1.app/Contents/MacOS/lib/libgrass_gis.7.1.svn.dylib
> |   Referenced from: /Users/rainerkrug/ownCompiled/grass/grass7_trunk/dist.x86_64-apple-darwin15.2.0/bin/g.parser
> |   Reason: image not found
> | make: *** [d.correlate.tmp.html] Error 1
> | rm d.correlate.tmp.html
> `----
> 
> What irritates me is the error message concerning not being able to
> load - which is obvious, as I am still compiling GRASS and haven't
> installed it yet.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy




More information about the grass-dev mailing list