Re: compile as root



On Tue, 09 Sep 2003 07:34:01 +0700, Chorn Sokun <sokun seila gov kh>  said:

> Finally I can compile my gtk Hello World base on tutorial on gtk
> website.
> However I need to change to root before I can compile base.c
> successfully.
>  
> When I try to compile it as normal user it said can't find gtk+-2.0.pc
> gtk/gtk.h not found ....
>  
> Why is that happen?

Most likely broken permissions on whatever directory the gtk/ includes are in:

% ls -ld / /usr /usr/include /usr/include/gtk-2.0 /usr/local /usr/local/include
drwxr-xr-x   28 root     root         1024 Sep  8 20:59 /
drwxr-xr-x   17 root     root         4096 Feb 18  2003 /usr
drwxr-xr-x  107 root     root         8192 Aug 30 18:14 /usr/include
drwxr-xr-x    6 root     root         4096 Aug 27 15:39 /usr/include/gtk-2.0/
drwxr-xr-x   17 root     root         1024 Jul 27 22:21 /usr/local/
drwxr-xr-x   21 root     root         1024 Aug  1 20:27 /usr/local/include

(include other directories as needed for your system, and note the 'd' flag to list
the status of the directory rather than its contents).  These directories are all mode '755'.

Keep in mind that the actual problem can be a way up the directory tree - so for
instance, bad permissions on /usr/local can cause a hassle for /usr/local/include/gtk-2.0
(if that's where your include files live).....
Check for directories that are missing either/both the 'r' and 'x' bits for 'other'.

Attachment: pgpgfJRlexOC7.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]