William Stein wrote: > On Sat, Sep 27, 2008 at 5:51 PM, mabshoff > <[EMAIL PROTECTED]> wrote: >> >> >> On Sep 27, 5:41 pm, John H Palmieri <[EMAIL PROTECTED]> wrote: >>> Can anyone else reproduce this? >> I can't since I do not have convert on a Mac, but the problem is that >> we switched to a dynamic libpng. The solution is: >> >> * create a convert script in $SAGE_LOCAL/bin >> * set DYLD_LIBRARY_PATH to SAGE_ORIG_DYLD_LIBRARY_PATH >> * call convert with an absolute path (use "which convert" from >> outside Sage) and pass on all parameters (i.e. /use/local/foo/convert >> "$@") >> >> We should probably do that automatically on OSX for convert, emacs and >> the other usual suspects. The problem boils down to Apple renaming >> some of the symbols in libpng and creating libPng.dylib in the >> process. > > The right solution, which we've probably halfway already done > if I remember correctly, is to write a Sage function called > "run_command" that resets the environment as you suggest > above, runs the subcommand, and returns. This should be > completely transparent to the user, and should do the right > thing on Linux, OS X, etc. Then the animate command > would call convert via run_command instead of os.system.
See http://trac.sagemath.org/sage_trac/ticket/975 for a solution that is already put in place. Basically, use $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what mabshoff says above. Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---