LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-11-2005, 03:39 AM   #1
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
where can i find the python-devel package ?


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.

TIA
 
Old 02-11-2005, 03:43 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
What is your output with :
/usr/include/python*/Python.h

If you have this file, maybe try cd /usr/include/python.x.x and
ln -s Python.h python.h
 
Old 02-11-2005, 03:49 AM   #3
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
# /usr/include/python*/Python.h
bash: /usr/include/python2.4/Python.h: Permission denied
 
Old 02-11-2005, 03:49 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
Ok, so you have it,
cd /usr/include/python2.4
ln -s Python.h python.h
 
Old 02-11-2005, 03:56 AM   #5
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
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
 
Old 02-11-2005, 04:15 AM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
Yes, you right, try something like :

./configure --with-python=/usr/include/python-2.4

or
export CFLAGS=-I/usr/include/python-2.4
export CXXFLAGS=$CFLAGS
./configure

Also from your output, I think the symlink is not needed, so if you created it
rm /usr/include/python-2.4/python.h

Last edited by keefaz; 02-11-2005 at 04:16 AM.
 
Old 02-11-2005, 07:34 AM   #7
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
Same...

I had the same (sk0.34) problem (Python.h: No such file or directory) , after

export CFLAGS=-I/usr/include/python-2.3
export CXXFLAGS=$CFLAGS

the error went away, but now I got:

...
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... =/)

Last edited by bdox; 02-11-2005 at 07:37 AM.
 
Old 02-11-2005, 07:46 AM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
Try :
export CFLAGS=-I/usr/include/python-2.3
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CFLAGS

./configure

Also first, do a ./configure --help to see what it says about *FLAGS
 
Old 02-11-2005, 09:12 AM   #9
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
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
 
Old 02-11-2005, 01:04 PM   #10
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
thanks for all your help, compiled it now with superkaramba-0.35Python2.4 and its working... thanks again
 
Old 02-13-2005, 08:47 AM   #11
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
still in problemes...

./configure --help *FLAGS :

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

I did:
$ export CFLAGS=-I/usr/include/python2.3/
$ export LDFLAGS=$CFLAGS
$ export CPPFLAGS=$CFLAGS
$ export CXXFLAGS=$CFLAGS

and something seemed to work as the 'make' went MUCH longer, but after some mins...

/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-longundef -pedantic -W -Wpointer-arith -Wmissing-prototypes -ansi -D_XOPEN_SOURCE=500 -D_BSD_URCE -Wcast-align -Wconversion -O2 -I/usr/include/python2.3/ -fno-exceptions -fno-check-n -I/usr/include/python2.3/ -o superkaramba -Wl,-export-dynamic -R /usr/lib64 -R /usr/l64/qt-3.3/lib/ -R /usr/X11R6/lib64 -L/usr/X11R6/lib64 -L/usr/lib64/qt-3.3/lib/ -L/usr/lib main.o karamba.o meter.o bar.o sensor.o datesensor.o textlabel.o memsensor.o uptimessor.o cpusensor.o networksensor.o imagelabel.o graph.o xmmssensor.o programsensor.o diskssor.o sensorparams.o sensorsensor.o textfilesensor.o clickarea.o noatunsensor.o karambaropixmap.o clickmap.o rsssensor.o textfield.o taskmanager.o showdesktop.o richtextlabel.o kambasessionmanaged.o welcomeform.o systemtray.o bar_python.o meter_python.o textlabel_pytn.o richtextlabel_python.o imagelabel_python.o config_python.o misc_python.o systray_pyth.o task_python.o widget_python.o menu_python.o themelistwindow.o karambalistboxitem.o gra_python.o karambainterface.o karambaapp.o karamba_python.o dcopinterface_skel.o dcopinterce_stub.o themelistwindow.moc.o cpusensor.moc.o sensor.moc.o datesensor.moc.o textlabel.m.o programsensor.moc.o bar.moc.o rsssensor.moc.o imagelabel.moc.o richtextlabel.moc.o climap.moc.o sensorsensor.moc.o clickarea.moc.o systemtray.moc.o welcomeform.moc.o disksensomoc.o memsensor.moc.o meter.moc.o xmmssensor.moc.o networksensor.moc.o graph.moc.o textfisensor.moc.o -lkio -lXpm -lkdeui
bar_python.o(.text+0x5c8): In function `py_getBarImage(_object*, _object*)':
: undefined reference to `PyArg_ParseTuple'
bar_python.o(.text+0x617): In function `py_getBarImage(_object*, _object*)':
: undefined reference to `Py_BuildValue'
...
...
...
karamba_python.o(.text+0x705): In function `KarambaPython::menuOptionChanged(karamba*, QSing, bool)':
: undefined reference to `Py_BuildValue'
karamba_python.o(.text+0x73c): In function `KarambaPython::menuItemClicked(karamba*, KPopMenu*, long)':
: undefined reference to `Py_BuildValue'
karamba_python.o(.text+0x76c): more undefined references to `Py_BuildValue' follow
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/aaa/tmp/local/src/superkaramba-0.35/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/aaa/tmp/local/src/superkaramba-0.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aaa/tmp/local/src/superkaramba-0.35'
make: *** [all] Error 2

=/ ???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
Where can I get python-devel iainr Suse/Novell 1 10-13-2005 04:07 PM
superkaramba theme not working because of python-devel slfsh Linux - Software 1 11-05-2004 02:46 PM
Package fam-devel needs libselinux-devel belkins Linux - Newbie 2 10-18-2004 03:02 PM
imagemagick devel package freeindy Linux - Software 9 02-08-2004 11:21 PM


All times are GMT -5. The time now is 06:58 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration