Find the answer to your Linux question:
Results 1 to 5 of 5
I m trying to run a dot.c file on ubuntu but it gives errors about libraries like sys/socket.h is undeclared pthread.h is undeclared and so on ... but the same ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5

    Angry Cannot run dot.c file on ubuntu

    I m trying to run a dot.c file on ubuntu but it gives errors about libraries like sys/socket.h is undeclared pthread.h is undeclared and so on ...
    but the same dot.c file runs fine on ubuntu on my University Computers.

    plz help me fixing it ...

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    18
    make sure your dot.c has include the header file.
    and check you ubuntu had the lib,otherwise,may be your unbuntu environment varible is unnormal.

  3. #3
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by adi_shoukat View Post
    I m trying to run a dot.c file on ubuntu but it gives errors about libraries like sys/socket.h is undeclared pthread.h is undeclared and so on ...
    but the same dot.c file runs fine on ubuntu on my University Computers.

    plz help me fixing it ...
    Make sure your install of Ubuntu has the proper development tools installed. Run the following from a console:

    Code:
    sudo apt-get update
    sudo apt-get install build-essential
    Registered Linux user #270181
    TechieMoe's Tech Rants

  4. #4
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    As far as I know .c is uncompiled source ... if so, first compile it.

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    I was trying to run it using Live CD of Linux .. and that was causing problem ... now I've installed Ubuntu and it's working fine ...

    thx for replying Friends ..

Posting Permissions

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