Xuggler for Linux Centos

188 views
Skip to first unread message

Kevin Roy Chua

unread,
Oct 15, 2009, 9:25:29 PM10/15/09
to xuggle...@googlegroups.com

Hi All,
 
When I try to run this command on Linux Centos: java -cp $XUGGLE_HOME/share/java/jars/xuggle-xuggler.jar com.xuggle.xuggler.Configuration I get an error. Here is the stack trace:
 
=======================================
  Demuxable Formats
=======================================
2009-10-15 07:44:14,801 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-xuggler; version: 3: absolute path: /usr/local/xuggler/lib/libxuggle-xuggler.so.3; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-xuggler.so.3.2.879: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/xuggler/lib/libavformat.so.52)
2009-10-15 07:44:14,805 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-xuggler; version: 3: absolute path: /usr/local/xuggler/lib/libxuggle-xuggler.so.3; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-xuggler.so.3.2.879: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/xuggler/lib/libavformat.so.52)
2009-10-15 07:44:14,807 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-xuggler; version: 3: absolute path: /usr/local/xuggler/lib/libxuggle-xuggler.so; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-xuggler.so.3.2.879: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/xuggler/lib/libavformat.so.52)
2009-10-15 07:44:14,808 [main] WARN  com.xuggle.ferry.JNILibraryLoader - Failure: library load of library: xuggle-xuggler; version: 3: absolute path: /usr/local/xuggler/lib/libxuggle-xuggler.so; error: java.lang.UnsatisfiedLinkError: /usr/local/xuggler/lib/libxuggle-xuggler.so.3.2.879: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/xuggler/lib/libavformat.so.52)
2009-10-15 07:44:14,809 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle-xuggler; version: 3; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.xuggle.xuggler.Xuggler.init()V
        at com.xuggle.xuggler.Xuggler.init(Native Method)
        at com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:21)
        at com.xuggle.xuggler.IContainerFormat.getNumInstalledInputFormats(IContainerFormat.java:714)
        at com.xuggle.xuggler.IContainerFormat.getInstalledInputFormats(IContainerFormat.java:191)
        at com.xuggle.xuggler.Configuration.printSupportedFormats(Configuration.java:58)
        at com.xuggle.xuggler.Configuration.printHelp(Configuration.java:41)
        at com.xuggle.xuggler.Configuration.main(Configuration.java:26)

I don't think this has something to do with Tomcat right?
 
I added three lines in my etc/profile file just as what was instructed:
export XUGGLE_HOME=/usr/local/xuggler
export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$XUGGLE_HOME/bin:$PATH
 
Please help. Thanks.

Art Clarke

unread,
Oct 15, 2009, 10:45:06 PM10/15/09
to xuggle...@googlegroups.com
Hi Kevin,

Please check the following before you run the Java command:

echo $LD_LIBRARY_PATH

If /usr/local/xuggler/lib is not in that path, then the environment variables are not being set up correctly.  If it is there, make sure that $XUGGLE_HOME/lib contains a bunch of .so files.  If not, you did not actually install the shared libraries.

- Art
--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.

Kevin Roy Chua

unread,
Oct 15, 2009, 11:01:50 PM10/15/09
to xuggle...@googlegroups.com
Hi Art,
 
The environment variable is there and the $XUGGLE_HOME/lib contains a bunch of .so files. Here is what I got:
 
[root@leighmlr ~]# echo $LD_LIBRARY_PATH
/usr/local/xuggler/lib

[root@leighmlr ~]# cd $XUGGLE_HOME/lib
[root@leighmlr lib]# ls
libavcodec.a           libavformat.so.52.37.0  libmp3lame.so.0       libspeex.so          libtheoradec.so.1.0.1  libvorbisenc.so.2       libx264.so.66
libavcodec.so          libavutil.a             libmp3lame.so.0.0.0   libspeex.so.1        libtheoraenc.a         libvorbisenc.so.2.0.3   libxuggle-ferry.so
libavcodec.so.52       libavutil.so            libogg.a              libspeex.so.1.5.0    libtheoraenc.so        libvorbisfile.a         libxuggle-ferry.so.3
libavcodec.so.52.32.0  libavutil.so.50         libogg.so             libswscale.a         libtheoraenc.so.1      libvorbisfile.so        libxuggle-ferry.so.3.2.879
libavdevice.a          libavutil.so.50.3.0     libogg.so.0           libswscale.so        libtheoraenc.so.1.0.1  libvorbisfile.so.3      libxuggle-xuggler-io.so
libavdevice.so         libfaac.a               libogg.so.0.5.3       libswscale.so.0      libtheora.so           libvorbisfile.so.3.2.0  libxuggle-xuggler-io.so.3
libavdevice.so.52      libfaac.so              libspeex.a            libswscale.so.0.7.1  libtheora.so.0         libvorbis.so            libxuggle-xuggler-io.so.3.2.879
libavdevice.so.52.2.0  libfaac.so.0            libspeexdsp.a         libtheora.a          libtheora.so.0.3.4     libvorbis.so.0          libxuggle-xuggler.so
libavformat.a          libfaac.so.0.0.0        libspeexdsp.so        libtheoradec.a       libvorbis.a            libvorbis.so.0.4.0      libxuggle-xuggler.so.3
libavformat.so         libmp3lame.a            libspeexdsp.so.1      libtheoradec.so      libvorbisenc.a         libx264.a               libxuggle-xuggler.so.3.2.879
libavformat.so.52      libmp3lame.so           libspeexdsp.so.1.5.0  libtheoradec.so.1    libvorbisenc.so        libx264.so              pkgconfig
I executed the command once again and the error still persists.
 
Thanks for the help.

Art Clarke

unread,
Oct 16, 2009, 12:22:59 AM10/16/09
to xuggle...@googlegroups.com
OK, final guess here; you're either using a 32-bit Java version with 64-bit shared libraries, or a 64-bit Java version with 32-bit shared libraries.

To test, do:

file `which java`
file $XUGGLE_HOME/lib/libxuggle-xuggler.so.3.2.879

They should be the same binary type.

- Art

Kevin Roy Chua

unread,
Oct 16, 2009, 1:49:17 AM10/16/09
to xuggle...@googlegroups.com
I tried to install 64-bit shared libraries but encountered an error. The error is about ELF class and probably wrong architecture.
 
I am installing it on a Linux Centos server. Can this be the problem? Coz in your site where I downloaded the installer it says: "The install binaries for Xuggler on Linux are built on Ubuntu Jaunty for Intel 32-bit or 64-bit processors".
 
Thanks.

Art Clarke

unread,
Oct 16, 2009, 9:32:03 AM10/16/09
to xuggle...@googlegroups.com
You're going to need to build your own binaries for your system - sorry; Follow the instructions given on the following page:
http://www.xuggle.com/xuggler/downloads/build.jsp

- Art

Алексей Рыжиков

unread,
Oct 16, 2009, 8:29:13 AM10/16/09
to xuggle...@googlegroups.com


2009/10/16 Kevin Roy Chua <ke...@ivant.com>

I tried to install 64-bit shared libraries but encountered an error. The error is about ELF class and probably wrong architecture.
 
I am installing it on a Linux Centos server. Can this be the problem? Coz in your site where I downloaded the installer it says: "The install binaries for Xuggler on Linux are built on Ubuntu Jaunty for Intel 32-bit or 64-bit processors".
 
CentOS is different OS from Ubuntu - it's Redhat & Debian. You have to build binaries yourself - you can find complete guide on the site.
Note - in the checkouted source you have to replace source code for x264 - version downloaded with xuggler is too old, so it fails to compile. Still x264 tests tend to fail(xugglerTeststreamCoderProperty, segmentation fault), as some java tests do, yet I haven't found any bugs using it in my Red5 application.

Art Clarke

unread,
Oct 16, 2009, 9:36:34 AM10/16/09
to xuggle...@googlegroups.com
I'd build from the source for 3.2 right now; the tip of tree (checked out) is for advanced users.  The 3.2 bundle should compile.

- Art

2009/10/16 Алексей Рыжиков <alexeyr...@gmail.com>

clarky

unread,
Nov 24, 2009, 9:29:04 AM11/24/09
to xuggler-users
in your profile, you may replace LD_LIBRARY_PATH by DYLD_LIBRARY_PATH
hope it helps ;-)
> Could not load library: xuggle-xuggler; version: 3; Visithttp://www.xuggle.com/xuggler/faq/to find common solutions to this problem
Reply all
Reply to author
Forward
0 new messages