LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2008, 02:27 AM   #1
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
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!!!!!!!
 
Old 06-04-2008, 04:06 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,356

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Hi

Install the package "build-essential". You will then get gcc with the libraries you need, like libc6-dev.
 
Old 06-04-2008, 08:06 AM   #3
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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...???

Last edited by shady_Dev; 06-04-2008 at 08:09 AM.
 
Old 06-04-2008, 08:54 AM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,356

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
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.
 
Old 06-06-2008, 12:58 AM   #5
shady_Dev
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Blog Entries: 1

Rep: Reputation: 15
# 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.!!!
 
Old 06-09-2008, 05:15 AM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,356

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libc6 Zulloi DamnSmallLinux 0 02-11-2008 03:45 PM
libdvdcss and w32codecs installation blocked by missing (?) libc6 adasiak Linux - Software 1 10-09-2007 10:44 AM
libc6 phantom_cyph Linux - Software 1 06-01-2007 06:37 AM
libc6-dev version conflicts with libc6 in Dapper peppill Ubuntu 2 12-04-2006 02:13 PM
Maple 9 Installation Error (libstdc++-libc6.1-1.so.2) mmr_85 Linux - Software 1 11-30-2003 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration