[Python-de] Python Test schlägt fehl in configure Skript

Berthold Höllmann bhoel at despammed.com
Fr Jan 25 00:04:31 CET 2013


Malte Gell <malte.gell at gmail.com> writes:

> Am 24.01.2013 08:44, schrieb Rüdiger Ranft:
>
>> Wenn dies geht, libpython2.7:
>> 
>> cat <<EOF > bar.c
>> #include <Python.h>
>> 
>> int main()
>> {
>>     Py_Initialize();
>>     return 0;
>> }
>> EOF
>> gcc -I/usr/include/python2.7 bar.c -lpython2.7
>
> Ergänzung zur Mail von eben:
>
> Wenn ich ein ldd auf libpython2.7 mache, dann sind aber alle libs vorhanden:
>
> ldd /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libpython2.7.so
>
> ldd: warning: you do not have execution permission for
> `/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libpython2.7.so'
>         linux-vdso.so.1 (0x00007fff237ff000)
>         /opt/lib/libmediaclient.so (0x00007fe172de6000)
>         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe172b4e000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00007fe17294a000)
>         libutil.so.1 => /lib64/libutil.so.1 (0x00007fe172747000)
>         libm.so.6 => /lib64/libm.so.6 (0x00007fe17244f000)
>         libc.so.6 => /lib64/libc.so.6 (0x00007fe1720aa000)
>         librt.so.1 => /lib64/librt.so.1 (0x00007fe171ea2000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007fe173395000)
>
> Wieso kann ich dann deinen Beispielcode nicht übersetzen, wenn die libs
> alle da sind?

Weil du "-devel" Pakete zu den Bibliotheken installieren musst.

pchoel:~ # l /lib64/libpthread*
-rwxr-xr-x 1 root root 136155 30. Mär 2012  /lib64/libpthread-2.14.1.so*
lrwxrwxrwx 1 root root     20 21. Mai 2012  /lib64/libpthread.so.0 -> libpthread-2.14.1.so*
pchoel:~ # rpm -qf /lib64/libpthread*
glibc-2.14.1-14.27.1.x86_64
glibc-2.14.1-14.27.1.x86_64
pchoel:~ # rpm -qa|grep glibc
...
glibc-devel-2.14.1-14.27.1.x86_64
pchoel:~ # rpm -ql glibc-devel
...
/usr/lib64/libpthread.so

Gruß
Berthold
>
>
> Gruß
> Malte
>
>
>

-- 
A: Weil es die Lesbarkeit des Textes verschlechtert.
F: Warum ist TOFU so schlimm?
A: TOFU
F: Was ist das größte Ärgernis im Usenet?
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 197 bytes
Beschreibung: nicht verfügbar
URL         : <http://mail.python.org/pipermail/python-de/attachments/20130125/e3ae2e92/attachment.pgp>


Mehr Informationen über die Mailingliste python-de