To
install Matplotlib, I have to install numpy first. To install numpy, I need GCC. Lion installer package didn't come with XCode, it has to be downloaded separately from MacAppStore for free. I don't dare to even trying it with my sluggish itnternet connection, so I tried others possibility without success untill I found my SnowLeopard DVD.
Finally, I am able to install GCC. I used XCode 3.2 on Snow Leopard DVD in Lion, :). So, the journey is continue…
Check (just for show off, :))
Nugrohos-MacBook-Pro:mysite nugroho$ gccgcc gcc-4.0 gcc-4.2 gccmakedep Nugrohos-MacBook-Pro:mysite nugroho$ gccNow install numpy, oh no… look at this.
Last login: Sun Dec 11 19:11:11 from 192.168.2.2Nugrohos-MacBook-Pro:mysite nugroho$ pip install numpyDownloading/unpacking numpy Downloading numpy-1.6.1.tar.gz (2.6Mb): 2.6Mb downloaded Running setup.py egg_info for package numpy Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']…… building extension "numpy.core._sort" sources adding 'build/src.macosx-10.6-intel-2.7/numpy/core/include/numpy/config.h' to sources. adding 'build/src.macosx-10.6-intel-2.7/numpy/core/py/core/include/numpy/__multiarray_api.h'] building extension "numpy.core.multiarray" sources adding 'build/src.macosx-10.6-intel-2.7/numpy/core/include/numpy/config.h' to sources.……error: could not delete '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__config__.py': Permission denied…It's look like my gcc think it's on Snow Leopard platform, :(. But, there is small hope; the error warning just mentions permission, hm, how about sudo?
ok, let's try again
Nugrohos-MacBook-Pro:mysite nugroho$ sudo pip install numpyPassword:Downloading/unpacking numpy Running setup.py egg_info for package numpy Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'…… adding 'build/scripts.macosx-10.6-intel-2.7/f2py' to scripts changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/f2py to 755Successfully installed numpyCleaning up...Nugrohos-MacBook-Pro:mysite nugroho$ hm, still in doubt
Nugrohos-MacBook-Pro:mysite nugroho$ pythonPython 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import numpy>>> yeahh…
(don't know if it works as it compiled using GCC designed for Snow Leopard. At least no news is good news, :) )
So here it is
Nugrohos-MacBook-Pro:mysite nugroho$ pip install matplotlibDownloading/unpacking matplotlib Downloading matplotlib-1.0.1.tar.gz (13.3Mb): 13.3Mb downloaded…BUILDING MATPLOTLIB matplotlib: 1.0.1 python: 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwinREQUIRED DEPENDENCIES numpy: 1.6.1 freetype2: found, but unknown version (no pkg-config) * WARNING: Could not find 'freetype2' headers in any * of '.', './freetype2'.OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) * Could not find 'libpng' headers in any of '.'----------------------------------------Command python setup.py egg_info failed with error code 1Storing complete log in /Users/nugroho/.pip/pip.logNugrohos-MacBook-Pro:mysite nugroho$ Hm, still long way to go, have to install freetype2 and lbpng. Ugh…