LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-03-2011, 11:59 AM   #1
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
stdio.h: No such file or directory. file is missing during gcc complile.


I have looked at the other threads and found nothing
which pertains to my issue.

I am using an older version of Debian 4.0 I cannot upgrade until I have a 2nd server running.

here is my problem. I lost the 4.0 installation
disks. During an apt-get install i did, I foolishly changed sources.list to other sources on the net which changed dependancies and removed needed packages, such as perlmagick, Crypt-SSLeay, aptitude, and possibly
the glibc - ( my current glibc was changed to glic6)

Since I have found my original 4.0 disk. restored the
sources.list. ran an update. and restored many of the packages that were removed. ( a big lesson to me I will never do that again)

here is a simple program:
#include <stdio.h>

when i run a gcc or i use cc compile
I get this message: "stdio.h": No such file or directory found.

Yes i know i missing the file stdio.h. I have looked
in /usr/include /usr/lib nothing.

apparently during my mistake the system installed the
glibc6 and removed the "stdio.h" file and other dependancies.

I would like to get back to where as was in terms of the glibc version i had. Aptitude currently shows the following packages that are available to me

Code:
DEB1:/etc# aptitude search glibc
v   glibc-2.3.6-2                                                                         -
v   glibc-2.3.6.ds1-1                                                                     -
p   glibc-doc                                                                             - GNU C Library: Documentation
v   glibc-pic                                                                             -
p   libg++2.8.1.3-glibc2.2                                                                - The GNU C++ extension library - runtime version
p   libstdc++2.10-glibc2.2                                                                - The GNU stdc++ library
DEB1:/etc#

the question is which one should i install, to get my "stdio.h" back again?

would i have to uninstall glibc6 first?
uninstalling glibc6 displays a big warning

Is there a way I can download just the "stdio.h"
files?

Please someone advise all options.

thx
 
Old 03-03-2011, 12:12 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
You are better off grabbing the package. It is under the glibc package; on my system, it is under glibc-headers.

Cheers,

Josh
 
Old 03-03-2011, 12:17 PM   #3
culser
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
yes i gathered that it is glibc - but which version out of the many should i install

Code:
 glibc-2.3.6-2                                                                         -
v   glibc-2.3.6.ds1-1                                                                     -
p   glibc-doc                                                                             - GNU C Library: Documentation
v   glibc-pic                                                                             -
p   libg++2.8.1.3-glibc2.2                                                                - The GNU C++ extension library - runtime version
p   libstdc++2.10-glibc2.2
 
Old 03-03-2011, 12:40 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
glibc-2.3.6-2
 
Old 03-03-2011, 01:59 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,885

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
Debian 4 Etch, stdio.h : The package name is libc6-dev .

debian/pool/main/g/glibc/
https://www.securehost.com/mirror/de.../main/g/glibc/
> libc6-dev_2.3.6.ds1-13etch9+b1_i386.deb
https://www.securehost.com/mirror/de...h9+b1_i386.deb
 
  


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
Can not compile gcc, fatal error: stdio.h: No such file or directory StefanTh Linux - Newbie 6 02-10-2014 12:06 AM
stdio.h: No such file or directory elaa82 Linux - Software 2 12-29-2009 04:31 AM
gcc compiler cannot find header file stdio.h / stdlib.h debianlam Programming 2 05-11-2008 02:29 PM
gcc compiler cannot find header file stdio.h / stdlib.h debianlam Programming 2 05-09-2008 03:33 PM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 02:57 PM


All times are GMT -5. The time now is 09:50 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration