LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2003, 09:29 PM   #1
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
Problems with compiling source code


I have tried compiling several source codes, and always get an error such as "cant find x includes". I have also seen one that said "missing kdelibs" or something of the like. I have the development packages from redhat installed, c compilers, make, the works. Maybe a problem with path settings? Oh and I am running redhat 8.

Thanks
 
Old 02-05-2003, 10:13 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I'd have to look at what RedHat's development package includes. My gut tells me it includes just the kernel source. It looks like you're trying to compile some GUI-based applications. The first error you mention:
Quote:
"cant find x includes"
Is telling you that the compiler can't find certain X Windows header files. You may need to download the XFree86 source and unpack it for that compile to work.

Your second error:
Quote:
missing kdelibs
Is telling you that certain KDE libraries are missing. When you installed RedHat, did you install the KDE environment, Gnome environment, or both? As far as I know applications developed for KDE won't run in Gnome (and vice versa). Don't take my word for it though.
 
Old 02-05-2003, 11:22 PM   #3
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
I believe that the basic redhat development package includes c libraries, compilers, make/ automake etc., then there were kde specific development packages, which i dont have installed. maybe thats the problem. I am running only kde by the way, and the things i have tried to compile were meant to work on kde. I will try XFree86 though.
 
Old 02-05-2003, 11:51 PM   #4
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
I've never Used RedHat but I do compile everything from source and I try "ldconfig" in a root terminal first. Then a "whereis" before jumping to download a bunch of stuff you already have but it wasn't linked correctly. {KDE libs are in opt/kde/lib)

Last edited by Allen614; 02-05-2003 at 11:53 PM.
 
Old 02-06-2003, 12:47 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The Red Hat packages under the development section include three options you probably want installed:[list=1][*]Development Tools[*]X Software Development[*]KDE Software Development[/list=1]
I you added these post-install then you probably do need to run "ldconfig" as Allen614 suggested. Go ahead and run it anyway... it won't hurt anything.

Side note: KDE runs on top of X. I didn't mean to confuse you about XFree86... that's just the windowing system that window managers (like KDE and Gnome) use to actually display their windows, dialogs, and the like.

Now, if all of that stuff is installed and you still get compile errors, then you'll have to do some reading. The software you're trying to compile should come with some documentation about what libraries it depeds on. Get a list of them and verify they actually are on the system you can use:
updatedb
locate <insert library name here>

You only need to run updatedb once, and that updates the database that locate uses to find files. Then fire off as many locate commands as needed. Again, as Allen614 said, KDE libraries should be in /opt/kde/lib.

If you have all the libraries, then read the INSTALL documentation. It may discuss options to pass to the configure script (such as being able to specify a "libdir" path). You may need to do that if your libraries are in a different directory than the default.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling hplip source code. hscast Linux - Software 4 06-16-2006 07:36 PM
RPM vs compiling from Source Code ceci2 Linux - Enterprise 4 03-15-2005 03:58 PM
HELP: newbie compiling source code.... kevingpo Linux - Software 6 12-13-2004 01:16 PM
compiling quake 2 source code hylke Programming 2 11-28-2004 11:02 AM
Problems Compiling GTK C++ Source Code drdroid Programming 17 04-10-2004 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration