Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I’m doing some screen-scraping using Selenium, a framework which lets you programmatically control web browsers on your system. I’m running it as part of a web app on a Linux server, and on my MacBook Pro for when I’m writing the web app.

On my server, Selenium uses Firefox headlessly (by using Xvfb instead of a real display). I’d like to do the same thing locally, so that I don’t have Firefox windows popping up all the time whilst I’m writing and testing Selenium code. In order to do this, I need to install the X11 version of Firefox on my Mac.

I’ve seen a lot of references to MacPorts and Fink, but is there a way to just install the X11 version of Firefox, rather than installing MacPorts or Fink just for this one-off?

share|improve this question
    
Out of curiosity, why are you shying away from MacPorts? I can't speak for Fink, but I always put MacPorts on my machines right away so I can use get ports when I need to. If I get an app for one-time use, I usually just uninstall it after I'm done with it. –  Nathan Greenstein Mar 14 '11 at 16:38
    
1. The website was down for a while today when I was trying to look into it — didn’t inspire confidence. 2. I get the feeling that both MacPorts and Fink are a bit hard to remove afterwards, and generally a bit faffy and not very Mac-like. (See MacPorts’ uninstall instructions and Fink’s “Fink is not a one-click-and-done thing”). I’d prefer a binary I can stick in /usr/local/bin and forget about — not sure if that’s realistic for an app like Firefox though. –  Paul D. Waite Mar 14 '11 at 17:11
    
Removing fink is rm -fR /sw and nothing else should remain. –  user588 Mar 14 '11 at 17:30
2  
As for "not Mac-like"... you want to run X11 apps, Xvfb, etc. I'm not understanding why something un-mac-ish is a problem. –  user588 Mar 14 '11 at 17:33
2  
Firefox requires a Window library to be linked with e.g. QT, Gnome and so will need a lot of other code so using Macports/Fink would save time –  Mark Mar 15 '11 at 11:12
show 3 more comments

1 Answer

up vote 3 down vote accepted

Firefox requires a Window library to be linked with e.g. QT, Gnome and several other C libraries. Thus to build it will need a lot of other code so I think using Macports/Fink would save time.

If you want any other X11 apps then Macports/Fink is likely to be the easiest way to get them.

Also as per @Nathan G. I have found installing Macports not to be difficult.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.