Re: Compilation problem.
This question should have been directed at debian-users or asked on
irc.us.debian.org channel #debian; debian-devel is for discussing
development issues specifically.
> As root I can compile a program using:
> gcc -I /usr/include/X11 -L/usr/X11R6/lib demo.c -lX11
> and get an executable a.out.
Does it actually run?
And with a -o option, you can get an even nicer output filename.
Also, /usr/X11R6/lib should be in the library path by default; I'm not
sure about /usr/X11R6/include/X11 though. Check out /etc/ld.so.conf
to check this.
> As a user when I type the same thing I get:
> ld:cannot open -lX11: No such file of directory
Can you give a bit more detail perhaps? Like: which version of Debian
are you running? What are the permissions of the X11 library: what is
the output of the commands:
ls -l /usr/X11R6/lib/libX11.so*
It sounds like something is a bit ill, like there is "no such file or
directory". Bit strange, eh?
> Do I have to give this user special privledges or something???
> I don't want to start playing with permissions etc. unless I
> have a bit more knowledge.!
Shouldn't have to. Let's hear the results of the above questions and
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer. email@example.com
-*- Finger firstname.lastname@example.org for my PGP public key. -*-