PDA

View Full Version : problem running c program



nkv1
January 6th, 2011, 05:52 PM
I burned Ubuntu 10.10 iso to cd and used try from cd option on system start
i want to run a c program i made at home to test cpu for a project.
package build-essential is installed
compiling code works,
execution does not work.
u have a screenshot of terminal below
http://www.freepichosting.com/image/329690-Screenshot.png (http://www.freepichosting.com/share/329690-Screenshot.png)

MadCow108
January 6th, 2011, 06:13 PM
probably the disk is mounted with "noexec" which does not allow executing programs.

type mount and look for noexec

sudo mount -o remount,exec /media...
should remount it with executable permissions

Vox754
January 6th, 2011, 06:23 PM
probably the disk is mounted with "noexec" which does not allow executing programs.

type mount and look for noexec

sudo mount -o remount,exec /media...
should remount it with executable permissions

Apparently, since Ubuntu 10.10 NTFS partitions are auto-mounted without execute permissions.

This is a similar thread: help "command not found" (http://ubuntuforums.org/showthread.php?t=1636929)

The solution is to remount the partition with execute permissions.

nkv1
January 9th, 2011, 04:15 PM
Great it works thx all