The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
TARA Tool (Tiger) shaq Security 0 05-16-2008 12:01 PM
Problem with Compiling C on Tiger cleansing_flame High Level Programming 4 03-04-2008 04:01 PM
help on compiling a C program on Tiger cleansing_flame High Level Programming 4 01-29-2008 11:59 AM
Installing gdm on mac os x tiger adrianzen UNIX for Dummies Questions & Answers 0 07-17-2006 05:28 AM
cannot create executables stufine UNIX for Dummies Questions & Answers 6 01-23-2003 12:43 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-2006
thorninc's Avatar
Registered User
 

Join Date: Apr 2006
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Smile UNIX executables on Mac OS X Tiger

Question:

Can I run a UNIX executable on Mac OS X Tiger?

If so, how is it done?

Background:

I FTP'd my schools UNIX server some C++ code and header files. Then I used Telnet to get g++ to compile them.

I then FTP'd the UNIX executable back to my PowerBook G4.

I've already used chmod to allow me to read and write from/to the file. I've also tried the command ./UNIXHashTable to run it. Here is the result fo that effort:

Thorn-Inc-15-G4:~/Desktop antonthorn$ chmod u+rwx UNIXHashTable
Thorn-Inc-15-G4:~/Desktop antonthorn$ ./UNIXHashTable
-bash: ./UNIXHashTable: cannot execute binary file

P.S. It's not a big deal if I can't run this program on my Mac without having to recompile it, but if there is a way it can be done, I'd like to know how. Thank you in advance!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-22-2006
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 3,955
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Tiger is a form of UNIX.

Different UNIX servers may have compatible operating systems. To answer your question, you need to inform everyone here the exact UNIX operating system your "school" system uses.
Reply With Quote
  #3 (permalink)  
Old 04-22-2006
thorninc's Avatar
Registered User
 

Join Date: Apr 2006
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Sorry. I didn't realize that.

Sun Microsystems SunOS 5.9

Thanks!

Anton
Reply With Quote
  #4 (permalink)  
Old 04-23-2006
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 3,955
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
The best way to have cross-platform interoperability is to use GNU GCC on both platform to configure and compile GCC compatible source code. Binaries on SUN OS will not work on OS X, and OS X binaries with not work on SUN OS.

For example, see:

http://www.kempston.net/solaris/utilitysoftware.html

and

http://developer.apple.com/tools/gcc_overview.html

and also:

http://developer.apple.com/tools/

and don't forget:

www.gnu.org !
Reply With Quote
  #5 (permalink)  
Old 04-23-2006
thorninc's Avatar
Registered User
 

Join Date: Apr 2006
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thank you, Neo! :)

Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102