[sisyphus] rmagick внутри rvm

Dubrovskiy Viacheslav slava на tangramltd.com
Чт Июн 28 23:15:31 MSK 2012


28.06.2012 10:48, Илюхин Андрей написал:
> 28.06.2012 11:33, Anton Gorlov пишет:
>> а что есть интересного в
>> config.log ?
> Есть вот такое:
>
> configure:3259: gcc -std=gnu99 -o conftest
> -I/usr/include/GraphicsMagick   -L/usr/lib -L/usr/lib conftest.c >&5
> /tmp/.private/rvmtest/ccnDVK6J.o: In function `main':
> conftest.c:(.text+0xa): undefined reference to `InitializeMagick'
> collect2: ld returned 1 exit status
> configure:3265: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "RMagick"
> | #define PACKAGE_TARNAME "RMagick-1.15.17.tar.gz"
> | #define PACKAGE_VERSION "1.15.17"
> | #define PACKAGE_STRING "RMagick 1.15.17"
> | #define PACKAGE_BUGREPORT "rmagick at rubyforge.org"
> | #define GRAPHICSMAGICK 1
> | /* end confdefs.h.  */
> |
> | /* Override any GCC internal prototype to avoid an error.
> |    Use char because int might match the return type of a GCC
> |    builtin and then its argument prototype would still apply. */
> | #ifdef __cplusplus
> | extern "C"
> | #endif
> | char InitializeMagick ();
> | int
> | main ()
> | {
> | return InitializeMagick ();
> |   ;
> |   return 0;
> | }
>
После установки # apt-get install liblcms2-devel libSM-devel
libICE-devel liblzma-devel bzlib-devel libltdl7-devel

Я получил вот такую ошибку:

[slava at dubrline ~]$ rvm 1.8.7 do gem install rmagick --version 1.15.17
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
        ERROR: Failed to build gem native extension.

        /home/slava/.rvm/rubies/ruby-1.8.7-p358/bin/ruby gem_extconf.rb

sh configure

Configuring RMagick 1.15.17
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
checking for ruby... /home/slava/.rvm/rubies/ruby-1.8.7-p358/bin/ruby
checking Ruby version... 1.8.7
checking for Magick-config... no
checking for GraphicsMagick-config... GraphicsMagick-config
checking for library containing InitializeMagick... -lGraphicsMagick
checking for snprintf... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking for AcquireMagickMemory... no
checking for AcquireStringInfo... no
checking for AdaptiveBlurImageChannel... no
checking for AdaptiveResizeImage... no
checking for AdaptiveSharpenImage... no
checking for AdaptiveThresholdImage... yes
checking for AddDefinitions... yes
checking for AddNoiseImageChannel... yes
checking for AllocateImageProfileIterator... yes
checking for BilevelImageChannel... no
checking for BlackThresholdImage... yes
checking for BlurImageChannel... yes
checking for ClearMagickException... no
checking for CompareImageChannels... no
checking for CompareImageLayers... no
checking for CompositeImageChannel... no
checking for ContrastStretchImageChannel... no
checking for ConvertHSLToRGB... no
checking for ConvertRGBToHSL... no
checking for ConvolveImageChannel... no
checking for EvaluateImageChannel... no
checking for ExportImagePixels... no
checking for FuzzyColorCompare... no
checking for FxImageChannel... no
checking for GammaImageChannel... no
checking for GaussianBlurImageChannel... yes
checking for GetBlobSize... yes
checking for GetColorHistogram... yes
checking for GetColorInfoArray... yes
checking for GetColorInfoList... no
checking for GetImageChannelDepth... yes
checking for GetImageChannelDistortion... yes
checking for GetImageChannelExtrema... no
checking for GetImageChannelMean... no
checking for GetImageClipMask... yes
checking for GetImageHistogram... no
checking for GetImageProfile... yes
checking for GetImageProperty... no
checking for GetImageQuantumDepth... no
checking for GetImageStatistics... yes
checking for GetMagickInfoArray... yes
checking for GetMagickPixelPacket... no
checking for GetMagickInfoList... no
checking for GetMagickResourceLimit... yes
checking for GetMultilineTypeMetrics... no
checking for GetNextImageAttribute... no
checking for GetNextImageProfile... no
checking for GetTypeInfoList... no
checking for GrayscalePseudoClassImage... yes
checking for ImagesToBlob... no
checking for ImportImagePixels... no
checking for InheritException... no
checking for InterpolatePixelColor... no
checking for InterpretImageAttributes... no
checking for IsColorSimilar... no
checking for IsImageSimilar... no
checking for LinearStretchImage... no
checking for NegateImageChannel... no
checking for NormalizeImageChannel... no
checking for OrderedPosterizeImageChannel... no
checking for ParseSizeGeometry... no
checking for PolaroidImage... no
checking for PosterizeImage... no
checking for PreviewImage... no
checking for QuantumOperatorRegionImage... yes
checking for RadialBlurImage... no
checking for RadialBlurImageChannel... no
checking for RandomChannelThresholdImage... yes
checking for RandomThresholdImageChannel... no
checking for RecolorImage... no
checking for RemoveFirstImageFromList... yes
checking for SeparateImageChannel... no
checking for SepiaToneImage... no
checking for SetImageBackgroundColor... no
checking for SetImageChannelDepth... yes
checking for SetImageColorspace... no
checking for SetImageExtent... no
checking for SetImageInfoFile... no
checking for SetImageOption... no
checking for SetImageProperty... no
checking for SetImageRegistry... no
checking for SetImageStorageClass... no
checking for SetImageProgressMonitor... no
checking for ShadowImage... no
checking for SharpenImageChannel... yes
checking for SigmoidalContrastImageChannel... no
checking for SketchImage... no
checking for SpliceImage... no
checking for StripImage... yes
checking for ThresholdImageChannel... no
checking for TintImage... no
checking for TransposeImage... no
checking for TransverseImage... no
checking for UniqueImageColors... no
checking for UnsharpMaskImageChannel... yes
checking for VignetteImage... no
checking for WhiteThresholdImage... yes
checking for XImportImage... no
checking for MagickBooleanType... no
checking for magick_int64_t... yes
checking for magick_uint64_t... yes
checking for ExtendedSignedIntegralType... yes
checking for ExtendedUnsignedIntegralType... yes
checking for MagickOffsetType... no
checking for MagickSizeType... no
checking for MagickPixelPacket... no
checking for ExceptionInfo.module... yes
checking for Image.bias... no
checking for Image.orientation... yes
checking for Image.quality... no
checking for Image.ticks_per_second... no
checking for Image.transparent_color... no
checking for Image.iptc_profile... no
checking for Image.generic_profile... no
checking for Image.generic_profiles... no
checking for ImageInfo.orientation... no
checking for ImageInfo.channel... no
checking for Image.extract_info... no
checking for CineonLogRGBColorspace enum value... yes
checking for HSBColorspace enum value... no
checking for LABColorspace enum value... yes
checking for Rec601LumaColorspace enum value... yes
checking for Rec601YCbCrColorspace enum value... yes
checking for Rec709LumaColorspace enum value... yes
checking for Rec709YCbCrColorspace enum value... yes
checking for LogColorspace enum value... no
checking for ReplaceCompositeOp enum value... no
checking for DstCompositeOp enum value... no
checking for ColorDodgeCompositeOp enum value... no
checking for IndexChannel enum value... no
checking for GrayChannel enum value... yes
checking for AllChannels enum value... yes
checking for JPEG2000Compression enum value... yes
checking for UndefinedGravity enum value... no
checking for QuantumPixel enum value... no
checking for TransparentVirtualPixelMethod enum value... no
checking for CoalesceLayer enum value... no
checking for MaxEvaluateOperator enum value... no
checking for PaletteBilevelMatteType enum value... no
checking if ParseSizeGeometry has 4 arguments... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ext/RMagick/extconf.rb
config.status: creating metaconfig
config.status: creating ext/RMagick/rmagick_config.h
configure:

This installation of RMagick 1.15.17 is configured for ruby 1.8.7
(2012-02-08 patchlevel 358) [i686-linux] and GraphicsMagick 1.3.16.
RMagick configuration completed successfully.

make
if test -n
"/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/lib"; then \
               
RUBYLIBDIR=--rbdir="/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/lib";
\
        fi; \
        if test -n
"/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/lib"; then \
               
RUBYARCHDIR=--sodir="/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/lib";
\
        fi; \
        /home/slava/.rvm/rubies/ruby-1.8.7-p358/bin/ruby setup.rb config
$RUBYLIBDIR $RUBYARCHDIR --data-dir=/share
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
/home/slava/.rvm/rubies/ruby-1.8.7-p358/bin/ruby
/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/ext/RMagick/extconf.rb
creating Makefile
<--- ext/RMagick
<--- ext
/home/slava/.rvm/rubies/ruby-1.8.7-p358/bin/ruby setup.rb setup
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
make
make[1]: Entering directory
`/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/ext/RMagick'
gcc -I.
-I/home/slava/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/i686-linux
-I/home/slava/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/i686-linux
-I/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/ext/RMagick
-DRUBY_VERSION=0x187  -I/usr/include/GraphicsMagick -fPIC   -c rmutil.c
In file included from rmutil.c:9:0:
rmagick.h:1031:52: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
rmagick.h:1089:44: error: expected ‘)’ before ‘*’ token
rmutil.c:1828:38: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
rmutil.c:1855:30: error: expected ‘)’ before ‘*’ token
rmutil.c:1904:29: error: expected ‘)’ before ‘*’ token
rmutil.c: In function ‘Color_to_s’:
rmutil.c:1917:5: error: ‘ColorInfo’ undeclared (first use in this function)
rmutil.c:1917:5: note: each undeclared identifier is reported only once
for each function it appears in
rmutil.c:1917:15: error: expected ‘;’ before ‘ci’
rmutil.c:1920:25: error: ‘ci’ undeclared (first use in this function)
make[1]: *** [rmutil.o] Ошибка 1
make[1]: Leaving directory
`/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/ext/RMagick'
setup.rb:655:in `command': system("make") failed (RuntimeError)
        from setup.rb:664:in `make'
        from setup.rb:1258:in `setup_dir_ext'
        from setup.rb:1532:in `__send__'
        from setup.rb:1532:in `traverse'
        from setup.rb:1549:in `dive_into'
        from setup.rb:1530:in `traverse'
        from setup.rb:1534:in `traverse'
        from setup.rb:1533:in `each'
        from setup.rb:1533:in `traverse'
        from setup.rb:1549:in `dive_into'
        from setup.rb:1530:in `traverse'
        from setup.rb:1524:in `exec_task_traverse'
        from setup.rb:1519:in `each'
        from setup.rb:1519:in `exec_task_traverse'
        from setup.rb:1246:in `exec_setup'
        from setup.rb:996:in `exec_setup'
        from setup.rb:826:in `__send__'
        from setup.rb:826:in `invoke'
        from setup.rb:772:in `invoke'
        from setup.rb:1578
make: *** [all] Ошибка 1


Gem files will remain installed in
/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17 for inspection.
Results logged to
/home/slava/.rvm/gems/ruby-1.8.7-p358/gems/rmagick-1.15.17/./gem_make.out


Руби вижу первый раз в глаза поэтому сказать ничего не могу. Кажется еще
чего-то не хватает.

-- 
WBR,
Dubrovskiy Viacheslav


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4916 bytes
Desc: п я─п╦п©я┌п╬пЁя─п╟я└п╦я┤п╣я│п╨п╟я▐ п©п╬п╢п©п╦я│я▄ S/MIME
URL: <http://lists.altlinux.org/pipermail/sisyphus/attachments/20120628/5f65540d/attachment-0001.bin>


Подробная информация о списке рассылки Sisyphus