LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-11-2004, 05:53 PM   #1
p_motch
LQ Newbie
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
make compile errors -- python problems???


I'm a two day old mandrake user. It's very exciting to get away from M$ finally. It appears that the install went perfect and all seems to be well. I'm very impressed with the whole process.

I have however been installing some apps and whatnot on the system. I'm doing my first compile. The program is SuperKaramba.

So, I do the standard. Compile procedures as I understand them to be. Gunzip it, then tar. That all is well. I run ./configure and it tells me, "Good - your configure finished. Start make now"

So, I start "make". And here is what I get...

[p_motch@localhost superkaramba-0.33]$ make
make all-recursive
make[1]: Entering directory `/home/p_motch/superkaramba-0.33'
Making all in doc
make[2]: Entering directory `/home/p_motch/superkaramba-0.33/doc'
Making all in .
make[3]: Entering directory `/home/p_motch/superkaramba-0.33/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/p_motch/superkaramba-0.33/doc'
Making all in en
make[3]: Entering directory `/home/p_motch/superkaramba-0.33/doc/en'
make[3]: Circular index.cache.bz2 <- index.cache.bz2 dependency dropped.
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/p_motch/superkaramba-0.33/doc/en'
make[2]: Leaving directory `/home/p_motch/superkaramba-0.33/doc'
Making all in po
make[2]: Entering directory `/home/p_motch/superkaramba-0.33/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/p_motch/superkaramba-0.33/po'
Making all in src
make[2]: Entering directory `/home/p_motch/superkaramba-0.33/src'
make[3]: Entering directory `/home/p_motch/superkaramba-0.33/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3//include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -pedantic -W -Wpointer-arith -Wmissing-prototypes -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
main.cpp:6:20: Python.h: No such file or directory
In file included from main.cpp:22:
karamba.h:5:20: Python.h: No such file or directory
In file included from karamba.h:57,
from main.cpp:22:
imagelabel.h:12:20: Python.h: No such file or directory
In file included from imagelabel.h:24,
from karamba.h:57,
from main.cpp:22:
karamba.h:5:20: Python.h: No such file or directory
In file included from main.cpp:22:
karamba.h:188: error: syntax error before `*' token
karamba.h:189: error: syntax error before `*' token
main.cpp:39: error: syntax error before `*' token
main.cpp: In function `int main(int, char**)':
main.cpp:81: error: `Py_Initialize' undeclared (first use this function)
main.cpp:81: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:84: error: `PyEval_InitThreads' undeclared (first use this function)
main.cpp:86: error: `mainThreadState' undeclared (first use this function)
main.cpp:89: error: `PyThreadState_Get' undeclared (first use this function)
main.cpp:92: error: `PyEval_ReleaseLock' undeclared (first use this function)
main.cpp:122: error: `PyInterpreterState' undeclared (first use this function)
main.cpp:122: error: `mainInterpreterState' undeclared (first use this function)
main.cpp:124: error: `PyThreadState' undeclared (first use this function)
main.cpp:124: error: `myThreadState' undeclared (first use this function)
main.cpp:124: error: `PyThreadState_New' undeclared (first use this function)
main.cpp:125: error: `PyThreadState_Swap' undeclared (first use this function)
main.cpp:126: error: `PyEval_AcquireLock' undeclared (first use this function)
main.cpp:127: error: `Py_Finalize' undeclared (first use this function)
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/home/p_motch/superkaramba-0.33/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/p_motch/superkaramba-0.33/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/p_motch/superkaramba-0.33'
make: *** [all] Error 2
[p_motch@localhost superkaramba-0.33]$


I think it's safe to say something is wrong. By a newbs look about it, it seems that python headers are missing??? So I went looking for how I get those, but ran into walls on that. I've exausted my limited trouble shooting knowledge on this one.

Any help would be greatly appreciated!

Thanks!
 
Old 07-11-2004, 06:44 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Have you installed Python? It should be on your Mandrake CD's and you should be able to install it with the package management tools in the Mandrake Control Centre. The package you want will probably be called something like libPython-devel
 
Old 07-11-2004, 07:37 PM   #3
p_motch
LQ Newbie
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, I did try and install the Python package. I goes about asking me for CD 1, 2, then 3. Then it asks for CD 4. Which doesn't exist. Apparently you need to be a Mandrake Club member to have CD 4???

In any case, I've went to Python.org and downloaded the source, and am compiling it. So far it's gone without a problem...
... ...
5 minutes have passed, and you had the right answer! It works now. Thanks!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
python errors coffeedemon Linux - Newbie 2 05-07-2006 03:18 PM
kernel compile - make errors hnad Slackware 5 09-18-2004 06:54 AM
Fedora2 kernel 2.6 compile. cant even make config (fixdep.c full of errors) qwijibow Linux - Software 4 06-20-2004 01:20 PM
make install errors during kernel compile tharris Slackware 1 02-16-2004 10:11 AM
make and gcc compile errors sedandawk Linux - General 1 12-18-2002 02:56 AM


All times are GMT -5. The time now is 07:10 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration