Re: [Matplotlib-users] Problem installing matplotlib
On 8/25/10 3:53 AM, Joses Ho wrote: > Hi, > > I run Mac OS X 10.6.4 with the official Python 2.6.3 distribution. I have > already installed NumPy ver 1.4.1. > > I downloaded and unzipped the matplotlib-1.0.0.tar.gz from the SourceForge > site. > > When I enter the command : > python setup.py install > > It finally gives me the following error right at the end of a huge chunk of > output: > > lipo: can't figure out the architecture type of: > /var/folders/mC/mC4L2rRBGEChqn7bv1iNdTI/-Tmp-//cc0Tc9za.out > error: command 'gcc-4.0' failed with exit status 1 > > Any help here would be much appreciated. > > Thanks, > Joses Joses: gcc-4.2 is the default compiler for 10.6 - I wonder if you need to upgrade your dev tools? Xcode 3.2.2 is available for download (free with registration) from Apple. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : jeffrey.s.whita...@noaa.gov 325 BroadwayOffice : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problem installing matplotlib
2010/8/25 Jeff Whitaker : > gcc-4.2 is the default compiler for 10.6 - I wonder if you need to > upgrade your dev tools? Xcode 3.2.2 is available for download (free > with registration) from Apple. No, he's using Python.org Python I believe, and that was compiled with gcc-4.0. So distutils picks up gcc-4.0, and that is correct. Joses, can you give some more lines of the output, or post the complete log in some pastebin? Please give the output starting from the offending gcc call at least. I just do not recall atm what the problem is people have when coming with this issue, so please help me a little ;-) python setup.py build (or install) is a good approach, it gives you more control than make.osx. Be aware of that nevertheless the official approach others on this list will recommend seems to be make.osx (sorry John), and most people use that. But make.osx afaik **installs libraries in your /usr/local directory without asking you if you want that**, if you do not take special care before (John, please correct me if I'm wrong here! But it is what I remember from my glimpse into make.osx). Bear that in mind. I believe it's better to compile the libs (like freetype and pnglib) yourself where you know what you're doing. So, have you compiled at all and if yes using which compiler freetype2 and libpng 1.4? The records of this list are outdated in that respect that *no* additional tuning is necessary with mpl 1.0 now to use libpng 1.4 instead of the older 1.2. When mpl setup.py starts there is a section between == lines, can you please post also that. Ah, and for sure you should modify your setupext.py, search for 'darwin' and add in the dictionary entry you will find, '/usr/local' to the list of the dict value for the key 'darwin'. Then the libs installed will be found. Before this is unlikely. Friedrich -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem installing matplotlib on centos
On Wednesday, May 30, 2012, Amanda Stott wrote: > Hello, > > I am trying to build matplotlib from source on CentOS. I have installed > all the dependencies, including numpy, freetype, libpng, etc. I also have > both the C and C++ compiler (gcc and cgg-c++) installed in /usr/lib/. > However when running python setup.py install I get the following error > message: > > pymods ['pylab'] > packages ['matplotlib', 'matplotlib.backends', > 'matplotlib.backends.qt4_editor', 'matplotlib.projections', > 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', > 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', > 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', > 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz', > 'dateutil', 'dateutil.zoneinfo'] > running install > running build > running build_py > copying lib/matplotlib/mpl-data/matplotlibrc -> > build/lib.linux-x86_64-2.4/matplotlib/mpl-data > copying lib/matplotlib/mpl-data/matplotlib.conf -> > build/lib.linux-x86_64-2.4/matplotlib/mpl-data > running build_ext > building 'matplotlib.ft2font' extension > c++ -pthread -shared build/temp.linux-x86_64-2.4/src/ft2font.o > build/temp.linux-x86_64-2.4/src/mplutils.o > build/temp.linux-x86_64-2.4/CXX/IndirectPythonInterface.o > build/temp.linux-x86_64-2.4/CXX/cxxsupport.o > build/temp.linux-x86_64-2.4/CXX/cxx_extensions.o > build/temp.linux-x86_64-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib > -L/usr/local/lib64 -L/usr/lib64 -lfreetype -lz -lstdc++ -lm -o > build/lib.linux-x86_64-2.4/matplotlib/ft2font.so > /usr/bin/ld: cannot find -lz > collect2: ld returned 1 exit status > error: command 'c++' failed with exit status 1 > > I have scoured the web with no solution. Please HELP! > > Thanks, > > -- > Amanda Stott > > The error indicates that it can't find libz, which is extremely odd because if you didnt have it, then most everything else would never work. Which centos are you using? How did you install your dependencies? Ben Root -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)
In article <21110.62791.44734.656...@cochabamba.vanoostrum.org>, Piet van Oostrum wrote: > I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 > and 3.3.3. [...] Please open an issue on the Python bug tracker for the Python component of this. http://bugs.python.org -- Ned Deily, n...@acm.org -- Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users