![]() |
libc6 installation??
Hi,
I m using Kubuntu 8.I cant compile c programs on my system.When i check out in Adept package manager .I shows that libc6 is installed.But when i do "whereis libc6 " it gives no result.when i try to to sudo apt-get install libc6 it shows again that the latest version of libc6 is already installed. When i compile a c program h.c, #include<stdio.h> int main() { printf("Helloworld"); } i get the following output. gcc h.c h.c:1:18: error: stdio.h: No such file or directory h.c: In function âmainâ: h.c:4: warning: incompatible implicit declaration of built-in function âprintfâ h.c:5:2: warning: no newline at end of file Please tell me wats wrong how to cure this?? Thanks in advance!!!!!!! |
Hi
Install the package "build-essential". You will then get gcc with the libraries you need, like libc6-dev. |
Thanks for reply!!!
I tried sudo apt-get install build-essential but it doesnt work ..the error message was.. Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package build-essential Infact for any package i get the same response... If it is not present in my system ... it shows the above error.. otherwise it says that package is present on the system.. I dont have synaptic package manager on my system what should i do know...??? |
Strange...
Maybe try "sudo apt-get update". This will download the lists of all packages avaiable. If you still can't install anything, there might be something wrong with where you download from. Try "cat /etc/apt/sources.list" and post the output here. The file /etc/apt/sources.list specifies where you get the programs from. |
# deb cdrom:[Kubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://in.archive.ubuntu.com/ubuntu/ hardy main restricted deb-src http://in.archive.ubuntu.com/ubuntu/ hardy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates main restricted deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://in.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://in.archive.ubuntu.com/ubuntu/ hardy universe deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://in.archive.ubuntu.com/ubuntu/ hardy multiverse deb-src http://in.archive.ubuntu.com/ubuntu/ hardy multiverse deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates multiverse deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-updates multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. This software is not part of Ubuntu, but is ## offered by Canonical and the respective vendors as a service to Ubuntu ## users. # deb http://archive.canonical.com/ubuntu hardy partner # deb-src http://archive.canonical.com/ubuntu hardy partner deb http://security.ubuntu.com/ubuntu hardy-security main restricted deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted deb http://security.ubuntu.com/ubuntu hardy-security universe deb-src http://security.ubuntu.com/ubuntu hardy-security universe deb http://security.ubuntu.com/ubuntu hardy-security multiverse deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse This is what i ve got in my sources.list file.... Please have a look... Thanks.!!! |
Hi again.
Sorry for the late reply. The file looks OK. You should be able to install all kinds of packages. But does "sudo apt-get update" any error message? Maybe post a question in the Ubuntu section about it? This has nothing to do with libc6 installation, when you cannot install any package on your system. |
All times are GMT -5. The time now is 05:11 AM. |