Results 1 to 5 of 5

Thread: Another checking whether the C compiler works... no question

  1. #1
    Join Date
    Feb 2019
    Beans
    3

    Another checking whether the C compiler works... no question

    Hi I'm brand new to linux. I've been using it for less than a day. I'm actually using MX linux, but still debian based and ubuntu seems to have the best community.
    So I wanted to have a search bar in my file explorer, like I had on windows 7, so I am trying all sorts of file explorers, to find one with the feature, and I'm trying XFE, but I can't install it. This is the second thing I've installed, aside from waterfox (which I just used the binary file). And I believe that to install something you put it in a place like /opt/ or /etc/ and run ./configure in the terminal. But when I do that I get:

    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/etc/xfe-1.43.1':
    configure: error: C compiler cannot create executables


    I can see that this question is asked all over the internet, but none seemed relevant in my issue. Please find attached the log.

    so I looked in the config file and it says things like:
    configure:3898: checking whether the C compiler works
    configure:3920: gcc conftest.c -lX11 >&5
    /usr/bin/ld: cannot find -lX11

    but I don't know what lX11 is...?

    I think I installed and re-installed and updated gcc, but I still get the error.

    Coming from windows, this whole needing to give permission every few seconds to do anything like moving a file is so annoying lol.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Join Date
    May 2014
    Location
    /home
    Beans
    10,902
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Another checking whether the C compiler works... no question

    Moved to Ubuntu/Debian based

  3. #3
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Another checking whether the C compiler works... no question

    Quote Originally Posted by toneboy View Post
    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/etc/xfe-1.43.1':
    configure: error: C compiler cannot create executables
    To make sure that gcc is properly installed...
    Code:
    sudo apt install build-essential
    so I looked in the config file and it says things like:
    configure:3898: checking whether the C compiler works
    configure:3920: gcc conftest.c -lX11 >&5
    /usr/bin/ld: cannot find -lX11

    but I don't know what lX11 is...?

    I think I installed and re-installed and updated gcc, but I still get the error.

    Coming from windows, this whole needing to give permission every few seconds to do anything like moving a file is so annoying lol.

    Thanks in advance!
    -lX11 instructs the linker link to libX11.so or libX11.a. This should be somewhere like /usr/lib/x86_64-linux-gnu/libX11.so. It can be installed with...
    Code:
    sudo apt install libx11-dev

  4. #4
    Join Date
    Feb 2019
    Beans
    3

    Re: Another checking whether the C compiler works... no question

    Quote Originally Posted by spjackson View Post
    To make sure that gcc is properly installed...
    Code:
    sudo apt install build-essential

    -lX11 instructs the linker link to libX11.so or libX11.a. This should be somewhere like /usr/lib/x86_64-linux-gnu/libX11.so. It can be installed with...
    Code:
    sudo apt install libx11-dev
    Hi and thanks for the reply,

    I'll try: sudo apt install build-essential and sudo apt install libx11-dev

    when I'm home and can access my laptop.

    Side question, do you know of a file explorer with a search bar in the top panel? Because I haven't learnt how to search with the terminal yet, but that seems so inconvenient.

    Thanks and I'll update on how I go.

    Cheers

  5. #5
    Join Date
    Feb 2019
    Beans
    3

    Re: Another checking whether the C compiler works... no question

    Quote Originally Posted by spjackson View Post
    To make sure that gcc is properly installed...
    Code:
    sudo apt install build-essential

    -lX11 instructs the linker link to libX11.so or libX11.a. This should be somewhere like /usr/lib/x86_64-linux-gnu/libX11.so. It can be installed with...
    Code:
    sudo apt install libx11-dev
    Hi Spjackson,

    Unfortunately this was the outcome:

    $ sudo apt install build-essential
    [sudo] password for Rob:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    build-essential is already the newest version (12.3).
    0 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.

    $ sudo apt install libx11-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libx11-dev : Depends: libxcb1-dev but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.


    Any ideas to resolve this?

    Thanks again!

Tags for this Thread

Bookmarks

Posting Permissions

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