Thanks Matthias... got it working where I needed it to.
Also - another hint that was mentioned in the online docs you pointed me to was to start an app from the shell... so:
open -a Smultron
pulled in all the env vars in my .bash_profile . Just thought I would mention it as another possible approach.
Best,
Josh
On Sep 2, 2008, at 1:41 AM, Matthias Neeracher wrote: I was wondering if anyone else has seen this. I compiled lilypond according to the instructions here (thanks by the way!):
I used MacPorts for the dependencies. Running lilypond from the command line works great, and I have it loaded into my path without a problem. Running inside Terminal is fine (as is running from Aquamacs Emacs...).
However, when I try to run it within another program (e.g. Smultron) I get this error:
/opt/local/share/guile/1.8/srfi/srfi-1.scm:223:1: In procedure dynamic-link in _expression_ (load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1"): /opt/local/share/guile/1.8/srfi/srfi-1.scm:223:1: file: "libguile-srfi-srfi-1-v-3", message: "dlopen(libguile-srfi-srfi-1-v-3.so, 9): image not found"
Any ideas?
Mac applications by default run in a very limited environment (Both Terminal and Aquamacs go extra steps to provide a login shell experience to subprocesses). Your alternatives are:
1) Wrap the lilypond invocation in a login shell:
/bin/sh -l lilypond whatever.ly
2) Add the necessary environment variables to your global environment.plist, as described in
Why would anything compiled on a mac be looking for an .so lib instead of a .dylib?
I wouldn't pay too much attention to that detail, it may just be an idiosyncrasy of the error message.
Matthias
****************************************** /* Joshua D. Parmenter http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono */ |