# Secrets of Cinelerra: Installation

Cinelerra is best installed by downloading an RPM and running

rpm -U --force --nodeps cinelerra*.rpm

on a RedHat system.

On systems which don't support RPM look for a utility called rpm2cpio. Download a Cinelerra RPM and from the / directory run

rpm2cpio cinelerra*.rpm | cpio -i --make-directories

It should be noted that the compiler used in building Cinelerra binaries is the free GNU compiler and although it can reorder instructions for Pentium I and use some the of Pentium II branch instructions it's 12 years behind most modern CPUs. You can try different compilers and optimization flags by compiling the source.

Compiling the source is hard and there's no warranty if the source code fails to compile, but the method for compiling starts by downloading the source code and decompressing.

tar jxf cinelerra*.tar.bz2

Enter the cinelerra directory

cd cinelerra

and set some environment variables. For Pentium II use:

export CFLAGS='-O3 -march=i686 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -I/usr/local/include'

For Pentium I and old AMD's use:

export CFLAGS='-O3 -fmessage-length=0 -funroll-all-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -I/usr/local/include'

Then run

make

The make procedure should run through all the directories and put binaries in the i686 directories. When we originally supported Alpha it was convenient to compile Alpha and i686 binaries simultaneously, in different directories.

Once finished run

make install

to install the binaries. The output goes as follows:

Binaries -> /usr/bin
Plugins -> /usr/lib/cinelerra

The main binaries are the Cinelerra executable and several utilities for reading MPEG transport streams.

Run Cinelerra by running

/usr/bin/cinelerra