views:

80

answers:

3

I am trying to compile lanshark for mac, but do not know how to compile on mac. I am guessing that it is possible to compile linux source code on mac. if not how can i get this program to run?

+1  A: 

A mac is, under the hood, a BSD 'darwin' box.

Go and take a look at the MacPorts webpage. You'll find lots of interesting information (like where to get a compiler etc ) there.

Another place to go for an apple development environment is apple (xcode) ...

lexu
A: 

It should be possible to get that to run, but it will be a bit of work. The source may need a small amount of modification, depending on exactly how the protocol works (if they're using raw ethernet, that is done quite differently). Also, the OS X linker (ld) works completely differently to the Linux linker, and so the build system will need a bit of tinkering.

However, the compilers and build utilities are in the XCode bundle on your install disk, or at the download link in the other answer, so install that and give it a go. If you're lucky, just following the Linux instructions will build it.

Andrew McGregor
A: 

Lanshark is written in python, so it doesn't need to be compiled, only interpreted. Follow this guide to installing python and py-gtk and you should be good to go.

http://www.php-architect.com/blog/2009/02/25/installing-python-pygtk-on-mac-osx/

Cheers

Superman