From: <mai...@ya...> - 2004-06-24 18:04:12
|
Dear all, A few days ago, I was trying to install matplotlib into os x 10.2, with the help from John I have managed to get it to work at the end. So please find the following information useful if you are thinking of building one under the os x Jaguar environment. System information: Mac OS X 10.2.8, gcc version 3.1, Apple X11 Beta 3 and Fink installed * make sure zlib, libpng and freetype2 are installed either in /usr/local or /sw. If you are fink user, don't install freetype. If you have, remove it, becuase it will cause confusion for the package to config later on * install Numeric or numarray (I did it through fink, no problem) and change the NUMERIX setting in setup.py and .matplotlibrc accordingly * I have also installed pygtk through fink as my alternative GUI framework (you don't have to if you don't want it). If you do, you need to add an extra line onto your .cshrc or .tcshrc to tell where pkgconfig is on your path (I did the installation through fink) setenv PKG_CONFIG_PATH "/sw/lib/pkgconfig" * Now X11, if you are using Apple X11 Beta 3, you also need the X11 SDK installed. Then if you haven't done it, you should also install system-xfree86-42 through fink so that all the required header files will be in /usr/X11R6/include/X11 and all the library files will be in /sw directory Up to this point if you don't do anything on the path setting for the X11 header files, you would get errors like tk.h/tcl.h couldn't find the X11/Xlib.h file when you compile. There are two ways to tackle this, depending your own preference. I believe they both work eventually. 1) create symbolic link from /usr/X11R6/include/X11 to /sw/include/X11, I think the command is like this (correct me if I am wrong) ln -s /usr/X11R6/include/X11 /sw/include/ 2) include /usr/X11R6/include/X11 as basedir into your setupext.py of matplotlib * change the basdir in setupext.py into either 'darwin':['/sw'] or 'darwin':['/usr/X11R6/include/X11','/sw'] according to what you did in previous step * type 'python setup.py insatll' in root mode or type 'sudo python setup.py install' otherwise, sit back and the installation process should go smoothly Cheers, Denis ___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com |