Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is what I get when I try to start the executable:

Mac-Pro:MacOS george$ /Applications/Firefox.app/Contents/MacOS/firefox
dyld: Library not loaded: /usr/lib/libsqlite3.dylib
  Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
  Reason: Incompatible library version: Security requires version 9.0.0 or later, but libsqlite3.dylib provides version 1.0.0
/Applications/Firefox.app/Contents/MacOS/run-mozilla.sh: line 131:  9870 Trace/BPT trap          "$prog" ${1+"$@"}

I also tried:

MacOS george$ open -a /Applications/Firefox

FSPathMakeRef(/Applications/Firefox) failed with error -43.

Is there a particular way to start the application from the command line?

share|improve this question

migrated from stackoverflow.com May 1 '11 at 0:16

This question came from our site for professional and enthusiast programmers.

up vote 6 down vote accepted

The problem with your second attempt is that your path does not include the .app extenstion.

Try using either

open -a /Applications/Firefox.app

or

open /Applications/Firefox.app
share|improve this answer
    
Correct. I verified. The "old hit tab key to autocomplete trick" fixes that one for me. – Grady Player Apr 29 '11 at 21:48
3  
open -a Firefox works just as well (unless you have multiple instances of the same program installed). – Daniel Beck May 1 '11 at 0:35

These examples will open Firefox, open a specific website, or browse your user's home directory.

open -a firefox
open -a firefox -g http://news.google.com
open -a firefox -g $HOME
share|improve this answer
    
If anyone is wondering about -g, it opens an application on the background, so that it will either be placed behind the frontmost application or have no visible windows. – user495470 Sep 19 '12 at 11:16

You want to run /Applications/Firefox.app/Contents/MacOS/firefox-bin

share|improve this answer

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.