LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-03-2008, 01:16 AM   #1
zorro_kwh
Member
 
Registered: May 2007
Posts: 33

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


Hi,

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, 11:42 AM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
build-essential

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, 04:26 PM   #3
zorro_kwh
Member
 
Registered: May 2007
Posts: 33

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

Thank you for the quick responce this fixed my problem.
 
Old 04-12-2008, 06:57 PM   #4
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 956

Rep: Reputation: 34
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
 
  


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


All times are GMT -5. The time now is 03:18 PM.

Main Menu
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