wood burning stoves*
The moose likes Mac OS and the fly likes Unix stuff Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Unix stuff" Watch "Unix stuff" New topic
Author

Unix stuff

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Just got my first mac this weekend and am still stumbling around trying to get used to it.
I'm coming from using Redhat / Fedora almost exclusively for the last decade.

What I'm missing most right now is Yum.
I downloaded the source to wget and found that there is no c compiler on this machine.

So, my question is: What is the best practice when it comes to getting the core-utils (wget, shred, etc..) that one would expect to find on a Linux box?
Should I get things one at a time or should I look into something like Darwin ports?

I'm thinking that I want to avoid downloading and installing any large suites of tools that might stomp on some of the OSX/BSD tools that came with this OS.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

First up, you probably want to get the C compiler on your computer. Put your installation DVD back in your computer, then open the "Optional Installs" folder. There you will find the XCode package, which gives you the Apple development environment, including GCC.

My next suggestion would be to install Fink. This gives you access to a lot of the Linux applications that have been already ported to the Mac. It also uses the Debian format for archives, which can make it easier if you need to do a custom modification or build something manually that you want included in the repositories.

To install wget, I run:

And it is done! I now have wget on that computer.

Similarly, I can find out what packages are named something like wget:


There is also a GUI, but I don't use it very often.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

I should also mention that Fink will not deliberately stomp on existing installed software. By default, it knows about what is installed, and has "virtual" packages installed for them. So if you try to install something that would otherwise stomp on existing software, you will be warned about the conflict.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Thanks, Andrew.

I did find XCode on the Apple site and installed it.
I didn't realize that it was on the disk. I'll take some time to RTFM when I get home this evening.

I'll look into Fink.
It sounds similar to Darwin Port.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unix stuff
 
Similar Threads
servlet runner
Help me save my Java Webapp from the PHP Hordes!
Downloading excel file using shell script
Default bind address for wget
FTP v/s HTTP, which one is better?