LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Icecast 2 (https://www.linuxquestions.org/questions/linux-newbie-8/icecast-2-a-258677/)

grayram 11-24-2004 02:22 AM

Icecast 2
 
Scenario:
I tried setting up IceCast 2 on my local PC running Windows 2000, Apache 2, MySQL and PHP 4 and did some live audio streaming. It did great. Now I want to try this on a Fedora Core 1 box and completely elliminate all traces of Micro$oft products in my PC.

The problem:
1. I know nothing about Linux (except for ls and cd).
2. Everything else follows...

Can somebody help with this (Pls. no Matian language again)...

hutuworm 11-24-2004 02:39 AM

You may want to try the simple one: http://ample.sourceforge.net/

grayram 11-24-2004 02:43 AM

Does this one support streaming audio coming from external source? (e.g. microphone, mixer, etc.). Thanks

MasterC 11-24-2004 02:43 AM

I think the first thing to actually do is try. Grab the source, and read the posts on installing applications in Linux. Or possibly there is an RPM out there for your system. From there, it's much easier to walk you through areas where you run into trouble.

That is of course if you do need the robustness of IceCast and something smaller won't suffice (for example, ample as mentioned above).

Cool

grayram 11-24-2004 03:51 AM

sorry for asking...

MasterC 11-24-2004 04:03 AM

Oh no, please, don't take my response as that. Rather I meant to give it a go, and if you run into problems, it'll be a lot easier to guide you through at that point.

If you need some in depth help with installing applications, there are multitudes of threads that give very good instructions, nonetheless, if you cannot understand them, let us know so we can clarify the portion you can't understand.

Cool

jeremy 11-24-2004 08:43 AM

FWIW IceCast 2.1.0 has RPM's available and is fairly straight forward to setup. I'd say give it a try, and let us know if you run into any problems.

--jeremy

grayram 11-25-2004 07:33 PM

Thanks guys!

I'll give that a go then I'll get back whether successful or not.

Thanks again.

grayram 11-25-2004 07:48 PM

Hi again. Still no success.

This is what I did:

Code:

tar xvzf /path-to-tarball/icecast-1.3.7.tar.gz
It did OK. And then

Code:

./configure
creating cache ./config.cache
Building icecast-1.3.7...
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for uname... uname
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking your OS... Linux
checking for socket... yes
checking for connect... yes
checking for log... no
checking for log in -lm... yes
checking for gethostbyname... yes
checking for nanosleep... yes
checking whether to support readline... no
checking whether to use libwrap... no
checking whether to use crypted passwords... no
checking for pthread functions in standard libraries... no
checking for pthread_create in -lpthread... yes
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fcntl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for sys/soundcard.h... yes
checking for machine/soundcard.h... no
checking for pthread.h... yes
checking for assert.h... yes
checking for sys/resource.h... yes
checking for math.h... yes
checking for signal.h... yes
checking for sys/signal.h... yes
checking for mcheck.h... yes
checking for malloc.h... yes
checking for history.h... no
checking for Python.h... no
checking for working const... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... (cached) void
checking for unix98 socklen_t... yeah
checking for strftime... yes
checking for vprintf... yes
checking for gettimeofday... yes
checking for strstr... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for rename... yes
checking for setpgid... yes
checking for basename... yes
checking for setsockopt... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for umask... yes
checking for inet_addr... yes
checking for inet_aton... yes
checking for localtime_r... yes
checking for select... yes
checking for pthread_attr_setstacksize... yes
checking for inet_ntoa... yes
checking for mcheck... yes
checking for mallinfo... yes
checking for mtrace... yes
checking for sigaction... yes
checking for pthread_sigmask... yes
checking for lseek... yes
checking if libm is bundled with some lib we're already linking... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/authenticate/Makefile
creating conf/Makefile
creating templates/Makefile
creating conf/icecast.conf.dist
creating doc/Makefile
creating config.h
Ok, everything seems ok. Now do 'make'.
You can then run make install to install as you specified
[root@xeon icecast-1.3.7]# make
make  all-recursive
make[1]: Entering directory `/usr/local/src/icecast-1.3.7'
Making all in src
make[2]: Entering directory `/usr/local/src/icecast-1.3.7/src'
Making all in authenticate
make[3]: Entering directory `/usr/local/src/icecast-1.3.7/src/authenticate'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -Wall -ansi -pedantic -I../../src      -g -O2 -c basic.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -Wall -ansi -pedantic -I../../src      -g -O2 -c user.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -Wall -ansi -pedantic -I../../src      -g -O2 -c group.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_REENTRANT -Wall -ansi -pedantic -I../../src      -g -O2 -c mount.c
rm -f libauthenticate.a
ar cru libauthenticate.a basic.o user.o group.o mount.o
ranlib libauthenticate.a
make[3]: Leaving directory `/usr/local/src/icecast-1.3.7/src/authenticate'
make[3]: Entering directory `/usr/local/src/icecast-1.3.7/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c client.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c admin.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c source.c
source.c: In function `find_mount_with_req':
source.c:591: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c connection.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c log.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c directory.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c commands.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c sock.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c threads.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c logtime.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c commandline.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c utility.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c avl.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c avl_functions.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c match.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c relay.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c timer.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c alias.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c restrict.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c static.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c http.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c ice_string.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c dir.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c vars.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c memory.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c ice_resolv.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c item.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c pool.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -Wall -ansi -pedantic      -g -O2 -c interpreter.c
gcc  -g -O2  -o icecast  main.o client.o admin.o source.o connection.o log.o directory.o commands.o sock.o threads.o logtime.o commandline.o utility.o avl.o avl_functions.o match.o relay.o timer.o alias.o restrict.o static.o http.o ice_string.o dir.o vars.o memory.o ice_resolv.o item.o pool.o interpreter.o authenticate/libauthenticate.a  -lm  -lpthread
commands.o(.text+0x401e): In function `com_dump':
/usr/local/src/icecast-1.3.7/src/commands.c:2151: undefined reference to `errno'
collect2: ld returned 1 exit status
make[3]: *** [icecast] Error 1
make[3]: Leaving directory `/usr/local/src/icecast-1.3.7/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/icecast-1.3.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/icecast-1.3.7'
make: *** [all-recursive-am] Error 2
[root@xeon icecast-1.3.7]# make install
Making install in src
make[1]: Entering directory `/usr/local/src/icecast-1.3.7/src'
Making install in authenticate
make[2]: Entering directory `/usr/local/src/icecast-1.3.7/src/authenticate'
make[3]: Entering directory `/usr/local/src/icecast-1.3.7/src/authenticate'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/icecast-1.3.7/src/authenticate'
make[2]: Leaving directory `/usr/local/src/icecast-1.3.7/src/authenticate'
make[2]: Entering directory `/usr/local/src/icecast-1.3.7/src'
gcc  -g -O2  -o icecast  main.o client.o admin.o source.o connection.o log.o directory.o commands.o sock.o threads.o logtime.o commandline.o utility.o avl.o avl_functions.o match.o relay.o timer.o alias.o restrict.o static.o http.o ice_string.o dir.o vars.o memory.o ice_resolv.o item.o pool.o interpreter.o authenticate/libauthenticate.a  -lm  -lpthread
commands.o(.text+0x401e): In function `com_dump':
/usr/local/src/icecast-1.3.7/src/commands.c:2151: undefined reference to `errno'
collect2: ld returned 1 exit status
make[2]: *** [icecast] Error 1
make[2]: Leaving directory `/usr/local/src/icecast-1.3.7/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/icecast-1.3.7/src'
make: *** [install-recursive] Error 1

As we can see there are some Martian phonetics displayed after that. I did it right, right? Can somebody help me please decipher these codes into human-readable language?

Thanks.

MasterC 11-26-2004 04:09 AM

When you get an error and it does not complete a successful 'make' a make install is not the way to continue ;) If somebody somehow goofed when writing something, you could be installing things that didn't really end up being compiled, or compiled completely, and then you'd have yourself a ton of worthless files trollin around your system.

I'd say the way to go is probably grabbing either the CVS version, see if that undefined reference is fixed, or an older version where it may not exist, OR the better option to grab the RPM that Jeremy referred to as it would be much easier to install on your system.

Cool

jeremy 11-26-2004 08:07 AM

Also, the 1.3.x tree is no longer supported. You may want to grab 2.1.x and try again.

--jeremy

grayram 11-26-2004 08:08 PM

Now hear'ya all: ITS WORKING!!!! :D

Thanks to everyone who most patiently helped with my problem, no matter how stupid the questions are sometimes. :rolleyes:

If you also have some problems dealing with live audio streaming or palnning to setup one, email or chat with me at jhourlad01@yahoo.com.

And of course, if you have real questions and want real answers POST IT HEAR AT LINUXQUESTIONS.ORG!!!

This site rules!!!!! Chow... ;)

MasterC 11-27-2004 12:54 AM

Woohoo!


All times are GMT -5. The time now is 11:40 AM.