Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    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!"

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4
    Thanks for the quick response. A quick google with "Pardus build-essential" returned Pardus Wiki link.

  4. #4
    Linux 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.).

  5. #5
    Just 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.

  6. #6
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Did gcc successfully finish compiling the program? If so, mark it executable first:
    Code:
    chmod +x ./Prog_Name
    Then try to execute it.

    Did u do that already?
    Code:
    ls -l ./Prog_Name

  7. #7
    Just Joined!
    Join Date
    Nov 2011
    Posts
    4
    Yup I did that. It works now. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...