I have in my .bash_profile a variable called DYLD_LIBRARY_PATH set to ImageMagik. You mentioned a DYLD_FALLBACK_LIBRARY_PATH. Do I need to add this? What do I set it to? NIRT failed and it mentioned DYLD path.


From: Christopher Sean Morrison [mailto:brlcad@mac.com]
Sent: Wednesday, January 30, 2013 11:47 AM
To: BRL-CAD Developer Mailing List
Subject: Re: [brlcad-devel] Running BRLCAD 7.22 on MAC OSX from terminal



On Jan 30, 2013, at 10:45 AM, Bob Anderson <bob.anderson@survice.com> wrote:

Hi Sean,


I was pleased to see an updated BRLCAD version for MAC. I was also pleased that it installed like a typical mac app. However, the install did not put any path in the .bash_profile file that would allow me to run MGED from the terminal command line. I attempted to put the /bin and /lib directories in the PATH variable, but it did not seem to work.  What am I missing? Any assistance would be much appreciated.



Hi Bob, thanks for the feedback on the app.  It was sort of a quick "hey, I wonder ..." test before release to see if I could pull together a pretty drag-n-drop release quickly.  I've been loving it myself now that I can double-click .g files and launch mged by dragging them on the app, but there are some loose ends to be sorted out.  The path is one of them.


You can add it to your path, but notice the ':' in the application name.  That's a tricky problem since you have to escape the colon.  Even once you add it to your path, though, you also end up needing to set the DYLD_FALLBACK_LIBRARY_PATH variable too so that it finds the runtime libraries.


All that said, the easiest solution is to create a symbolic link.  First, create or go to /usr/brlcad:


sudo mkdir -p /usr/brlcad

cd /usr/brlcad


Then create a link into the application bundle for that version:


sudo ln -s /Applications/BRL-CAD\ :\ MGED\ 7.22.0.app/Contents/Resources/rel-7.22.0

Tab completion may help there in case I wrote the path wrong or you have it located somewhere else.  Once the link is created, it should all work if you add /usr/brlcad/rel-7.22.0/bin to your PATH.