Hello,
Following steps will allow to install Icecast very easily.
> Basically Icecast depends upon several external libraries such as libxslt and libxml2 that would compile with MAC OSx.
Perhaps, you can use the fink version, you can download it from sourceforge. To find libraries installed by fink, you will need to use the following commands ( this has been placed into my ~/.tcshrc ) :
===========================================
setenv CFLAGS -I/sw/include
setenv LDFLAGS -L/sw/lib
setenv CXXFLAGS $CFLAGS
setenv CPPFLAGS $CXXFLAGS
setenv ACLOCAL_FLAGS "-I /sw/share/aclocal"
setenv PKG_CONFIG_PATH "/sw/lib/pkgconfig"
===========================================
In case the package does not utilize the variables, they need to be added to the -I/sw/include (for headers) and -L/sw/lib (for libraries). However, it is also a possibility that it may use non-standard varaibles ( EXTRA_CFLAGS or --with-qt-dir= configure options ).
==================
./configure --help
==================
The above command can assist you with more options. Once it has been installed, you may start a terminal session and utilize fink to install the dependancies such as follows :
===================================
% sudo apt-get install libxslt
% sudo apt-get install libxml2
% sudo apt-get install curl
===================================
Thereafter, you need Ogg Vorbis libraries :
% curl -O -#
http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
################################################## ###################### 100.0%
% gnutar zxf libogg-1.1.3.tar.gz
% cd libogg-1.1.3
% ./configure
% make
% sudo make install
% cd ..
% curl -O -#
http://downloads.xiph.org/releases/v...s-1.2.0.tar.gz
################################################## ###################### 100.0%
% gnutar zxf libvorbis-1.2.0.tar.gz
% cd libvorbis-1.2.0
% ./configure
% make
% sudo make install % cd ..
In case you get few errors in envelop.c. You may edit ./lib/envelope.c and remove the white space from the beginning of lines 281 / 364 and 370
Get Icecast and also the fixes to them.
================================================== ==========================
% curl -O -#
http://downloads.xiph.org/releases/i...t-2.3.1.tar.gz
% gnutar zxf icecast-2.3.1.tar.gz
% cd icecast-2.3.1
% cd src
% curl -O -#
http://svn.xiph.org/icecast/trunk/icecast/src/fserve.c
% cd ..
% ./configure
% make
% sudo make install
================================================== ===========================
The documentation is located at file:///usr/local/share/doc/icecast/index.html and configuration file is located at file:///usr/local/etc/icecast.xml
Icecast requirest to run as root. However, it is possible to minimize the securtiy concerns by editing icecast.xml as follows :
================================================== ===========================
< paths >
< basedir >/usr/local/share/icecast< /basedir >
< logdir >/log< /logdir >
< webroot >/web< /webroot >
< adminroot >/admin< /adminroot >
< /paths >
< security >
< chroot >1< /chroot >
< changeowner >
< user >icecast< /user >
< group >staff< /group >
< /changeowner >
< /security >
(Ignore the spaces between <>)
================================================== ============================
From the command-line, you will have to create a new user such as follows :
================================================== =============
% sudo mkdir -p /usr/local/share/icecast/{.,log,web,admin}
% sudo chown icecast /usr/local/share/icecast/{.,log,web,admin}
% sudo chgrp staff /usr/local/share/icecast/{.,log,web,admin}
================================================== =============
You may now start icecast
============================================
% sudo icecast -c /usr/local/etc/icecast.xml
============================================
Please check the file permissions that you are about to share.
================================================== ===
% sudo mkdir -p ${CATALINA_HOME}/metastream/
% sudo cp -r WebRoot/* ${CATALINA_HOME}/metastream/
================================================== ===
Edit ${CATALINA_HOME}/metastream/WEB-INF/web.xml
<param-name>mp3Host</param-name>
<param-value>http://rosenkrantz.geektimes.com:8000</param-value>
<param-name>mp4Host</param-name>
<param-value>rtsp://rosenkrantz.geektimes.com:554</param-value>
================================================== ===
Once dones, you may remove the install by following :
=====================
% cd ~
% rm -rf ~/install
=====================
We assume that would help
