2012-03-05 9 views
2

Rmagickのインストール中に問題が発生しています。 はこれをインストールするには2通りの方法があります。 1]私は両方の課題に直面していますソースrmagickのインストール

BLDルビー宝石 2]を使用して、私は宝石を入手してインストールできるようにしたいでしょう。

私は多くの人が示唆しているが、私はまだ問題に直面PKG_CONFIG_PATHを更新しました:

PKG_CONFIG_PATH=/home/<user>/Downloads/ImageMagick-6.7.5-7/magick gem install rmagick 

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

     /home/<user>/apps/jruby-1.6.4/bin/jruby extconf.rb 
WARNING: JRuby does not support native extensions or the `mkmf' library very well. 
Check http://kenai.com/projects/jruby/pages/Home for alternatives. 
checking for Ruby version >= 1.8.5... yes 
checking for cc... yes 
checking for Magick-config... yes 

Warning: Found more than one ImageMagick installation. This could cause problems at runtime. 
     /usr/local/bin/Magick-config reports version 6.7.5 Q8 is installed in /usr/local 
     /usr/bin/Magick-config reports version 6.5.7 Q16 is installed in /usr 
Using 6.7.5 Q8 from /usr/local. 

checking for ImageMagick version >= 6.4.9... yes 
checking for HDRI disabled version of ImageMagick... yes 
checking for stdint.h... no 
checking for sys/types.h... no 
checking for wand/MagickWand.h... no 

Can't install RMagick 2.13.1. Can't find MagickWand.h. 
*** 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 
    --without-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/<user>/apps/jruby-1.6.4/bin/jruby 

次のようにImageMagickのが設定されています。この設定 があなたの期待と一致していることを確認してください。

Host system type: x86_64-unknown-linux-gnu 
Build system type: x86_64-unknown-linux-gnu 

        Option      Value 
------------------------------------------------------------------------------- 
Shared libraries --enable-shared=yes   yes 
Static libraries --enable-static=yes   yes 
Module support --with-modules=no    no 
GNU ld   --with-gnu-ld=yes    yes 
Quantum depth  --with-quantum-depth=16  16 
High Dynamic Range Imagery 
        --enable-hdri=no    no 

Delegate Configuration: 
BZLIB    --with-bzlib=yes    no 
Autotrace   --with-autotrace=no   no 
Dejavu fonts  --with-dejavu-font-dir=default  none 
DJVU    --with-djvu=yes    no 
DPS    --with-dps=yes    no 
FFTW    --with-fftw=yes    no 
FlashPIX   --with-fpx=yes    no 
FontConfig  --with-fontconfig=yes   no 
FreeType   --with-freetype=yes   yes 
GhostPCL   None       pcl6 (unknown) 
GhostXPS   None       gxps (unknown) 
Ghostscript  None       gs (8.71) 
Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/type1/gsfonts/ 
Ghostscript lib --with-gslib=no    no 
Graphviz   --with-gvc=yes    no 
JBIG    --with-jbig=yes    no 
JPEG v1   --with-jpeg=yes    yes 
JPEG-2000   --with-jp2=yes    no 
LCMS v1   --with-lcms=yes    yes 
LCMS v2   --with-lcms2=yes    no 
LQR    --with-lqr=yes    no 
LZMA    --with-lzma=yes    no 
Magick++   --with-magick-plus-plus=yes yes 
OpenEXR   --with-openexr=yes   no 
PERL    --with-perl=no    no 
PANGO    --with-pango=yes    no 
PNG    --with-png=yes    no 
RSVG    --with-rsvg=yes    no 
TIFF    --with-tiff=yes    no 
WEBP    --with-webp=yes    no 
Windows fonts  --with-windows-font-dir=  none 
WMF    --with-wmf=no   no 
X11    --with-x=      no 
XML    --with-xml=yes    no 
ZLIB    --with-zlib=yes    yes 

X11 Configuration: 
     X_CFLAGS  = 
     X_PRE_LIBS  = 
     X_LIBS   = 
     X_EXTRA_LIBS = 

Options used to compile and link: 
    PREFIX   = /usr/local 
    EXEC-PREFIX  = /usr/local 
    VERSION   = 6.7.5 
    CC    = gcc -std=gnu99 -std=gnu99 
    CFLAGS   = -fopenmp -g -O2 -Wall -pthread 
    CPPFLAGS  = -I/usr/local/include/ImageMagick 
    PCFLAGS   = -fopenmp 
    DEFS   = -DHAVE_CONFIG_H 
    LDFLAGS   = -L/usr/lib 
    MAGICK_LDFLAGS = -L/usr/local/lib -L/usr/lib 
    LIBS   = -lMagickCore -llcms -lfreetype -ljpeg -lz -lm -lgomp -lpthread 
    CXX    = g++ 
    CXXFLAGS  = -g -O2 -pthread 
    FEATURES  = OpenMP 

お勧めはありますか?

アップデート: 私は-libmagickwand DEVとlibmagickwand2が

P.Sをインストールしている:私はぶっきらぼう使用しようとしています、それはまた、インストールのように痛みを伴うだろう使用している場合、私は疑問に思って。これが解決さながら、私はまた、あなたがファイル、ないパスにPKG_CONFIG_PATHを設定している...

+2

をこの宝石は、一般的にソフトウェア開発者によって使用されているように、私はこの質問には、オントピックだと思います。 –

答えて

0

をrchartsを試してみてください。次べき作品:

PKG_CONFIG_PATH=/home/<user>/Downloads/ImageMagick-6.7.5-7/magick gem install rmagick 

(。RMagickをインストールするために得ることはしばしば、それはまだ動作しない場合があります、することができますどのように痛みを伴う知ってますが、そうでない場合はコメントして自由に感じる)

+0

Thnx @andrew marshall私はそれを修正した。私は変数もエクスポートしました。それはまだMagickWand.hを探して失敗しました。私の質問を応答 – codeObserver

0

も、エラーメッセージに従って、libmagickwand-devパッケージが見つからないことがあります。

あなただけのUbuntuを使用している場合:

sudo apt-get install libmagickwand-dev 
+0

Thnx Vladで更新しました。これらのパッケージがインストールされます。私は私の質問で同じを更新しました – codeObserver

関連する問題