Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Running object file on commandline (http://www.mac-forums.com/forums/os-x-development-darwin/149681-running-object-file-commandline.html)

Dr. Lacrimosus 04-22-2009 06:28 PM

Running object file on commandline
 
I have an object file that I've made using gcc on a linux box. I sent it to my mac, and I tried running it like so:

./DESkey

It wouldn't let me run it, so I tried

sudo ./DESkey

After I entered my password, sudo said the command ./DESkey was not found.

What am I doing wrong?

xstep 04-26-2009 01:03 AM

I should think you have to compile that on the platform you are going to run it.

I'm not sure why it says it didn't find it. Have you set it to be executable. Even if you get that far, I'd expect it to blow up.

DairyKnight 04-27-2009 10:58 AM

Try: find ./DESkey
what's the outcome?


All times are GMT -4. The time now is 04:42 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.