several dumb questions :)
I have been using Linux daily for about 2 months, but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.
I have a few general questions. 1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package? 2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate? 3) How can I find the amount of space remaining on a drive? 4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames. Thanks! :newbie: |
Re: several dumb questions :)
Quote:
or more easily 'df -h' as for the others, good luck :) |
In answer to #1, I'm not sure but what you might not need to try g++ instead of gcc. I've not had much experience with C programming (as opposed to C++) but that might work.
|
For #1, I think you can get just the headers from the package - I'm not sure. Do 'locate' of course, to make sure they didn't get lost.
For #4, depending on how old your 'less' is, try ls | less -R. Maybe ls | less -r depending, but R is what you want, I think. Less is better than more. *g* You can scroll up and everything. Not sure about #2. |
1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?
Try installing the glibc and c and c++ libraries and devel libraries (a guess). 4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames. ls -al --color|less -R |
Quote:
Sorry, don't have "to what" in front of me. Perhaps check your other box for a clue. Quote:
:D |
thanks everyone, i will try these solutions.
|
no problem, that's what this site is all about, the only dumb questions are:
the ones that aren't asked the ones you already know the answer to but ask to be pesky the ones not pertaining at all to the topic at hand :) the ones asked with the intention of being annoying yours don't fit into any of those categories, to call your little questions dumb would be stooping to the level of microsoft :D besides, we all have to start somewhere, and if everyone snubbed the newbie, we'd ALL be using MS windows :p |
All times are GMT -5. The time now is 07:14 PM. |