1

rmovie gemを Ubuntu Desktop 12.04 LTSにインストールしようとしています。ffmpegがインストールされていますが、次のエラーが発生します。

$ gem install rmovie
Building native extensions.  This could take a while...
ERROR:  Error installing rmovie:
    ERROR: Failed to build gem native extension.

        /home/ror_dev/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
gcc -c -fpic -g  qp_movie.c -o qp_movie.o
In file included from qp_movie.c:4:0:
qp_util.h:4:28: fatal error: ffmpeg/avcodec.h: No such file or directory
compilation terminated.
make: *** [qp_movie.o] Error 1
checking for avcodec_init() in -lavcodec... yes
checking for av_register_all() in -lavformat... yes
checking for quadrupel_init() in -lquadrupel... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/ror_dev/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
    --with-ffmpeg-dir
    --without-ffmpeg-dir
    --with-ffmpeg-include
    --without-ffmpeg-include=${ffmpeg-dir}/include
    --with-ffmpeg-lib
    --without-ffmpeg-lib=${ffmpeg-dir}/lib
    --with-quadrupel-dir
    --without-quadrupel-dir
    --with-quadrupel-include
    --without-quadrupel-include=${quadrupel-dir}/include
    --with-quadrupel-lib
    --without-quadrupel-lib=${quadrupel-dir}/lib
    --with-avcodeclib
    --without-avcodeclib
    --with-avformatlib
    --without-avformatlib
    --with-quadrupellib
    --without-quadrupellib
 extconf failed: need quadrupel library

最初の試みは、avcodec をインストーラーが検索する場所に再配置することでした。失敗。次 - quadrupel ファイルのパスを修正して、avcodec が配置されている場所を指すようにします。失敗。

このクアドラペルとは何ですか? また、強制的に機能させるにはどうすればよいですか?

または、rmovie に代わるものがあるのでしょうか。

4

2 に答える 2

1

github.com/streamio/streamio-ffmpegを使用してください。より積極的に開発されています。rmovie2006 年に開発されたもので、現在のバージョンと互換性がない可能性があります。ffmpeg

于 2013-01-12T06:09:41.593 に答える
0

このようにしてください -

1) 宝石を gemfile に保持する -

 gem "rmovie", "~> 0.5.1"

2) 実行するbundle install

それでもエラーが発生する場合は、次を試してください。

sudo apt-get install ffmpeg libavcodec-extra-52

パッケージが見つからない場合は、次を試してください。

sudo apt-get install ffmpeg libavcodec-extra-53

libmp3lame0 パッケージをインストールすることもできます:

sudo apt-get install libmp3lame0
于 2013-01-10T12:46:20.050 に答える