Go Back   Web Server Hosting Forum by BODHost > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-08, 16:31
BOD Member
 
Join Date: Mar 2008
Posts: 4
Default How to Install Icecast ?

I guys i have tried to install icecast for the past 2 days
but since this is my first time using Linux
i didnt manage to do it
can some1 help me ?

thanks
Reply With Quote
  #2 (permalink)  
Old 03-17-08, 10:56
Moderator
 
Join Date: Oct 2005
Posts: 346
Default

Surely,

One of our support department members will respond to you shortly.

Samantha
Reply With Quote
  #3 (permalink)  
Old 03-17-08, 11:36
Moderator
 
Join Date: Oct 2005
Posts: 346
Default Icecast Streaming media server Installation

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
Reply With Quote
  #4 (permalink)  
Old 03-17-08, 15:40
BOD Member
 
Join Date: Mar 2008
Posts: 4
Default

Hello Samantha

Thanks for your prompt reply

i have tried what you have told me

i got to this point and i am having trouble

After downloading Icecast, Untaring it, when i do ./Configure
i get this error

[root@vps1246 icecast-2.3.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@vps1246 icecast-2.3.1]#
\

what should i do next ?

thanks
Reply With Quote
  #5 (permalink)  
Old 03-19-08, 05:37
BOD Member
 
Join Date: Jul 2007
Posts: 128
Default

I think you will have to install GCC because you need a compiler.
Reply With Quote
  #6 (permalink)  
Old 03-19-08, 09:16
BOD Member
 
Join Date: Mar 2008
Posts: 4
Default

Quote:
Originally Posted by Rodricks View Post
I think you will have to install GCC because you need a compiler.
GCC is installed
Reply With Quote
  #7 (permalink)  
Old 03-19-08, 09:50
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

Perhaps, you can run the following :

CC="cc_name" ./configure
Reply With Quote
  #8 (permalink)  
Old 03-19-08, 20:44
BOD Member
 
Join Date: Mar 2008
Posts: 4
Default

[root@vps1246 home]# cd icecast2
[root@vps1246 icecast2]# CC="cc_name" ./configure
-bash: ./configure: No such file or directory
[root@vps1246 icecast2]#
[root@vps1246 icecast2]#


it didnt work
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.