Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 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.
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:
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.