Porting Unix Command-Line Tools to Mac OS X 92
An anonymous reader writes "Over at Apple has posted a technote on porting Unix programs to Mac OS X. Nothing earth-shattering, but nice to see it all collected."
Term, holidays, term, holidays, till we leave school, and then work, work, work till we die. -- C.S. Lewis
So (Score:4, Insightful)
Re:So (Score:4, Insightful)
Re:So (Score:2, Insightful)
Err, it's a BSD system, not a GNU system. (Score:4, Insightful)
Deal with it.
Re:So (Score:5, Insightful)
then, in the very next sentance: and, just to close it up: man! i've got mod points, and i almost moderated this funny, but i wanted to make sure people got it. you don't want extra complexity, but you prefer the GNU tools to the BSD tools? y'er kiddin', right? how on earth can anyone make sense of that? the GNU tools are, on average, dramatically more complicated than the BSD tools. i used to build Linux boxes that dumped the GNU tools in favor of the BSD tools. then i got annoyed with the GNU C library and tried swapping that out. halfway through the project of rebuilding everything so that it didn't have the stupid glibc dependancies, i got fed up and went back to a BSD system - because the tools were so much simpler. Apple made a great decision in using the BSD tools rather than the GNU tools (license questions aside).
oh, and as a parting kick: right. yup. unless you want it to be a good desktop system.
Re:So (Score:2)
Re:So (Score:2)
Extra complexity that I do not want would be what I described, using fink to maintain two sets of binaries for GNU and BSD versions of the same tool in order to get an additional feature or a different behavior that I desire. I think this is annoying and would prefer just to replace one with the o
Re:So (Score:2)
Simple example (Score:1)
BSD: GNU:
Re:Simple example (Score:1)
which it does by default.
OS X:
unstuff filename.tar.gz
Re:Simple example (Score:1)
For those who don't like fink... (Score:5, Informative)
DarwinPorts [opendarwin.org]
DarwinPorts FAQ [opendarwin.org]
Interview with Jordan Hubbard on DarwinPorts [osnews.com] (Slashdot article [slashdot.org])
Re:So (Score:4, Interesting)
Then why are they selling servers?
There are far more users who couldn't care less about GNU tools and never want to see a command-line.
If they put the GNU tools there, non geeks would never know about it.
Re:So (Score:1)
Re:So (Score:5, Insightful)
Yes there is, it's called value added software. It wouldn't cost very much to do it. Then maybe more geeks would buy macs.
And don't tell me that geeks don't like macs. If they didn't, there wouldn't be a apple.slashdot.org
nuff said
Re:So (Score:2)
Again, geeks aren't Apple's target market and are only a small percentage of sales.
I don't disagree; but, yet again, the geek market is insignificant to Apple's bottom line and to its shareholders' return on investment.
Re:So (Score:2)
If Fink keeps building up steam (as it has been for the past 2 years), maybe that will convince Apple that it's worthwhile to support a few staffers to start porting UNIX cl tools to OS X.
It wouldn't cost very much to do it.
How do you define "not very much?" I'm thinking it would cost at least $75K/employee (including benefits, overhead, and indirect stuff), and take 3 employees 1-2 years to do. But IANAPM (I am not a project manager).
Re:So (Score:4, Insightful)
Re:So (Score:2, Insightful)
-Claude
Re:So (Score:5, Informative)
As to the choice of BSD or GNU standard tools, that's a bit of a personal preference. However since Darwin is based on BSD (with a lot of FreeBSD of late) rather than Linux it shouldn't be surprising that it retains its tools. That is more in keeping with its BSD roots.
As I mentioned elsewhere if you are savvy enough to recognize the difference in the tools you ought to be savvy enough to build the GNU versions of the tools.
Re:So (Score:1)
Think about how much more money apple makes on Software like:
Final Cut Pro/Express
Logic Platinum
Shake
Keynote
but then think about how much money Apple makes on their X11. Maybe indirectly. For example, the matlab package is a lot faster with the Apple's X11 graphics engine and the quartz-wm. And then people buy more Macs because of this, but it is much easier to convience Stockholders about direct income.
Re:So (Score:1)
Re:So (Score:4, Insightful)
Re:So (Score:1)
Re:So (Score:2, Interesting)
I'm the Graphic Designer/IT Guy in a small advertising agency. MacOSX has allowed me to create - entirely for free - our own mail server (fetchmail-sendmail-qpopper), internal job versioning and approval system (Apache-WebDAV), internal messaging application (Apache-perl), firewall (ipfw), remote login (OpenSSH) and probably a myriad of smaller applications that I use without thinking about everyday, all from ported GNU/BSD command-line apps...
...all on the same machine that runs our core-business GUI app
Re:So (Score:3, Insightful)
Because they'd be replicating effort by the Fink [sourceforge.net] people, and that without adding value. When it is possible to add value, they have ported "standard" Unix software, the big example being XFree86 which they hacked to take advantage of the Quartz rendering engine.
Re:So (Score:5, Funny)
Re:So (Score:3, Funny)
Re:So (Score:1, Interesting)
Re:So (Score:5, Insightful)
DarwinPorts [opendarwin.org]
Re:So (Score:2)
Re:So (Score:2)
Re:So (Score:1)
Porting issues (Score:2, Insightful)
Even for command-line programs, once Apple releases something themselves, they implicitly take responsibility for it. If they start doing half-asse
Troll Nostalgia (was:petrified natalie portman) (Score:4, Funny)
stuffing hot grits down my pants while watching *BSD die.
What is this? Retro-trolling? If you're trying to keep up with the latest trolling trends at least make the hot grits stuff you down its pants or something.
Re:Troll Nostalgia (was:petrified natalie portman) (Score:1, Offtopic)
*ahem*
There are no Soviet hot grits stuffing hot pants down you! They are committing suicide at the Gap!
Thank you. Thank you vurry much.
Re:Troll Nostalgia (was:petrified natalie portman) (Score:2)
its about iTime. (Score:4, Interesting)
Especially trying to support some new servers [apple.com]
Either way, this may help the adoption of the Apple into the IT industry a little more.
It'll be interesting to see whether or not they're included into the next release of X.
Re:its about iTime. (Score:2, Informative)
Re:Makes Mac OS easier to use! (Score:5, Insightful)
I recommend you try OS X sometime. You might like it. At the very least you'll understand a little more than it's a bona fide Unix operating system and hasn't been "dumbed down" as you seem to imply.
Re:Makes Mac OS easier to use! (Score:4, Interesting)
Re:Makes Mac OS easier to use! (Score:5, Interesting)
I believe the AC was trying to poke fun at Microsoft for moving away from command line while at the same time Apple is moving towards it. Compare Windows 98 to XP and OS 9 to OS X.
I don't. I think the AC doesn't yet know the difference between a command line interface and a command line tool. He'll learn, he's in the right place.
I'd shy away from making the Win98:WinXP::OS9:OSX analogy, if I were you. Too many lusers will take it too literally./p.
Re:Makes Mac OS easier to use! (Score:2)
Re:Makes Mac OS easier to use! (Score:3, Interesting)
Admittedly, installing a development environment is a little overkill to just get a command line, but it would give you one...
Re:Makes Mac OS easier to use! (Score:2)
There wasn't one. Mac OS and Mac OS X are two fundamentally different operating systems. They are not comparable in such terms. Mac OS X is NeXT (which has a BSD core), with the Mac OS API tacked on.
I wasn't saying that OS-X was dumbed down this way. I was saying that the more they can do to improve the CLI the better, to play "catch up".
I run Slash, a very complex POSIX-heavy system,
Re:Makes Mac OS easier to use! (Score:1, Offtopic)
I think my Terminal application is lost. I "moved" it from the Applications folder to the taskbar so that it would be easier to access, then it got in the way, so I moved it to the trash. However, I didn't realise that it was the real application, and not a link, so now that I've emptied the trash, I don't have a terminal anymore :( I've searched apple.com and the CD's for it, but can't find it anywher
Re:Makes Mac OS easier to use! (Score:2)
Oh, and dragging something from the Apps folder to the Dock (it's not called "taskbar") results in an shortcut or "alias" of the thing. The original item doesn't get moved when one draggs to the Dock. You must've dragged it somewhere else or otherwise deleted it entirely.
Re:Makes Mac OS easier to use! (Score:2)
That does not happen. Dragging something to the Dock and then to the Trash does not delete it. It never has.
Re:Makes Mac OS easier to use! (Score:2)
Yep, I guess that shows how well I know OS X. I guess I moved it to the desktop *and* the Dock, and then deleted it from both places eventually.
-BrentRe:Makes Mac OS easier to use! (Score:2, Insightful)
Open the terminal app and there's a BSD command line/Open Konsole and there's a Linux command line
Login to a console instead of Aqua and there's a command line/Login to a console instead of XFree86 and there's a command line
Re:Makes Mac OS easier to use! (Score:2)
Every time I open Konsole I get a FreeBSD command line instead. Maybe I should log this as a bug to Redhat so they can fix it for me.
The Point. (Score:5, Insightful)
Re:The Point. (Score:3)
Re:what's the point? (Score:3, Funny)
Re:what's the point? (Score:2)
Re:what's the point? (Score:2)
Re:what's the point? (Score:3, Funny)
I need to write my term paper and I'm like, bummer, they're engaged.
OS X is not a Unix like cigarettes don't cause cancer.
Sure the top layers are proprietary, but the Darwin level is all open source. Hell, you can download it from Apple's s
Re:what's the point? (Score:3, Insightful)
Re:what's the point? (Score:5, Informative)
The intersting thing is that the service menu is something very Unixish, many command line utilities would make good services. For those that don't know OS X, services are components that take the current selection and apply some treatement on them. There are services that search google, do text transformation, ec...
Re:what's the point? (Score:5, Informative)
I also use Tiny Fugue [freshmeat.net] in the terminal to connect to a journal community chat server. You need Apple's free Developer Tools to build it though, but it works perfectly.
I also use NcFTP [ncftp.com] for all my ftp needs. It used to be included with 10.1.x, but Apple stopped shipping it with 10.2.x, instead favouring the basic BSD ftp, which they improved in Jaguar. I prefer NcFTP though, and had no problems building it from source with the Developer Tools.
The huge bonus I've found with OS X's terminal is the way it integrates with the "consumer" side of the OS making command line work more conveinent. For example, if I'm not in the mood to drill down into a directory to upload a file in NcFTP I can just drag it onto the terminal after typing "put [space]". I can also command+click links in TF to open them in my browser. These tricks work in the shell too, often handy for perfoming operations on files deeper in directories that I don't want to navigate to by typing them out. (Yes, yes, I'm lazy).
Fugu (Score:1)
What're ya smokin? (Score:2)
Perhaps you have an UNUSUAL problem and haven't bothered to report it to Apple, and therefore they haven't seen it?
Sheesh.
-fred
Unix tools... already ported! (Score:5, Informative)
http://www.osxgnu.org/ [osxgnu.org] Go here for packages to install.
http://fink.sf.net [sf.net] Wow, apt-get for os x
http://finkcommander.sf.net [sf.net] Wow, a gui for fink
http://www.apple.com/downloads/macosx/apple/x11fo
There are many other things to use, too
Re:Unix tools... already ported! (Score:5, Informative)
http://www.apple.com/downloads/macosx/unix_open_so urce/ [apple.com]
Re:Unix tools... already ported! (Score:2)
getopt.h vs unistd.h (Score:2)
Is that all that's required? I tried replacing getopt include with unistd, among other things to try to get http://prdownloads.sourceforge.net/id3v2/id3v2-0. 1 .9.tar.gz [sourceforge.net] to compile on OS X, and it still didn't. I don't have a Mac, this was on a friend's machine, so I don't have the error.
BTW, in order to get id3lib [sf.net] to compile (which id3v2 [sf.net] above depends on) I had to use these flags:
Easier solution (Score:2, Interesting)
Re:Easier solution (Score:3)
Another approach (Score:1)
Interesting hedge (Score:2)
It doesn't seem like such a stretch to assume that other architectures are officially not out of the question, with a hedge statement like this one. Very interesting...
Re:Interesting hedge (Score:4, Informative)
It means that at one time, there were more archs supported. NeXT/Open Step ran on ix86, m68k, powerpc, mips, sparc, etc.
It doesn't seem like such a stretch to assume that other architectures are officially not out of the question, with a hedge statement like this one. Very interesting...
I wouldn't be too surprised if Apple has most of those running internally. I also wouldn't be too surprised if they release a server based on something that isn't powerpc, but the client is out of the question.
I also wouldn't be too surprised if an unreleased version of Windows 2003 Server runs on PowerPC and MIPS.
Re:Interesting hedge (Score:2)
google://apple+marklar
*shudder*
Darwin/x86 (Score:2)
Mac OS X is still PPC only, of course.
Re:Interesting hedge (Score:2)
Re:Interesting hedge (Score:2)
GNU? (Score:3, Funny)
Not to moderators: It's a Joke. Laugh.