pigoz / mplayerosx-builds

build scripts of mplayer2 for Mac OSX
35 stars 8 forks source link

Cannot get the standalone binary to run in terminal #12

Closed ghost closed 12 years ago

ghost commented 12 years ago

Clicking on files to open them works after installing the binary in the Applications folder, but whenever I try to run mplayer2 from the terminal no matter what I do it tells me that the command is not found. Do I need to compile from the source to get terminal integration?

Thanks

pigoz commented 12 years ago

The binary is in the .app bundle. If you installed in the /Applications folder you can symlink it to somewhere in your PATH. You can find out your path with echo $PATH from the terminal. To symlink it to /usr/local/bin you can do the following:

ln -nfs /Applications/mplayer2.app/Contents/MacOS/mplayer2 /usr/local/bin/mplayer2

Then you will be able to actually use the binary from the terminal with mplayer2 [options] filename

Cheers Stefano