[Numpy-discussion] setup.py does not use the correct library
Mon Sep 28 16:27:06 CDT 2009
On Mon, Sep 28, 2009 at 2:53 PM, Robert Kern <email@example.com> wrote:
> On Mon, Sep 28, 2009 at 14:31, Peng Yu <firstname.lastname@example.org> wrote:
>> I use the following command to build numpy-1.3.0rc2. But it seems not
>> able to find the appropriate library files. Can somebody let me know
>> how to make it use the correct ones?
>> export LD_LBRARY_PATH=
>> export CPPFLAGS="-I$HOME/utility/linux/opt/Python-2.6.2/include/python2.6"
>> export LDFLAGS="-L$HOME/utility/linux/opt/Python-2.6.2/lib -lpython2.6"
> When compiling Fortran extensions, $LDFLAGS replaces every linker
> flag, including things like -shared. Be sure you know what you are
> doing when using this.
> But you really shouldn't have to be using $LDFLAGS or $CPPFLAGS like
> this. Python should know where its libraries and include directories
My python is compiled with gcc-3.4.4. I used gcc-4.1.2 which generate
the error in my previous email. Do I have to use the same compiler to
More information about the NumPy-Discussion