I tried to install Xuggler on CentOS but it was throwing exceptions (don't
have the specifics right now) and after email exchanges with Art Clarke,
ended up building it on CentOS server. I've successfully installed it on
CentOS, deployed in Tomcat 5.5 and it has been working fine for the last 6+
months.
Let me know if I can answer any specific build related questions.
Dilip
--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Sunday, March 27, 2011 10:15 AM
To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Xuggler on Linux
> --
> You received this message because you are subscribed to the Google Groups
> "xuggler-users" group.
> To post to this group, send email to xuggle...@googlegroups.com.
> To unsubscribe from this group, send email to
> xuggler-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/xuggler-users?hl=en.
>
>
Install on Linux:
Note: Due to compatibility issues, Xuggler had to be build from source on the Linux server
List of prerequisites and installation steps are given on xuggler’s website:
http://www.xuggle.com/xuggler/downloads/build.jsp
You can use the following command to list packages installed on the server:
rpm -qa --queryformat "%{GROUP} %{NAME}-%{VERSION}\n" | sort
· Install Apache Ant
· Perl came pre-installed on the dedicated server
· GCC / G++ came preinstalled on the dedicated server
· gmake 3.81 came preinstalled on the dedicated server
· Install yasm
· Install Subversion
Notes:
· Make sure ANT_HOME is defined
Steps followed when installed last (Apr 2010):
1. Get the source code in a convenient folder, for example /home/dilipvshah
In one line, execute the following command:
svn checkout http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler xuggle-xuggler
This will create folder xuggle-xuggler and get all the code in that folder
2. Set the necessary environment variables as follows:
export XUGGLE_HOME=/usr/local/xuggler
export PATH=$XUGGLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH
Add them in /root/.bash_profile file as well for permanent setting
3. Before starting the installation, make sure there is no other version of FFMpeg installed in the path before the XUGGLE_HOME/lib versions (this came from Art Clarke of Xuggle)
4. Switch to folder xuggle-xuggler and run the following command:
ant run-tests
Check that all tests ran 100% successfully. If they did, then execute:
sudo ant install
This will install Xuggler in /usr/local/xuggler directory
Install on Tomcat
Once Xuggler has been installed on the server, follow these steps to install it on Tomcat on that server:
1. Place the xuggle-xuggler.jar JNI files in $CATALINA_HOME/shared/lib
These are OS specific files. Basically, copy content of
XUGGLE_HOME/lib
to
CATALINA_HOME/shared/lib
2. Copy the Xuggler jar file in CATALINA_HOME/common/lib
Copy the content of
XUGGLE_HOME/share/java/jars
to
CATALINA_HOME/common/lib
Add Xuggler environment variables in Tomcat’s startup file.
Add the following to startup.sh:
echo "setting Xuggler env variables..."
export XUGGLE_HOME=/usr/local/xuggler
echo "XUGGLE_HOME=$XUGGLE_HOME"
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
export PATH=$XUGGLE_HOME/bin:$PATH
echo "PATH=$PATH"
This completes Xuggler installation in Tomcat (5.5, in my case).
Hope this helps.
Dilip
Yes, you need to have Java installed on the machine. I have jdk1.6.0_23 on
the server on which I installed Xuggler.
For Ant (1.8.1), here are my installation notes:
1. Download ant’s .tar.gz file
2. Copy the tar.gz file to parent folder of the folder in which you wish to
install ant. For example in, /usr/local folder
3. sudo as root user (command: su -)
4. Switch to the folder in which the tar.gz file is copied
5. Issue the command:
tar -xzvf apache-ant-1.8.1-bin.tar.gz
Ant will be installed in folder /usr/local/apache-ant-1.8.1
Before using Ant, make sure that the following environment variables are
set:
export ANT_HOME=/usr/local/apache-ant-1.8.1
export JAVA_HOME=/usr/local/jdk1.6.0_23
export PATH=${PATH}:${ANT_HOME}/bin
I haven't built Xuggler on any Linux other than CentOS.
My notes on installing Subversion on Linux:
1. Get Subversion’s RPM file, such as
CollabNetSubversion-client-1.6.9-1.i386.rpm from the web -
http://subversion.apache.org/packages.html
2. Extract the files from the RPM by executing the following command from
the directory that has the RPM file
rpm –ivh CollabNetSubversion-client-1.6.9-1.i386.rpm
* In general, where rpm installs the file is a mystery but Subversion gets
installed in /opt directory
3. Add the following in ./root/bash_profile file
export SVN_HOME=/opt/CollabNet_Subversion
export PATH=$SVN_HOME/bin:$PATH
Good luck!
Dilip
--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Monday, March 28, 2011 10:29 AM
To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Re: Xuggler on Linux
Just in case you need Yasm installation steps...
Install Yasm on Linux:
1. Download Yasm’s tar.gz file
http://www.tortall.net/projects/yasm/wiki/Download
2. Copy the tar.gz file to parent folder of the folder in which you wish to
install Yasm. For example in usr/local folder
3. Issue the command:
tar -xzvf yasm-1.0.0.tar.gz
4. Yasm will get untarred in folder /usr/local/yasm-1.0.0
5. To configure yasm , go to the installation folder and give the following
command:
./configure
6. Type make to build the nasm and ndisasm binaries
7. Type make install to install them in /usr/local/bin and install the man
pages nasm.1 and ndisasm.1 in /usr/local/man/man1
Reference:
http://www.nasm.us/doc/nasmdoc1.html#section-1.3
Dilip
--------------------------------------------------
From: "Dilip Shah" <dilip...@hotmail.com>
Sent: Monday, March 28, 2011 11:21 AM
To: "xuggler-users" <xuggle...@googlegroups.com>
I don't recall encountering this error but Xuggler faq has some explanation
on it: http://wiki.xuggle.com/Frequently_Asked_Questions
Dilip
--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Tuesday, March 29, 2011 11:18 PM
To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Re: Xuggler on Linux
> Hi Diilp,
>
> My prev mail states what i did at yesterday. After that i again did
> all the steps. I formatted my machine. This time i did not installed
> java bcoz when i am installing ant using command : sudo apt-get
> install ant , then it installs packages for openjdk. Then system
> containd multiple java.
>
> All the other steps are as stated in prev mail.
>
> Now this time when i fire command : sudo ant run-tests it build source
> code of xuggler successfully.
> Then i fired command : sudo ant install
> It takes some time and completes with success.
>
> But there is test command given on xuggler installation link :
> http://xuggle.wordpress.com/2009/01/23/how-to-install-xuggler-on-linux/
> I tried with that but it gives me error : "UnsatisfiedLinkError"
>
> Do you know some solution for this.
>
> Thank u.
>
> -nakul
>
>
>
>
>
> On Mar 28, 2:25 pm, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
>> Nakul,
>>
>> Just in case you need Yasm installation steps...
>>
>> Install Yasm on Linux:
>> 1. Download Yasm�s tar.gz
>> > 1. Download ant�s .tar.gz file
>> > 2. Copy the tar.gz file to parent folder of the folder in which you
>> > wish
>> > to install ant. For example in, /usr/local folder
>> > 3. sudo as root user (command: su -)
>> > 4. Switch to the folder in which the tar.gz file is copied
>> > 5. Issue the command:
>> > tar -xzvf apache-ant-1.8.1-bin.tar.gz
>> > Ant will be installed in folder /usr/local/apache-ant-1.8.1
>>
>> > Before using Ant, make sure that the following environment variables
>> > are
>> > set:
>> > export ANT_HOME=/usr/local/apache-ant-1.8.1
>> > export JAVA_HOME=/usr/local/jdk1.6.0_23
>> > export PATH=${PATH}:${ANT_HOME}/bin
>>
>> > I haven't built Xuggler on any Linux other than CentOS.
>>
>> > My notes on installing Subversion on Linux:
>> > 1. Get Subversion�s RPM file, such as
>> > CollabNetSubversion-client-1.6.9-1.i386.rpm from the web -
>> >http://subversion.apache.org/packages.html
>> > 2. Extract the files from the RPM by executing the following command
>> > from
>> > the directory that has the RPM file
>> > rpm �ivh CollabNetSubversion-client-1.6.9-1.i386.rpm
>> >>> List of prerequisites and installation steps are given on xuggler�s
>> >>> website:
>>
>> >>>http://www.xuggle.com/xuggler/downloads/build.jsp
>>
>> >>> You can use the following command to list packages installed on the
>> >>> server:
>>
>> >>> rpm -qa --queryformat "%{GROUP} %{NAME}-%{VERSION}\n" | sort
>>
>> >>> � Install Apache Ant
>>
>> >>> � Perl came pre-installed on the dedicated server
>>
>> >>> � GCC / G++ came preinstalled on the dedicated server
>>
>> >>> � gmake 3.81 came preinstalled on the dedicated server
>>
>> >>> � Install yasm
>>
>> >>> � Install Subversion
>>
>> >>> Notes:
>>
>> >>> � Make sure ANT_HOME is defined
>> >>> Add Xuggler environment variables in Tomcat�s startup file.
>> read more �