Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, i try to compile a program with X11 lib (use -lX11 flag) and get error /usr/bin/ld: cannot find -lX11 Does that mean I have to install X11? I ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    2

    X11 problem

    Hi all,

    i try to compile a program with X11 lib (use -lX11 flag) and get error
    /usr/bin/ld: cannot find -lX11
    Does that mean I have to install X11? I cannot believe it is not installed. I have a pretty standard Fedora installation. I have /usr/X11R6 directory full of stuff. Can anyone suggest what is wrong here? Thanks.

  2. #2
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    I'm not sure about Fedora, but with many binary distros, you need the -dev version of a package when compiling something which needs said package. For example, if I wanted to compile X by hand in Debian, and X needed package Y, I would use Debian's apt-get to install the package called Y-dev (for 'development').

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    2
    okay.. does that mean I have to reinstall X11 now? X11 seems to be a heavy thing... tried to browse the web an X11-dev does not seem easy to find...

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    X11 dev packages are in installation DVD/CDs. install from it.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...