SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
i tried installing superkaramba and it came up with the error python.h missing. i know i installed python and python-tools that came with the slack 10.1 iso setup but do those packages come with the python-devel. please advise.
this is the error it brought up during make
------------
In file included from main.cpp:5:
karambaapp.h:14:20: Python.h: No such file or directory
In file included from main.cpp:19:
karamba.h:8:20: Python.h: No such file or directory
In file included from karamba.h:56,
from main.cpp:19:
imagelabel.h:26:20: Python.h: No such file or directory
In file included from main.cpp:22:
karamba_python.h:28:20: Python.h: No such file or directory
In file included from main.cpp:22:
karamba_python.h:44: error: syntax error before `*' token
karamba_python.h:45: error: syntax error before `*' token
karamba_python.h:46: error: ISO C++ forbids declaration of `PyThreadState' with
no type
karamba_python.h:46: error: parse error before `*' token
karamba_python.h:48: error: `myThreadState' was not declared in this scope
karamba_python.h:48: error: invalid data member initialization
karamba_python.h:48: error: (use `=' to initialize static data members)
karamba_python.h:48: error: variable or field `getLock' declared void
karamba_python.h:49: error: syntax error before `*' token
karamba_python.h:50: error: `myThreadState' was not declared in this scope
karamba_python.h:50: error: invalid data member initialization
karamba_python.h:50: error: variable or field `releaseLock' declared void
karamba_python.h:51: error: type specifier omitted for parameter `PyObject'
karamba_python.h:51: error: parse error before `*' token
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/usr/local/superkaramba-0.35/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/superkaramba-0.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/superkaramba-0.35'
make: *** [all] Error 2
------------
but when i ran ./configure at some point it gave me this:
checking for Python directory... /usr/local
but python's in /usr/include, so should i just give ./configure a directive to point towards the actual python directory
...
menu_python.o(.text+0x4f6): In function `py_add_menu_item(_object*, _object*)':
: undefined reference to `Py_BuildValue'
menu_python.o(.text+0x619): In function `py_delete_menu(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
menu_python.o(.text+0x63d): In function `py_delete_menu(_object*, _object*)':
: undefined reference to `Py_BuildValue'
collect2: ld returned 1 exit status
make[3]: *** [superkaramba] Error 1
make[3]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.34/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.34'
make: *** [all] Error 2
(and many others 'undefined reference's' before that.
what could i do?
(neither ./configure --with-python=/usr/include/python-2.3 nor ./configure --with-pythondir=/usr/include/python2.3/ helped)
(FC3-64)
also tryed with sk0.35... :
...
karamba_python.o(.text+0x1f): In function `KarambaPython::initPython()':
: undefined reference to `PyEval_ReleaseLock'
karamba_python.o(.text+0x51): In function `KarambaPython::getLock(_ts**)':
: undefined reference to `PyThreadState_Swap'
karamba_python.o(.text+0x86): In function `KarambaPython::shutdownPython()':
: undefined reference to `Py_Finalize'
karamba_python.o(.text+0xad): In function `KarambaPython::releaseLock(_ts*)':
: undefined reference to `PyEval_ReleaseLock'
collect2: ld returned 1 exit status
make[3]: *** [superkaramba] Error 1
make[3]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.35/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bdox/tmp/local/src/superkaramba-0.35'
make: *** [all] Error 2
??
(found the thread in google... didn't realize it was only for Slackware, sorry. any way you could help... =/)
Look here for a link to an updated release of SuperKaramba.
Basically the thing is that Slack 10.1 includes Python 2.4 & the ./configure script looks for python 2.3. The file there is an updated file which adds a check for python 2.4. The direct link to the file is http://www.angelfire.com/geek/p0z3r/...thon2.4.tar.gz
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.