Results 1 to 7 of 7
Hello,
First day of using linux and already getting issues. I'm trying Pardus distro since reading some reviews said it comes with a lot of codecs, drivers and essentials apps ...
- 11-10-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
[Pardus] [C] fatal error: sys/types.h: No such file or directory
Hello,
First day of using linux and already getting issues. I'm trying Pardus distro since reading some reviews said it comes with a lot of codecs, drivers and essentials apps built in making it easier for newbie who just went astray from Windows.
I'm trying to compile a C program file and keep getting:
fatal error: sys/types.h: No such file or directory
My program contains #include <sys/types.h>. Also, the program compiles fine at my school which runs fedora. I've already installed gcc and make from package manager. Any other hints to what might the issue be?
Thanks.
- 11-10-2011 #2
You apparently don't have these headers installed. They are kernel headers; in Debian-type distros, they form part of the build-essential package but I don't know whether there is anything corresponding to that in Pardus. If not, you'll need to install a kernel headers package.
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 11-10-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
Thanks for the quick response. A quick google with "Pardus build-essential" returned Pardus Wiki link.
- 11-11-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Jc, why not install Fedora if you know it to work for you? It has a humongoid amount of software packages available to it, via both official repos and 3rd party ones (for audio/video codecs, etc.).
- 11-11-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
Being new to Linux I looked for easier distros. It boiled down to Pardus and Linux Mint. Picked this since the reviews I read said it was the most complete in terms of pre-installed codecs and applications.
I might give Fedora a try too soon. But now I'm able to compile the program using gcc, but when I try running it I get:
bash: ./Prog_Name: Permission denied.
I am the only account and have admin privileges.
- 11-11-2011 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Did gcc successfully finish compiling the program? If so, mark it executable first:
Then try to execute it.Code:chmod +x ./Prog_Name
Did u do that already?
Code:ls -l ./Prog_Name
- 11-13-2011 #7Just Joined!
- Join Date
- Nov 2011
- Posts
- 4
Yup I did that. It works now. Thanks.


Reply With Quote