Install Motion on Centos6
Question
I try to use the following procedure in order to installa Motion on Centos:
"RPM for Fedora on x86/x86-64 - Available on RPM Fusion, build without DB support.
Motion and all its dependencies (ffmpeg...) are available on the RPM Fusion repository. Configure the repository and Install motion with yum install motion."
But I receive: Motion isn't available.
How can I install Motion with ffmpeg e db support?
"yum install motion
Plugin abilitati:fastestmirror, security
Impostazione processo di installazione
Loading mirror speeds from cached hostfile
* base: centos.muzzy.it
* epel: mirror.fraunhofer.de
* extras: centos.muzzy.it
* rpmforge: archive.cs.uu.nl
* rpmfusion-free-updates: download1.rpmfusion.org
* rpmfusion-nonfree-updates: download1.rpmfusion.org
* updates: centos.muzzy.it
Nessun pacchetto motion disponibile.
Errore: Niente da fare"
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
AndreaFranchi - 23 Jan 2015
Answer
The easies way - is to compile ffmpeg from sources and then compile motion to use your ffmpeg.
Like this:
cd /home/user
git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
cd ffmpeg
./configure --prefix=/home/user/ffmpeg/out
make
Then go to your motion source dir and configure this way:
./configure --with-ffmpeg=/home/user/ffmpeg/out
If you get linking error, try editing motion's Makefile and put there extra library flags, like:
-lswresample -lrt -llzma -lbz2 etc...
--
TosiaraT - 12 Apr 2015