UNIX executables on Mac OS X Tiger

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) UNIX executables on Mac OS X Tiger
# 1  
Old 04-22-2006
Bug 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! Smilie
# 2  
Old 04-22-2006
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.
# 3  
Old 04-22-2006
Sorry. I didn't realize that.

Sun Microsystems SunOS 5.9

Thanks! Smilie

Anton
# 4  
Old 04-23-2006
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 !
# 5  
Old 04-24-2006
Thank you, Neo! :)

Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. OS X (Apple)

Mac OS X Tiger Password Storage

Are Mac OS X 10.4.11 Tiger passwords only stored in /var/db/shadow/hash? Or is it also used in NetInfo? The reason I am asking is because I wonder if I edit the file in /var/db/shadow/hash and replace the hash inside with my own, will it change the password? Thanks. (0 Replies)
Discussion started by: Ricardo-san
0 Replies

2. Cybersecurity

TARA Tool (Tiger)

Hi everybody. Im a starter on Unix systems.. i need check some security issues on UNIX server something like: ports, last patches, users acount, etc. I need do that, before the server wil be on production enviorement. i Found a tool that i guess does that... TARA. Somebody works with... (0 Replies)
Discussion started by: shaq
0 Replies

3. Programming

Problem with Compiling C on Tiger

I've downloaded Xcode and i've done : which "gcc" which "ggc-4.0" and which "c99" all were found in /usr/bin/ however with the script #include <stdio.h> main() { printf("hello, world\n"); } and when I, in command line use the command while in my home dir: gcc cprog.c -o cprog (4 Replies)
Discussion started by: cleansing_flame
4 Replies

4. Programming

help on compiling a C program on Tiger

here is the very simple bob.c: main() { printf("hello"); } i use tiger and i use the command: gcc bob.c and the end result: bob.c: In function ‘main': bob.c:3: warning: incompatible implicit declaration of built-in function /‘printf' any help appreciated, i'm just starting... (4 Replies)
Discussion started by: cleansing_flame
4 Replies

5. UNIX for Dummies Questions & Answers

Installing gdm on mac os x tiger

I was installing gdm on the terminal application and my ISP disconnected. When I reconnected and tried to continue the installation, I got the following message: Waiting for lock on... (0 Replies)
Discussion started by: adrianzen
0 Replies

6. News, Links, Events and Announcements

Mac OS X - Tiger - Meet the world’s most advanced operating system.

Tiger Unleased Advanced UNIX-Based Technology (0 Replies)
Discussion started by: Neo
0 Replies
Login or Register to Ask a Question