LDP/LDP/ref/docbook/VideoLAN-Quickstart/install-vlc.sgml

241 lines
6.8 KiB
Plaintext

<para>There are VLC binaries available for the many OSes, but not for
all supported OSes. If there are no binaries for your OS or if you want
to change the default settings, you can compile VLC from sources.</para>
<sect2><title>Under Windows</title>
<para>VLC works under Windows 95/98/ME/2000/XP.
Download the Zipip file from the <ulink
url="http://www.videolan.org/vlc/download-windows.html">VLC Windows
download page</ulink>. Unzip the file in a directory to install
VLC.</para>
</sect2>
<sect2><title>Under BeOS</title>
<para>
Download the Zip file from the <ulink
url="http://www.videolan.org/vlc/download-beos.html">VLC BeOS download
page</ulink>. Unzip the file in a directory to install VLC.
</para>
</sect2>
<sect2><title>Under Mac OS X</title>
<para>
Download the Mac OS X package from the <ulink
url="http://www.videolan.org/vlc/download-macosx.html">VLC
MacOS X download page</ulink> . Double-click on the icon of the
package : an icon will appear on your Desktop, right beside your
drive(s). Open it and drag the VLC application from the resulting
window to the place where you want to install it (it should be
<filename>/Applications</filename>).
</para>
</sect2>
<sect2><title>Under Linux Debian</title>
<para>Edit as root <filename>/etc/apt/sources.list</filename> and add
the following lines :</para>
<programlisting>
deb http://www.videolan.org/pub/videolan/debian $(ARCH)/
deb-src http://www.videolan.org/pub/videolan/debian sources/
</programlisting>
<para>Then install the packages :</para>
<screen>
<prompt># </prompt><userinput>apt-get update</userinput>
<prompt># </prompt><userinput>apt-get install gnome-vlc vlc-plugin-a52 vlc-plugin-mad vlc-plugin-ogg libdvdcss2</userinput>
</screen>
</sect2>
<sect2><title>Under Linux Redhat, Mandrake and SuSE</title>
<para>For these distributions, use the RPM packages.</para>
<para>First, install the packages <emphasis>liba52</emphasis> and
<emphasis>libmad0</emphasis> that should be packaged in your
distribution. If they are not, try to find the RPMs on <ulink
url="http://www.rpmfind.net/linux/RPM/">RPMfind.net</ulink> or search
the Internet.</para>
<para>
Download the RPM packages of <emphasis>libdvdcss2</emphasis>,
<emphasis>libdvdpsi1</emphasis>, <emphasis>vlc</emphasis>
<emphasis>gnome-vlc</emphasis>, <emphasis>vlc-plugin-mad</emphasis>, <emphasis>vlc-plugin-ogg</emphasis>, <emphasis>vlc-plugin-a52</emphasis> from the
<ulink url="http://www.videolan.org/vlc/download-linux.html">VLC Linux
download page</ulink>.
</para>
<para>
Then install the RPM packages you have downloaded:
</para>
<screen>
<prompt># </prompt><userinput>rpm -Uhv vlc-version.i586.rpm gnome-vlc-version.i586.rpm vlc-plugin-mad-version.i586.rpm
vlc-plugin-ogg-version.i586.rpm vlc-plugin-a52-version.i586.rpm libdvdcss2-version.i586.rpm libdvdpsi1-version.i586.rpm</userinput>
</screen>
</sect2>
<sect2><title>Compile the sources by yourself (for every other OS)</title>
<para>The method below is for any Unix system supported by VLC, for
which there is no packages available. It explains how to compile and
install VLC and the needed librairies from their source code.</para>
<para>You can also compile the VLC under Linux this way if you want to
modify the default supported modules</para>
<sect3><title>Install the libraries</title>
<para>
Many libraries are needed for particular uses :
</para>
<itemizedlist>
<listitem><para><emphasis>libdvdcss</emphasis> if you want to be able to
read encrypted DVDs,</para></listitem>
<listitem><para><emphasis>libdvdplay</emphasis> if you want to have DVD
menu navigation,</para></listitem>
<listitem><para><emphasis>libdvbpsi</emphasis> if you want to be able to
read from the network,</para></listitem>
<listitem><para><emphasis>a52dec</emphasis> if you want to be
able to decode the AC3 (i.e. A52) sound format often used in
DVDs,</para></listitem>
<listitem><para><emphasis>ffmpeg</emphasis>, <emphasis>libmad</emphasis>
and <emphasis>faad2</emphasis> if you want to read MPEG 4 / DivX
files,</para></listitem>
<listitem><para><emphasis>libogg</emphasis> and
<emphasis>libvorbis</emphasis> if you want to read Ogg Vorbis
files.</para>
</itemizedlist>
<para>Download the libraries from <ulink
url="http://www.videolan.org/vlc/download-sources.html">VLC sources
download page</ulink>.</para>
<para>For each library :</para>
<itemizedlist>
<listitem><para>uncompress :</para>
<screen>
<prompt>% </prompt><userinput>tar xvzf library.tar.gz</userinput>
</screen>
<para>or</para>
<screen>
<prompt>% </prompt><userinput>tar xvjf library.tar.bz2</userinput>
</screen>
<listitem><para>configure :</para>
<screen>
<prompt>% </prompt><userinput>cd library</userinput>
<prompt>% </prompt><userinput>./configure --enable-shared</userinput>
</screen>
<listitem><para>compile and install :</para>
<screen>
<prompt>% </prompt><userinput>make</userinput>
<prompt># </prompt><userinput>make install</userinput>
</screen>
</itemizedlist>
<para>
Check that the configuration file <filename>/etc/ld.so.conf</filename>
contains the following line :
</para>
<programlisting>
/usr/local/lib
</programlisting>
<para>If the line is not present, add-it and then run (as root):</para>
<screen>
<prompt># </prompt><userinput>ldconfig</userinput>
</screen>
</sect3>
<sect3><title>Install VLC</title>
<para>Download the sources of the lastest release : get the
file <filename>vlc-version.tar.gz</filename> from the <ulink
url="http://www.videolan.org/vlc/download-sources.html">VLC sources
download page</ulink>. Uncompress-it :</para>
<screen>
<prompt>% </prompt><userinput>tar xvzf vlc-version.tar.gz</userinput>
<prompt>% </prompt><userinput>cd vlc-version</userinput>
</screen>
<!-- bootstrap is already done is the tarballs -->
<para>To get the list of configuration options, do :</para>
<screen>
<prompt>% </prompt><userinput>./configure --help</userinput>
</screen>
<para>Please note that all the modules are described in
the <emphasis>Modules</emphasis> section of the <ulink
url="http://www.videolan.org/doc/vlc-user-guide/">VLC User
Guide</ulink>.</para>
<para>Examples of very simple configurations:</para>
<itemizedlist>
<listitem><para>if you want a basic VLC, do : </para>
<screen>
<prompt>% </prompt><userinput>./configure</userinput>
</screen>
</listitem>
<listitem><para>if you want the Gnome interface instead of the GTK
interface (you will need the developement packages of Gnome) :</para>
<screen>
<prompt>% </prompt><userinput>./configure --enable-gnome</userinput>
</screen>
</listitem>
</itemizedlist>
<para>
Then, compile and install :
</para>
<screen>
<prompt>% </prompt><userinput>make</userinput>
<prompt>% </prompt><userinput>su</userinput>
<prompt>Password: </prompt><userinput> [Root Password]</userinput>
<prompt># </prompt><userinput>make install</userinput>
</screen>
<para>Please note that the installation (<command>make install</command>
command) is not mandatory. You can execute VLC from where you compiled
it.</para>
</sect3>
</sect2>