My favourite error: exec_tty error: Cannot run program: Unknown reason

By | November 4, 2015

Well, almost my favourite, but it is pretty cryptic to say the least. All I was trying to do was run the default Hello World C program after a fresh install of Eclipse. (4.4 in this case) on Ubuntu 14.04

exec_tty_error

After a bit of searching, this post nailed it. http://stackoverflow.com/questions/11390163/running-ubuntu-eclipse-c-helloworld

I was trying to execute the hello world C code on a shared drive (I have dual boot). The first thing to do is to change the workspace to your local home directory. When I did that, it worked like a charm.

So you can either leave it like that or start getting fancy and allow the mountable drive to have executable code. If you run:

>> cat /proc/mount | grep noexec

If the drive where your code is sitting on appears, then you can try to remount it by:

>> sudo mount -o remount,exec /your/drive/path/here

If this doesn’t work, then you’ll have to look at “how to run an exe from a mounted drive”. (http://askubuntu.com/questions/235288/how-to-run-an-executable-from-a-mounted-drive)

If the mounted drive is part of a windows partition, which mine was, then there is yet another step involved.

I was just happy to have it work on my home drive and live to fight another. By the way, my favourite error has got to be a Null Pointer Exception!

Leave a Reply

Your email address will not be published. Required fields are marked *