Problem installing py26-numpy

Christopher Mutel cmutel at gmail.com
Fri Sep 10 02:45:16 PDT 2010


Dear all-

I am having a problem installing py26-numpy, both 1.5 and 1.4.1. (To
try with 1.4.1, I set up a local repository, and checked out the old
Portfile from svn). The error seems to be:

:info:build error: Command "/usr/bin/gfortran -Wall
build/temp.macosx-10.6-x86_64-2.6/numpy/linalg/lapack_litemodule.o
build/temp.macosx-10.6-x86_64-2.6/numpy/linalg/python_xerbla.o
-L/opt/local/lib -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
-Lbuild/temp.macosx-10.6-x86_64-2.6 -llapack -lptf77blas -lptcblas
-latlas -lgfortran -o
build/lib.macosx-10.6-x86_64-2.6/numpy/linalg/lapack_lite.so" failed
with exit status 1

I attach the full log here:
http://dl.dropbox.com/u/1911208/cmutel-py26-numpy-main.log

If I install with pip, there is no problem. Here is the line from the
pip log that does the same compilation (I think):

    gcc-4.2: numpy/linalg/python_xerbla.c
    gcc-4.2: numpy/linalg/lapack_litemodule.c
    /usr/bin/gcc-4.2 -L/opt/local/lib -bundle -undefined
dynamic_lookup build/temp.macosx-10.6-x86_64-2.6/numpy/linalg/lapack_litemodule.o
build/temp.macosx-10.6-x86_64-2.6/numpy/linalg/python_xerbla.o
-Lbuild/temp.macosx-10.6-x86_64-2.6 -o
build/lib.macosx-10.6-x86_64-2.6/numpy/linalg/lapack_lite.so
-Wl,-framework -Wl,Accelerate

(I don't have enough knowledge to understand why one command is
compiling with fortran, and the other with gcc, but I assume that this
is somehow OK).

I didn't file a bug, as I think this is only a problem with my
machine, but I don't really know how to fix it. I have even tried just
using the pip-installed version, and creating a no-op portfile, but it
apparently wants to put something in staging and then move it, which
doesn't work.

Do any python people have an idea how I can get numpy installed so
that macports is happy (as I use it a lot, and more importantly it is
a dependency for a lot of good python stuff).

Yours, Chris

-- 
############################
Chris Mutel
Ökologisches Systemdesign - Ecological Systems Design
Institut f.Umweltingenieurwissenschaften - Institute for Environmental
Engineering
ETH Zürich - HIF C 42 - Schafmattstr. 6
8093 Zürich

Telefon: +41 44 633 71 45 - Fax: +41 44 633 10 61
############################


More information about the macports-users mailing list