This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing Linux packages on Mac OSX

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default shell is bash as of Jaguar. Prior to that it was tcsh.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic