On 26 Sep., 22:36, leif <not.rea...@online.de> wrote: > On 26 Sep., 18:28, Rob Gross <robert.gross.1...@gmail.com> wrote: > > Hmmm, > > > This is odd. Neither of the following worked. > > > On Sep 24, 12:05 pm, leif <not.rea...@online.de> wrote: > > > > On 24 Sep., 17:32, leif <not.rea...@online.de> wrote: > > > > You could try setting SAGE64 (which is in general useless on MacOS X > > > 10.6, since it defaults to 64-bit builds), and rebuilding gd and all > > > of its dependencies > > > (which may take a while), by typing: > > > > $ export SAGE64=yes > > > $ cd $SAGE_ROOT > > > $ rm spkg/installed/gd-* > > > $ env SAGE_UPGRADING=yes make build > > > Did that, waited for around ten minutes for the compile to finish, and > > then had the same error: > > > ImportError: dlopen(/Users/gross/sage-4.7.1/local/lib/python2.6/ > > site-packages/sage/matrix/matrix_mod2_dense.so, 2): Library not > > loaded: /usr/local/lib/libfreetype.6.dylib > > Referenced from: /Users/gross/sage-4.7.1/local/lib//libgd.2.dylib > > Reason: Incompatible library version: libgd.2.dylib requires version > > 14.0.0 or later, but libfreetype.6.dylib provides version 10.0.0 > > > > Alternatively, instead of setting SAGE64, you could just set / modify > > > LDFLAGS as mentioned: > > > > $ export LDFLAGS="-L$SAGE_ROOT/local/lib $LDFLAGS" > > > > and proceed with the remaining three steps given above. > > > Same result. > > Sorry, forgot: > > In general, you'd also have to do > > $ ./sage -ba-force > > to rebuild the whole Sage library; otherwise some extension modules > might still reference the wrong library. > > But this seems to not be the reason in this case. > > Perhaps also check what compiler-related variables Python has set (for > distutils).
P.S.: More likely, it's an XCode setup problem (or your "global" environment outside of Sage), such that -L/usr/local/lib always gets prepended to linker commands. -leif -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org