On 10 June 2010 03:22, John Hunter <jdh2...@gmail.com> wrote: > On Wed, Jun 9, 2010 at 9:15 PM, John Hunter <jdh2...@gmail.com> wrote: > >> * sys.platform != 'darwin' on the box you are building on. In this >> case you need to modify your patch to include sys.platform. This is >> the most likely culprit as far as I can see. > > Sorry, upon rereading your post, I see you are building on a solaris > platform and not an OSX platform. It does look like you need an entry > in basedir that maps your solaris sys.platform -> [sage_lib]. > Presumably this is 'sunos5'. > > JDH
Hi, thank you for the suggestions here. There is a directory in sage with .pc files. It is local/lib/pkgconfig, which includes the file ./local/lib/pkgconfig/freetype2.pc, which has in it drkir...@redstart:~/32/sage-4.4.3$ cat ./local/lib/pkgconfig/freetype2.pc prefix=/export/home/drkirkby/32/sage-4.4.3/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: FreeType 2 Description: A free, high-quality, and portable font engine. Version: 9.16.3 Requires: Libs: -L${libdir} -lfreetype -lz Cflags: -I${includedir}/freetype2 -I${includedir} It would seem from the information you provided that Sage should be setting PKG_CONFIG_PATH to $SAGE_LOCAL/lib/pkgconfig, which it is *not* doing. I could obviously set that on my machine, but that is hardly the point. Others could get this problem too. This looks like something that should be set globally for all Sage users. On the machine I find drkir...@redstart:~$ /usr/bin/pkg-config --modversion --cflags --libs freetype2 9.7.3 -I/usr/sfw/include/freetype2 -R/usr/sfw/lib -L/usr/sfw/lib -lfreetype so that explains I think why matplotlib is finding freetpe2 version 9.7.3 and not the version in Sage. It seems rather odd, but the version of freetype2 on my machine in /usr/sfw is 9.7.3, whereas Sage includes version 2.3.5 and the current version is 2.3.15. How I can have a larger version number than the latest from the freetype web site on a 5-year old distribution of Solaris is rather odd, but that seems to be the case drkir...@redstart:~$ cat /usr/lib/pkgconfig/freetype2.pc prefix=/usr/sfw exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: FreeType 2 Description: A free, high-quality, and portable font engine. Version: 9.7.3 Requires: Libs: -L${libdir} -R${libdir} -lfreetype Cflags: -I${includedir}/freetype2 Perhaps that file has an error in it, or perhaps freetype2 at one point decided to change their version numbering in a rather odd way, going backwards! I've tried the following - none of which avoid matplotlib finding the version of freetype on my system and not the one in Sage. 1) $ export PKG_CONFIG_PATH=/export/home/drkirkby/32/sage-4.4.3/local/pkgconfig 2) Edit setupext.py and set basedir = { ... 'sunos5' : [sage_lib], ... } 3) Create a new variable sage_local = os.environ['SAGE_LOCAL'] then edit setupext.p to say basedir = { ... 'sunos5' : [sage_local], ... } Any other ideas? -- 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