Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 04-03-2008, 02:16 AM   #1
Registered: May 2007
Posts: 43

Rep: Reputation: 0
C Header files missing in /usr/include


I am used to Linux with other distributions, but I wanted to try Ubuntu. The installation of Ubuntu 7.04 worked as expected very well and I tried to test the compilation with gcc of the "Hello world"-program. This failed!

I have checked if gcc is installed and also the libraries (libc6...) are installed. But no standard c-header files like stdio.h and others are not available in /usr include! (???)

I have installed ubuntu from scratch from a dvd which was attached to a linux book.

I tried to install the missing development packages, but I don't know which packages needs to be installed to get the missing header files. I tried to use aptitude.

Which packages and/or repositories are required to compile c-programs with ubuntu? Which package must be installed to get the missing header files?

Thanks in advance for any hint.
Old 04-03-2008, 12:42 PM   #2
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35

sudo apt-get install build-essential

Also, remember you answer sudo's request for a password if you are in the admin group, or the person who set up the system (in which you were put in group admin by default).

As to whether packages like this should be included in Ubuntu is yet another discussion for another time.

BTW, if you use thinks like linux2dos, you'll need that stuff, too, but what is nice about Ubuntu is running something like linux2dos if not already installed, produces a nice little messaging telling you how to install it.
Old 04-03-2008, 05:26 PM   #3
Registered: May 2007
Posts: 43

Original Poster
Rep: Reputation: 0
Smile Thanks this fixed it

Thank you for the quick responce this fixed my problem.
Old 04-12-2008, 07:57 PM   #4
Registered: Oct 2005
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
ubuntu like many binary distros does not include the stuff to compile progs.

half the time when compiling stuff form scrach the configure script sais i need some libary or anoher and i have to go into adept(kde version of synaptec that i prefer even when using gnome) and install the dev pakage of that libary


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
sctp.h missing in /usr/include/netinet in RHEL4 64bit mystavros Linux - Enterprise 0 09-18-2007 04:06 AM
Include kernel header files fallen3019 Programming 10 05-12-2007 09:35 PM
Missing /usr/include/GL/gl.h openfun Ubuntu 1 04-24-2006 11:24 AM
Problem with C++ include/header files! Pisces107 Programming 12 12-24-2003 12:06 AM
Clarifiacation on header file "/usr/include/a.out.h" swathisat Linux - Software 0 09-05-2003 01:12 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:50 PM.

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