Problems During MPlayer installation and Solutions

Source: Internet
Author: User
For more information about the problems and solutions during MPlayer installation-Linux general technology-Linux technology and application, see the following. Recently, when studying flv video technology, mplayer must be installed for rm/rmvb video conversion. Many problems have been encountered during the installation process and have been basically solved, so I will write it down for future reference and share it with you.

Download all the software packages as follows:
1)MPlayer-1.0rc1.tar.bz2 mplayer main program
2)all-20071007.tar.bz2 all encoding and decoding packages of mplayer
3366windows-all-20071007.zip same as above
4)gcc-3.4.0.tar.gz (optional)
5) libstdc ++-3.3.2-6. i386.rpm is also optional.

Before installation, make a note that all your software packages are stored in the/home/mbq directory. The gcc compiler required for MPlayer source code installation is the 2.9 series and the 3. X Series. If your machine's gcc version is not the same, the command for viewing the gcc version is as follows:

# Gcc-v
Use built-in specs.
Goals: i386-redhat-linux
Configuration :.. /configure -- prefix =/usr -- mandir =/usr/share/man -- infodir =/usr/share/info -- enable-shared -- enable-threads = posix -- enable-checking = release -- with-system-zlib -- enable-_ cxa_atexit -- disable-libunwind-exceptions -- enable-libgcj-multifile -- enable-versions ages = c, c ++, objc, obj-c ++, java, fortran, ada -- enable-java-awt = gtk -- disable-dssi -- enable-plugin -- with-java-home =/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre -- with-cpu = generic -- host = i386-redhat-linux
Thread model: posix
Gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)

The installation takes about half an hour to fifty minutes. The command is executed as follows:

# Cd/home/mbq
# Tar xf gcc-3.4.0.tar.gz
# Cd gcc-3.4.0
#. /Configure -- prefix =/usr/local/The gcc-3.4.0 -- enable-threads = posix -- disable-checking -- enable -- long -- host = i386-redhat-linux -- with-system-zlib -- enable- ages = c, c ++, java
# Make
# Make install

After the installation is complete, connect the main program to the/usr/bin directory and back up the gcc program of the previous version first:

# Mv/usr/bin/gcc/usr/bin/gcc4
# Ln-s/usr/local/gcc-3.4.0/bin/gcc/usr/bin/gcc

Then, when viewing the gcc version, it should be shown as follows:

# Gcc-v
Reading specs from/usr/local/gcc-3.4.0/lib/gcc/i386-redhat-linux/3.4.0/specs
Configured :.. /gcc-3.4.0/configure -- prefix =/usr/local/gcc-3.4.0 -- enable-threads = posix -- disable-checking -- enable -- long-long -- host = i386-redhat-linux -- with-system-zlib -- enable-languages ages = c, c ++, java
Thread model: posix
Gcc version 3.4.0

After the compiler is installed, I found that libstdc ++ is required to convert the rm/rmvb format to the flv format. for so.5 support, first you have to check whether the inventory in/usr/lib is:

# Cd/usr/lib
# Ls-l | grep libstdc ++
Lrwxrwxrwx 1 root 18 11-21 libstdc ++. so.5-> libstdc ++. so.5.0.5
-Rwxr-xr-x 1 root 730768 libstdc ++. so.5.0.5

If you cannot find the two rows output above, install libstdc ++-3.3.2-6. i386.rpm and run the following command:

# Cd/home/mbq
# Rpm-ivh libstdc ++-3.3.2-6. i386.rpm

If the system prompts that a newer version has been installed, the prompt is as follows:

Preparing... ######################################## ### [100%]
Package libstdc ++-4.1.1-52. el5 (which is newer than libstdc ++-3.3.2-6) is already installed

Run the following command for installation:

# Rpm-ivh -- oldpackage libstdc ++-3.3.2-6. i386.rpm

After successful installation, we can start to install MPlayer.

# Cd/home/mbq
# Tar xf all-20071007.tar.bz2
# Mv all-20071007/*/usr/lib/codes
# Chmod 644/usr/lib/codes /*
# Chown root. root/usr/lib/codes /*
# Unzip windows-all-20071007.tar.bz2
# Mv windows-all-20071007/*/usr/lib/wincodes
# Chmod 644/usr/lib/wincodes /*
# Chown root. root/usr/lib/wincodes /*
# Tar xf MPlayer-1.0rc1.tar.bz2
# Cd MPlayer-1.0rc1
#. /Configure -- prefix =/usr/local/mplayer/-- enable-gui -- enable-freetype -- with-codecsdir =/usr/lib/codes/-- with-win32libdir =/usr/lib/ wincodes/
# Make
# Make install

In this way, we have successfully installed MPlayer. The installation directory is/usr/local/mplayer. Then we can use it for video conversion or other things.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.