LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-03-2004, 07:41 AM   #1
jagrom
LQ Newbie
 
Registered: Sep 2004
Location: Rome, Italy
Distribution: Mandrake 10.0
Posts: 13

Rep: Reputation: 0
Help compiling code for install


I have problems with installation of a program from the source code.

I've Downloaded this file: superkaramba-0.34.tar.gz. When I try to install it
from the console this is what happens. I write:

tar xzvf superkaramba-0.34.tar.gz

then

cd 'superkaramba 0.34/'

Now when I try to run this line

./configure --prefix='kde-config --prefix'

I have an: "unexpected error - absolut directory required" or something like that... What I am doing wrong???

Please help!!!

 
Old 09-03-2004, 08:09 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hoi, is that line " ./configure --prefix='kde-config --prefix' " from the INSTALL text-file that
came with the program...? ( looks strange to me ... ).

egag
 
Old 09-03-2004, 10:37 AM   #3
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Hmm.. that prefix part is wrong, and it's duplicated... just run ./configure.
 
Old 09-03-2004, 10:38 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
with the --prefix=something you give the location where the compiled files are to be installed - this has to be a PATH - like: /usr/local or /usr or /opt/kde or so...
I think you or the instructions where trying to tell you to install this program into the same destination as all your other kde-applications

Maybe there is a script called "kde-config" which gives the locatiion of those files but you can just as well give the location to install it in yourself - by giving the destination directory like: --prefix=/usr/local
 
Old 09-03-2004, 11:01 AM   #5
jagrom
LQ Newbie
 
Registered: Sep 2004
Location: Rome, Italy
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
I've found the code on a magazine...

If I use ./configure it writes that there is an error...

Maybe I have to try with --prefix=/usr/local
 
Old 09-03-2004, 11:16 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
it seems to require an absolute adress( dir. ), so the prefix should start with a ' / '

egag
 
Old 09-03-2004, 11:20 AM   #7
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
--prefix=/usr/local is the default.
 
Old 09-03-2004, 11:37 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
if just issuing "./configure" - with no arguments - does not work, you would have to find the cause of the error

In this case configure uses default values (probably --prefix=/usr/local as serz said) - if it fails, there has to be another reason for error - you could post the error you are getting when you run ./configure with no extra arguments, if you cannot make anything out of what it tells you...
 
Old 09-04-2004, 04:50 AM   #9
jagrom
LQ Newbie
 
Registered: Sep 2004
Location: Rome, Italy
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
I used ./configure prefix=/usr/local and it worked!

I used the make command and I got huge serie of errors...
Last are: Error 1 and Error 2 !?!?!?!?

Why?????????

Anyone have an idea of what happened?
 
Old 09-04-2004, 09:15 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Error 1 and Error 2 do not tell anybody anything besides the fact that they occured obviously...

usually the error-messages are somewhat descriptive - in your case make (more exactly gcc) probably complained about something missing it needs to compile the program - you would go from the (!) first error you receive - because that is the one causing all the others - if you cant make sense of it - please try to check your installation and use google and your distributions documentation before posting the error for someone to help you out.
I suppose you get errors because you do not have some neccessary header-files installed - these are available for your distribution as ..somename-dev.rpm probably - whith -dev meaning development.
You should read the Readme-file in the source-code you have as well as some good documentation on how to compile software - there are excellent links mentioned in this forum as well as in other forums on this site
(Main Menu on the top right of each page)
 
  


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
compiling C code vose Programming 29 10-08-2004 08:28 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 08:06 PM
Compiling Kernel Code vbhatia_81 Programming 1 06-21-2004 07:53 AM
compiling code ripmaster Linux - Software 2 03-06-2004 10:07 PM
G++ - why am i getting errors compiling this simple code leroy27336 Programming 4 11-18-2003 09:32 PM


All times are GMT -5. The time now is 01:17 AM.

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