On 22/12/2010 9:33, Benedict Verheyen wrote:
> Hi,
> 
> 
> i'm trying to compile Python 2.7.1 on Debian (Virtual Box).
> Compiling end successfully but readline and curses fail to build.
> 
> I'm working with virtualenv and I install all my packages in $HOME/local.
> I've downloaded readline, compiled and installed it in $HOME/local, same with 
> ncurses.
> Both were the latest releases.
> But somehow, Python isn't able to build them.
> 
> I get this message:
> 
> Failed to build these modules:
> _curses    _curses_panel    readline
> 
> So it does seems to find the modules.
> I'm not used to dealing with configure, and make so i can't debug much.
> I first tried this configure line:
> ./configure --enable-shared --prefix=$HOME/local
> 
> Next i tried this one:
> env CPPFLAGS="-I$HOME/local/include" LDFLAGS="-L$HOME/local/lib" ./configure 
> --enable-shared --prefix=$HOME/local
> 
> But make yields the same error.
> 
> Any clues on what I do wrong?
> 
> The source of ncurses and readline are placed in $HOME/src.
> Both packages are installed in $HOME/local
> 
> Thanks for any advice,
> 
> Regards,
> Benedict
> 

I found some additional info here:
http://www.velocityreviews.com/forums/t733455-problem-building-python-2-7-with-enable-shared.html

The error "-collect2: ld returned 1 exit status" is the same error as I'm 
getting.

So what happens is that linking to python2.7 during make, doesn't link to the 
freshly build
library, but to the existing in the system.

Is there any solution for this?
Or an option i can add to make/config?

Cheers,
Benedict

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to