LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 04-23-2005, 12:40 PM   #1
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Rep: Reputation: 30
Question stdio.h library missing


hi, everybody...
I'm traying to compile my first program under linux -in C - but when I try to compile, the system respond me with something like this:
"can't find stdio.h"..
Here I transcribe all the related stuff I've downloaded and installed in my distro (have in mind it's zipslack, a minimal one):

-> g++ & gcc (compilers -I think the last one comes with the distro)
-> glibsc-solibls & libC++ (libraries, I guess)

-I know this stuff is there 'coz I 've checked it using pkgtool-
..so, which library is missing? ..and if it have any 'special procedure' to install..

thanks in advance..
 
Old 04-23-2005, 02:13 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
the only thing I can think of is to make sure that.....
/usr/lib is in your $PATH

/etc/ld.so.config <<--- edit this if needed..........
 
Old 04-23-2005, 03:11 PM   #3
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
thanks 4 your answer, pal..but it's still not working. I copy here the content of my ls.so.conf:
/usr/local/lib
/usrX11R6/lib/
/usr/i386-slackware-linux/lib
/usr/lib (this last one is that you recommend me to put)
-about that x11: I have never finished to isntall the x-window system.
any idea?
thanks.
 
Old 04-23-2005, 05:40 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
stdio.h file comes with the glibc package (note that glibc-solibs is not the same as glibc as the latest contain header files like the one you need instead of having only the shared libraries).
It's usually located in /usr/include/ and should be on your default path. If it's not like it seems is you're case, try adding the option -I/usr/include when calling gcc. -I option tells gcc to also look in that directory for header files (.h). You can see the details about that and others flags at gcc's man page.
Something like:
Code:
gcc -I/usr/include/ mylittleprog.c -o mylittleprog
The location of header files doesn't have to do with the PATH which is only used to search for executable files.

Last edited by gbonvehi; 04-23-2005 at 05:42 PM.
 
Old 04-23-2005, 06:49 PM   #5
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
hi, bro!
thanks 4 answer...
well, it seems like I haven't got the glibc, so I'm gonna get it first, and then I'll tell if it works
-keep a cool ahead
 
Old 04-24-2005, 01:33 PM   #6
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
well, I've downloaded and installed glibc, but still not working. the error messg is: "gcc: insttallation problem, cannot exec 'as': no such file or directory" . I also downloaded and installed a new copy of gcc, but the errmsg remains the same.. any idea what's goin' on...?
tks.
 
Old 04-24-2005, 01:51 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You need binutils package where "as" executable is. You may need others files too to get compile working since If my memory doesn't fail (and what's obvious from the missing files) Zipslack doesn't contain development tools. Just keep look for the files you need in http://slackware.com/pb until you have all the tools needed.
As an example, I searched there for bin/as and the result was this: http://www.slackware.com/pb/searchfi...=bin%2Fas&w=on
Where you can see that the file you need is on binutils package. I hope this helps.
 
Old 04-24-2005, 05:42 PM   #8
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
yaman! you're right again.. I downloaded and installed binutils (mi distro doesn't come with it) and now its working! thanks a lot!! -I've got tons of questions about linux -you'll see
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Library twantrd Solaris / OpenSolaris 4 12-21-2004 12:16 PM
missing libsigc C++ callback library 1337 Twinkie Fedora 5 08-08-2004 06:38 PM
missing library kholdstayr Slackware 4 12-20-2003 04:56 PM
theres a missing library! e1000 Linux - Software 2 10-22-2003 01:33 AM
Help with missing mystery library. Zaulhghev Linux - General 5 02-20-2002 08:54 PM


All times are GMT -5. The time now is 08:00 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
Open Source Consulting | Domain Registration