![](https://csdnimg.cn/release/download_crawler_static/2393777/bg12.jpg)
Chapter 2: Source installation 11
3.
Apple Mac OSX 10.6.2 Snow Leopard already includes SVN (http://subversion.tigris.org/)
as a command line tool (you can run "which svn" at the OSX terminal to check that
- it should reply with "/usr/bin/svn", which is the path to the SVN binary installed
in your system). In case you prefer using a GUI for SVN in Mac OSX, you can try
the free SvnX (http://code.google.com/p/svnx/).
4.
In case you want to check out the SVN version of Marsyas, just do a SVN checkout
from https://marsyas.svn. sourceforge.net/svnroot/marsyas/trunk - you will get the
most updated version (but not necessarily the most stable version ;-) - for that, get the
latest tarbal from the Marsyas SourceForge website: http://marsyas.sf.net).
5.
Launch CMake (using the CMake GUI that you can find in the OSX Applications
folder using Finder, or using the command line tool ccmake in the OSX terminal), and
specify the source and build directory you want to use for Marsyas. For example, if you
have the Marsyas code directory in you home directory (e.g. ~/Marsyas), you should
point your source path to ~/Marsyas/src and the build directory to somewhere like
~/Marsyas/build/ (you may have to create the ~/Marsyas/build directory before hand
in case CMake GUI or ccmake does not create it for you. Either using CMake GUI or
ccmake in the terminal, just select the option to "configure" using the provided options
(i.e. using the default Marsyas build configuration). CMake GUI will ask youif you
want to create the "~/Marsyas/build" directory in case you haven’t dreated it yourself,
and then ask you to select a generator from a drop down list - here you can ask CMake
to create an UNIX makefile, a XCode project, among other options, but for now just
use the provided options and click "done" (you can also specify a generator when using
the command line tool ccmake - check its documentation). CMake will then look into
your system for libraries, compilers, and present you with a list of the configuration
options it set up for you. Just keep hitting "configure" until all options are grey (in the
CMake GUI) or not signaled with a * (if using ccmake on the terminal), and then just
select "generate". This will generate a UNIX makefile with the default build option
for Marsyas. You can now close CMake.
6.
Open a terminal window in OSX (in case you haven’t yet) and go to ~/Marsyas/build
directory and just run "make". Marsyas compilation will start, and you will be able to
see the compilation evolution in the compiler messages in the terminal. When finished,
you will be able to find the compiled binaries in the ~/Marsyas/build/bin directory.
If you want to install the Marsyas command line tools (e.g. sfplay, bextract, sfplugin,
etc.) into your system, just run "sudo make install" and those tools will be installed in
the appropriate system folders in your machine (you will need administrator privileges
to use "sudo").
7.
As a test to see see Marsyas in action, just go to ~/Marsyas/build/bin and run:
$ ./sfplay someAudioFile.wav
where $ is the command line prompt, and someAudioFile.wav is the path to some audio
file you have in your machine. It should start playing it, so bump up your computer