Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everyone, I`m trying to link (I`ve already compiled) a simple program, just to check if gcc is installed correctly. First of all I`ve tried : #include <stdio.h> int main(){ ...
  1. #1
    Just Joined!
    Join Date
    Feb 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    6

    Gcc installed but not linking and dependencies problems.

    Hi everyone,

    I`m trying to link (I`ve already compiled) a simple program, just to check if gcc is installed correctly. First of all I`ve tried :

    #include <stdio.h>
    int main(){
    printf("Test\n");
    return(0);
    }

    And the answer was: test.c:1:19: stdio.h: No such file or directory

    So I think the package libc6 is not installed correctly. But when I check it, with dpkg -l, I can see libc6 is already installed.

    This is one problem, and here we can see the problem through a new point of view.

    When I try to install g++ the error tell me that is necessary to install g++-3.3, and so I try to install g++-3.3 and the error tell me to install libstdc++5-3.3-dev, and then when I try to install it, the brand new error tell me to install libc6-dev, and when I try to install the new one, finally, I have a DEADLOCK ! He ask me to install libc6 that is ALREADY installed !

    I`ve already read for a known bug, but it was solved...

    Reading my debian_version file in the /etc directory i`ve discovered that the version is 3.1, but I think my version is unstable.

    Regards,

    Daniel

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Location
    Milano (Italy)
    Posts
    45
    Have you tried forcing apt to install the package?
    Code:
    apt -f install libc6-dev

  3. #3
    Just Joined!
    Join Date
    Feb 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    6
    Hi Debian_user,

    I`ve just tried to force, but the answer was:

    The following packages have unmet dependencies:
    libc6-dev: Depends: libc6 (= 2.2.5-11.8) but 2.3.2.ds1-20 is to be installed
    E: Broken packages

    Any other suggestions ?

    Regards,

    Daniel

  4. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    Milano (Italy)
    Posts
    45
    Quote Originally Posted by levitan
    The following packages have unmet dependencies:
    libc6-dev: Depends: libc6 (= 2.2.5-11. but 2.3.2.ds1-20 is to be installed
    E: Broken packages
    Something similar happened to me too, with other packages. I couldn't find a very clever solution...
    You are going to install libc6-dev 2.3.2.ds1-20 but you have libc6 2.2.5-11.8.
    Try downloading from debian.org the latest libc6 package:
    http://packages.debian.org/unstable/base/libc6
    and install it with
    Code:
    dpkg -i libc6_xxx

  5. #5
    Just Joined!
    Join Date
    Feb 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    6
    I`ve installed the package, then I`ve tried to install with apt-get install libc6-dev, and the same error ocurred, so I`ve tried to find this package in the debian website, but couldn`t find...

    Daniel

Posting Permissions

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