LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   stdio.h: No such file or directory. file is missing during gcc complile. (https://www.linuxquestions.org/questions/linux-software-2/stdio-h-no-such-file-or-directory-file-is-missing-during-gcc-complile-866254/)

culser 03-03-2011 11:59 AM

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

corp769 03-03-2011 12:12 PM

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

Cheers,

Josh

culser 03-03-2011 12:17 PM

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


corp769 03-03-2011 12:40 PM

glibc-2.3.6-2

knudfl 03-03-2011 01:59 PM

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


All times are GMT -5. The time now is 03:47 AM.