Skip Menu |

This queue is for tickets about the Inline-Python CPAN distribution.

Report information
The Basics
Id: 40832
Status: open
Priority: 0/
Queue: Inline-Python

People
Owner: Nobody in particular
Requestors: juliocbcotta [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.26
Fixed in: (no value)



Subject: I cant install perl-Inline-Python
I am trying to install the perl-Inline-Python in the kubuntu 8.10..I run the command "perl Makefile.PL" and so the command "make"..both as root user.. When I run the first command I leave the default answers.. and I couldn't see any error message.. but when I run the make command it give me errors in the code.. Someone else had this problem? I just donwloaded the module from this site and install libinline-perl from apt-get. thanks
On Tue Nov 11 09:23:14 2008, Bugs_Bunny wrote: Show quoted text
> but when I run the make command it give me errors in the code..
It would very much help if you could post these error messages as I have no idea what might have gone wrong without them.
From: juliocbcotta [...] gmail.com
really sorry, I was not in the computer where I want to install the module..now I am here. :D root@darkin:/home/julio# cd Desktop/Inline-Python-0.26/ root@darkin:/home/julio/Desktop/Inline-Python-0.26# perl Makefile.PL Found these python executables on your PATH: 1. /usr/bin/python Use which? [1] Using /usr/bin/python This python's configuration files are messed up. You'll have have to answer the questions yourself. Here is what Python said: Extra Libs: -lpthread -ldl -lutil Python Library: /usr/lib/python2.5/config/libpython2.5.a Include Path: /usr/include/python2.5 1. LIBS option. I need to know what extra libraries, if any, are required by this build of python. I recommend this: -lpthread -ldl -lutil Enter extra libraries (e.g. -lfoo -lbar) [-lpthread -ldl -lutil] 2. LIBRARY option. The location of the python library. Inline::Python needs to link against it to use Python. Here are the libraries I know about: Which? Or enter another. [1] 3. INCLUDE option. The location of the python include files. Inline::Python needs these to compile. Here are the locations I know about: 1) /usr/include/python2.4 2) /usr/include/python2.4_d 3) /usr/include/python2.5 4) /usr/include/python2.5_d Which? Or enter another. [1] Using These Settings: Extra Libs: -lpthread -ldl -lutil Python Lib: -L Includes: -I/usr/include/python2.4 Extra Flags: none (perl Makefile.PL --help for details) Writing Makefile for Inline::Python root@darkin:/home/julio/Desktop/Inline-Python-0.26# make cc -c -I/usr/include/python2.4 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/usr/lib/perl/5.10/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL Python.c Python.xs:6:20: error: Python.h: Arquivo ou diretório inexistente In file included from Python.xs:7: py2pl.h:4: error: expected ‘)’ before ‘*’ token py2pl.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token In file included from Python.xs:8: util.h:38: error: expected ‘)’ before ‘*’ token util.h: In function ‘DL_IMPORT’: util.h:39: error: expected declaration specifiers before ‘perl_pkg_exists’ util.h:40: error: expected ‘)’ before ‘*’ token util.h:43: error: storage class specified for parameter ‘free_inline_py_obj’ In file included from Python.xs:11: perlmodule.h:9: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ perlmodule.h:13: error: storage class specified for parameter ‘PerlPkg_object’ perlmodule.h:17: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ perlmodule.h:20: error: storage class specified for parameter ‘PerlObj_object’ perlmodule.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ perlmodule.h:33: error: storage class specified for parameter ‘PerlSub_object’ perlmodule.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PerlPkg_type’ perlmodule.h:48: error: expected ‘)’ before ‘*’ token perlmodule.h:51: error: expected ‘)’ before ‘*’ token perlmodule.h:54: error: expected ‘)’ before ‘*’ token perlmodule.h:55: error: expected ‘)’ before ‘*’ token perlmodule.h:56: error: expected ‘)’ before ‘*’ token Python.xs:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:232: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:339: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token Python.c:491: error: old-style parameter declarations in prototyped function definition util.h:39: error: parameter name omitted Python.c:490: error: expected ‘{’ at end of input make: ** [Python.o] Erro 1 root@darkin:/home/julio/Desktop/Inline-Python-0.26#
On Tue Nov 11 10:10:16 2008, Bugs_Bunny wrote: Show quoted text
> This python's configuration files are messed up. You'll have have to > answer the questions yourself. Here is what Python said:
From my experience, if you get this message, your chances of a successful Inline::Python build are quite low. On a modern system with a correctly installed Python, Inline::Python should find the correct values by itself. Show quoted text
> Python Library: /usr/lib/python2.5/config/libpython2.5.a > Include Path: /usr/include/python2.5
So you use Python 2.5 Show quoted text
> 3. INCLUDE option. The location of the python include files. > Inline::Python needs these to compile. > > Here are the locations I know about: > 1) /usr/include/python2.4 > 2) /usr/include/python2.4_d > 3) /usr/include/python2.5 > 4) /usr/include/python2.5_d
And you gave it Python 2.4's include files. That won't work. Show quoted text
> Python.xs:6:20: error: Python.h: Arquivo ou diretório inexistente
I assume this means something like "Python.h file not found" - it can't find the proper include file. Things to do: * make sure you have Python-development files installed. Maybe there's a python-devel package or the like for your distribution. * make sure you don't have any leftovers from older Python-versions on your computer. /usr/include/python2.4 might be such. If it doesn't belong to any installed software, try moving it out of the way or deleting it. If Inline::Python's Makefile.pl finds the correct values by itself, you're half way there. Closing this ticket.
From: juliocbcotta [...] gmail.com
Thanks a lot! I installed the python-dev (apt-get install python-dev).. Maybe you could put this as a dependency.. I guess ...now it's ok.. perl Makefile.PL Found these python executables on your PATH: 1. /usr/bin/python Use which? [1] Using /usr/bin/python Using These Settings: Extra Libs: -lpthread -ldl -lutil Python Lib: -L/usr/lib/python2.5/config -lpython2.5 Includes: -I/usr/include/python2.5 Extra Flags: none (perl Makefile.PL --help for details) Writing Makefile for Inline::Python root@darkin:/home/julio/Desktop/Inline-Python-0.26# make cc -c -I/usr/include/python2.5 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/usr/lib/perl/5.10/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL Python.c cc -c -I/usr/include/python2.5 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/usr/lib/perl/5.10/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL py2pl.c cc -c -I/usr/include/python2.5 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/usr/lib/perl/5.10/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL perlmodule.c cc -c -I/usr/include/python2.5 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.26\" -DXS_VERSION=\"0.26\" -fPIC "-I/usr/lib/perl/5.10/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL util.c Running Mkbootstrap for Inline::Python () chmod 644 Python.bs rm -f blib/arch/auto/Inline/Python/Python.so LD_RUN_PATH="/usr/lib/python2.5/config" cc -shared -O2 -g -L/usr/local/lib Python.o py2pl.o perlmodule.o util.o -o blib/arch/auto/Inline/Python/Python.so \ -L/usr/lib/python2.5/config -lpython2.5 -lpthread -ldl -lutil \ chmod 755 blib/arch/auto/Inline/Python/Python.so cp Python.bs blib/arch/auto/Inline/Python/Python.bs chmod 644 blib/arch/auto/Inline/Python/Python.bs Manifying blib/man3/Inline::Python.3pm root@darkin:/home/julio/Desktop/Inline-Python-0.26# make teste make: *** Sem regra para processar o alvo `teste'. Pare. root@darkin:/home/julio/Desktop/Inline-Python-0.26# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,'blib/lib', 'blib/arch')" t/*.t t/00init........ok t/01testpl......ok t/02testpl......ok t/03parse.......ok t/04func........ok t/05JAxH........ok t/06dict........ok t/07nherit......ok t/08ipyobj......ok t/09bind........ok t/10pyeval......ok t/11factor......ok 58/133 skipped: various reasons t/12evnodd......ok t/13fibbon......ok t/14study.......ok t/15anon........ok t/16evalpy......ok t/17once........ok t/18newclass....ok t/19testref.....ok All tests successful, 58 subtests skipped. Files=20, Tests=692, 3 wallclock secs ( 1.44 cusr + 0.34 csys = 1.78 CPU) root@darkin:/home/julio/Desktop/Inline-Python-0.26# make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Writing /usr/local/lib/perl/5.10.0/auto/Inline/Python/.packlist Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod root@darkin:/home/julio/Desktop/Inline-Python-0.26#
From: juliocbcotta [...] gmail.com
humm..something is wrong.. I create a file ( /t.pl) #!/usr/bin/perl use Inline Python => <<'END'; print("julio") END I gave chmod 0777 /t.pl and run it.. root@darkin:/home/julio/Desktop/Inline-Python-0.26# perl /t.pl julio root@darkin:/home/julio/Desktop/Inline-Python-0.26# perl /t.pl julio root@darkin:/home/julio/Desktop/Inline-Python-0.26# cd root@darkin:~# perl /t.pl Error. You have specified 'Python' as an Inline programming language. I currently only know about the following languages: C, Foo, foo If you have installed a support module for this language, try deleting the config file from the following Inline DIRECTORY, and run again: /_Inline at /t.pl line 2 BEGIN failed--compilation aborted at /t.pl line 4. When I am in the Inline folder I can run the script..but when I change of directory and run the script..it does not work.. I am really sorry if it is my shame..I am young in perl. Sorry again..I am from Brazil and my English is poor. Thanks a lot.