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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-14-2003, 08:23 PM
|
#1
|
|
Member
Registered: Sep 2003
Posts: 59
Rep:
|
Gcc/Headers
I'm trying to compile some packages by my own,
I get an error "dir.h no such file or directory"
I could find that header (and some others) under /usr/include/sys directory but the compile doesn't seek for that,
on the package file I try to compile I see "#include <sys/dir.h>"
how do I make the compiler look into /usr/include/sys ?
thanks.
|
|
|
|
10-14-2003, 09:07 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Help us in trying to help you mate :)
What package, how are you compiling it?
Cheers,
Tink
|
|
|
|
10-14-2003, 09:09 PM
|
#3
|
|
Member
Registered: Sep 2003
Posts: 59
Original Poster
Rep:
|
daemontools (required by tinydns)
I just get an error "dir.h no such file" although this file exists under /usr/include/sys
thanks.
|
|
|
|
10-14-2003, 09:26 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Never seen those ... now, are you getting that error
from running make, are you firing up the compiler
manually? If it's from a Makefile, the first thing to check
would be whether the appropriate path(s) to includes
is/are set .... look at your Makefile and locate
-I, or a variable called INCLUDE.
Cheers,
Tink
|
|
|
|
10-14-2003, 09:29 PM
|
#5
|
|
Member
Registered: Sep 2003
Posts: 59
Original Poster
Rep:
|
What tells the compile to look into /usr/include or any other include directories by default?
when you specify in the source code include <aaa.h> where the compile look by default?
(if you'r not specifying the -I)
by the way, did you ever use daemontools?
|
|
|
|
10-14-2003, 09:42 PM
|
#6
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
By default it should look in /usr/include,
if the source has an include directive like
#include <sys/dir.h>
the compiler should find /usr/include/sys/dir.h
If it doesn't, you need to pass this information
to the compiler via
And no, I haven't used daemontools ...
And you still haven't told me HOW you're
trying to compile them.
Cheers,
Tink
|
|
|
|
10-14-2003, 09:47 PM
|
#7
|
|
Member
Registered: Sep 2003
Posts: 59
Original Poster
Rep:
|
you just run an install script, which calls another script that calls another one  I have to look inside the code and try to manage that, anyway, your information helped me much, I'll try to solve that prob
thanks a lot.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|