steps to install xuggle on a server

Dec 5, 04:45 AM

apache subversion should first be installed to use the “svn” command – this is not mentioned in the xuggle documentation. possibly this can be skipped if subversion is not being used. for now, the source code can be gzipped manually if subversion does not work.

— first the apr (apache portable runtime) library:

curl http://www.reverse.net/pub/apache//apr/apr-1.4.5.tar.gz > apr-1.4.5.tar.gz ;
gunzip -c apr-1.4.5.tar.gz | tar -xvf – ; apr-1.4.5/ ;
./configure;
make ;
make check ;
make install ;

— then apr-util:

curl http://www.reverse.net/pub/apache//apr/apr-util-1.3.12.tar.gz > apr-util-1.3.12.tar.gz ; ./configure —prefix=/usr/local/apr —with-apr=/usr/local/apr ;
make test;

— then sqlite:

curl http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz > sqlite-autoconf-3070900.tar.gz ;
gunzip -c sqlite-autoconf-3070900.tar.gz | tar -xvf – ;

— then berkley-db: (MIGHT NOT BE NEEDED)

berkley-db has to be downloaded from the berkey-db oracle site and you have to log in! – download to the build_unix directory
cd build_unix ;
../dist/configure ; make ; make install ;

— apache-serf: curl http://serf.googlecode.com/files/serf-0.7.2.tar.gz > serf-0.7.2.tar.gz ;

— then finally subversion:

curl http://www.fightrice.com/mirrors/apache/subversion/subversion-1.7.2.tar.gz > subversion-1.7.2.tar.gz ; gunzip -c subversion-1.7.2.tar.gz | tar -xvf – ;
cd subversion-1.7.2/ ; ./configure —prefix=/usr/local/apr —with-apr=/usr/local/apr —with-apr-util=/usr/local/apr ;

===============================================

this is written from http://www.xuggle.com/xuggler/downloads/build.jsp

i will be building this on host-gator:

0) yum install compat-libstdc++.so.5 ;

1) install java jdk
curl http://download.oracle.com/otn-pub/java/jdk/6u29-b11/jdk-6u29-linux-x64.bin > jdk-6u29-linux-x64.bin ; # grab executable
chmod 777 jdk-6u29-linux-x64.bin ; #make file executable
./jdk-6u29-linux-x64.bin ; #binary execute
mkdir /usr/java ; # change directory
mv ./jdk1.6.0_29/ /usr/java/ ; ## move the file to the common area
export PATH=$PATH:/usr/java/jdk1.6.0_29/bin;
export JAVA_HOME=/usr/java/jdk1.6.0_29/;

— check:
which java ;
java -version ;
java version “1.6.0_29”
Java™ SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot™ 64-Bit Server VM (build 20.4-b02, mixed mode)

2) install apache ant

more instructions here

curl http://download.nextag.com/apache//ant/binaries/apache-ant-1.8.2-bin.tar.gz > apache-ant-1.8.2-bin.tar.gz ;
gzip -d apache-ant-1.8.2-bin.tar.gz ; #decompress it
tar -xvf apache-ant-1.8.2-bin.tar ; # unpack it
cd apache-ant-1.8.2; #change directory
mkdir /usr/ant; # new directory
mv ./apache-ant-1.8.2/ /usr/ant ;
export PATH=$PATH:/usr/ant/apache-ant-1.8.2/bin ;

check:
which ant ;
ant -version ;
Apache Ant™ version 1.8.2 compiled on December 20 2010

3) check gcc version:
gcc —version ;
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)

4) check make version

5) install yasm

curl http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz > yasm-1.2.0.tar.gz ; gzip -d yasm-1.2.0.tar.gz ;
tar -xvf yasm-1.2.0.tar ;
cd yasm-1.2.0/ ;
./configure ;
make ;
make check ;
make install ; yasm —version ;
yasm 1.2.0
Compiled on Dec 6 2011.
Copyright © 2001-2011 Peter Johnson and other Yasm developers.

6) finally, xuggle!

— set path definitions:
export XUGGLE_HOME=/usr/local/xuggler ;
export PATH=$XUGGLE_HOME/bin:$PATH ;
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH ;

this did NOT work:
svn checkout http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler xuggle-xuggler ;

svn could not see the “serf” or “neon” modules.

instead, i got this gz file
curl http://com.xuggle.s3.amazonaws.com/xuggler/xuggler-3.4.FINAL/xuggle-xuggler.3.4.1012-src.tar.gz > xuggle-xuggler.3.4.1012-src.tar.gz ;
and just gzip’ed it:
gunzip -c xuggle-xuggler.3.4.1012-src.tar.gz | tar -xvf – ;

insert a line into /etc/ld.so.conf.d/xuggler.conf
echo ‘/usr/local/xuggler/lib’ > /etc/ld.so.conf.d/xuggler.conf ;
ldconfig -v ;

then:
ant run-tests;
ant install ;

to test:
ffmpeg —version ; #ffmpeg -i Tester.spx -y -vn -acodec libspeex -ac 1 -ar 16000 -f flv Tester.flv ; #ffmpeg -i Tester.spx tester.wav ;

Mark Edwards

,

---

Commenting is closed for this article.

---