wood burning stoves 2.0*
The moose likes Mac OS and the fly likes Installing Linux packages on Mac OSX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Installing Linux packages on Mac OSX" Watch "Installing Linux packages on Mac OSX" New topic
Author

Installing Linux packages on Mac OSX

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi all.
Since Mac OSX based on FreeBSD, does this mean that any package that could be installed on FreeBSD, could be installed on Mac OSX ?
does this mean that any Linux software package (like bin, rpm) could be installed on Mac OSX ?
thanks.
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Not sure exactly what you mean by "package". A binary executable wouldn't be directly portable from Linux on x86; you'd need to recompile the source code. Then again, the same is true if you wanted to move it from, say, Linux on x86 to Linux on PPC.

It's also to be noted that BSD Unix is somewhat different from Linux.
Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
Mac OS X is not based on FreeBSD, its based on a slightly derived version called BSD Darwin.

Cheers,
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Thanks guys for your feedback.

It's also to be noted that BSD Unix is somewhat different from Linux

well, we can run Linux commands (like ls, pwd ....) on Mac OSX, right ?
This is why I want to leave M$ Windows, They have occupied my mind.
M Beck
Ranch Hand

Joined: Jan 14, 2005
Posts: 323
Originally posted by John Todd:
well, we can run Linux commands (like ls, pwd ....) on Mac OSX, right ?


well, those aren't really Linux commands as such, they're more generally Unix commands. the exact details of them might vary a little between different Unix "dialects" (such as Linux, BSD, and MacOS X) - the precise list of options they take might be a bit different, for example - but the general gist of them is pretty much the same in every Unix-like OS, so MacOS X should have them, yes.

This is why I want to leave M$ Windows, They have occupied my mind.


oh, that's not something to be mad about, that's perfectly natural. Unix is very user-friendly, to those it chooses to pick for its friends at least... and it seems you've been picked!
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Originally posted by M Beck:

well, those aren't really Linux commands as such, they're more generally Unix commands. the exact details of them might vary a little between different Unix "dialects" (such as Linux, BSD, and MacOS X) - the precise list of options they take might be a bit different, for example - but the general gist of them is pretty much the same in every Unix-like OS, so MacOS X should have them, yes.

Yes, Mac OS X has them.

A lot of the slight differences are dependent on which command line shell you use. One can minimize the transition differences by picking the same shell as one used on Linux. I believe the newer versions of OS X changed the default shell to match Linux' default shell, though I'm not certain of that.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60802
    
  65

The default shell is bash as of Jaguar. Prior to that it was tcsh.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Some Linux packages can be installed (e.g. WebLogic, but it's essentially Java app in a Linux installer), but generally no, they don't work.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Originally posted by Unnsse Khan:
Mac OS X is not based on FreeBSD, its based on a slightly derived version called BSD Darwin.

Cheers,


Well, since Darwin is based on FreeBSD, then I guess you say that Mac OS X is also based on FreeBSD.
 
Don't get me started about those stupid light bulbs.
 
subject: Installing Linux packages on Mac OSX
 
Similar Threads
JRun: Not able to run server - jvm not found
Internet on Mac OSX
How Can I Try Linux?
Unix Versions
I HATE WINDOWS SO WHAT UNIX SHOULD I USE?