From owner-freebsd-ports@FreeBSD.ORG Tue May 15 15:10:48 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B8FE106566B for ; Tue, 15 May 2012 15:10:48 +0000 (UTC) (envelope-from mainland@apeiron.net) Received: from mail.eecs.harvard.edu (eecs-mail.seas.harvard.edu [140.247.173.28]) by mx1.freebsd.org (Postfix) with ESMTP id 13AB98FC17 for ; Tue, 15 May 2012 15:10:47 +0000 (UTC) Received: from hilbert.apeiron.net (host81-142-95-217.in-addr.btopenworld.com [81.142.95.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.eecs.harvard.edu (Postfix) with ESMTP id BECB7B0171; Tue, 15 May 2012 10:42:21 -0400 (EDT) Message-ID: <4FB26B49.2020208@apeiron.net> Date: Tue, 15 May 2012 15:42:17 +0100 From: Geoffrey Mainland User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120427 Thunderbird/12.0 MIME-Version: 1.0 Newsgroups: gmane.os.freebsd.devel.ports To: Norman Khine References: In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: install py-matplotlib fails X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2012 15:10:48 -0000 On 05/13/2012 01:02, Norman Khine wrote: > Hello, I am trying to install the py-matplotlib but get this error: > > BUILDING MATPLOTLIB > matplotlib: 1.0.1 > python: 2.7.3 (default, May 12 2012, 17:36:49) [GCC 4.2.1 > 20070831 patched [FreeBSD]] > platform: freebsd9 > > REQUIRED DEPENDENCIES > numpy: no > * You must install numpy 1.1 or later to build > * matplotlib. > > i have installed numpy > > # pkg_version -v | grep py27-numpy > py27-numpy-1.6.1_1,1 = up-to-date with port > > but running python i get this traceback: > > Python 2.7.3 (default, May 12 2012, 17:36:49) > [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 > Type "help", "copyright", "credits" or "license" for more information. >>>> import numpy > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", > line 137, in > import add_newdocs > File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", > line 9, in > from numpy.lib import add_newdoc > File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", > line 13, in > from polynomial import * > File "/usr/local/lib/python2.7/site-packages/numpy/lib/polynomial.py", > line 17, in > from numpy.linalg import eigvals, lstsq > File "/usr/local/lib/python2.7/site-packages/numpy/linalg/__init__.py", > line 48, in > from linalg import * > File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", > line 23, in > from numpy.linalg import lapack_lite > ImportError: /usr/local/lib/libalapack.so.2: Undefined symbol "cblas_zswap" > > i followed this thread > http://forums.freebsd.org/showthread.php?t=29085 but still no luck. > > what am i missing? > > thanks I've seen numpy fail when installed from a post-GCC 4.5-removal ports tree on a system that has ports that were built from a pre-GCC 4.5-removal ports tree. Mixing the two is bad news. What has worked for some: completely remove numpy, gcc 4.5 *and* gcc 4.6, lapack and blas. Then reinstall numpy and see if "import numpy" works. If that doesn't work, the only thing I can recommend is a port rebuild. Sorry :/ Geoff