Problem embedding python on Red Hat Linux 7.2
Neal Norwitz
neal at metaslash.com
Sat Apr 20 18:59:49 EDT 2002
Ronald Cole wrote:
>
> *newbie alert*
>
> I have a program that calls Py_Initialize() and I cannot compile it
> because I cannot seem to find the python library (-lpython?) in
> /usr/lib to link it with. Here's what Red Hat figured I needed:
>
> $ rpm -qa | grep python
> python-xmlrpc-1.5.1-7.x.3
> python-1.5.2-35
> python-devel-1.5.2-35
> rpm-python-4.0.4-7x
> python-popt-0.8.8-7.x.2
>
> and I've scanned distribution cd's 1 and 2 looking for it but can't
> seem to find any sign of a lib*.{a,so} in the rpms.
>
> Please, someone take pity and clue me!
$ locate libpython
should tell you it's in /usr/lib/python1.5/config/libpython1.5.a
That's where mine is.
Neal
More information about the Python-list
mailing list