The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ImageMagick won't compile

Discussion in 'General Discussion' started by Jeff75, Aug 12, 2003.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    For some reason whenever I go to WHM and try and compile ImageMagick under the "Install a Perl Module" section, it comes up with an error while in the middle of compiling. The server is running FreeBSD 4.7 with the latest 7.4 RELEASE of cPanel.

    Does have any suggestion as to what I need to do to get it to compile? Here is the error that's coming up. I tried deleting the file /usr/include/magick then recompiling but this error still comes up.

    Libraries have been installed in:
    /usr/lib

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
    /bin/bash ../mkinstalldirs /usr/include/magick
    mkdir -p -- /usr/include/magick
    mkdir: /usr/include/magick: File exists
    *** Error code 1

    Stop in /usr/home/cpmagickbuild/magick/ImageMagick-5.5.1/magick.
    *** Error code 1

    Stop in /usr/home/cpmagickbuild/magick/ImageMagick-5.5.1/magick.
    *** Error code 1

    Stop in /usr/home/cpmagickbuild/magick/ImageMagick-5.5.1.

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Have you tried compiling from source rather than using WHM?

    cPanel.net Support Ticket Number:
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    No, I haven't.....could you tell me what I would need to enter in order to do this? I'd like to install it via the ports collection.

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    cvsup
    cd /usr/ports/graphics/Imagemagick
    setenv WITHOUT_X11="1"
    make
    make install
    make clean

    Or, if you have portupgrade installed,
    portinstall ImageMagick
     
  5. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I tried using setenv WITHOUT_X11="1" with and without the quotes and it keeps coming up with a syntax error. Do you know what is causing the error?

    cPanel.net Support Ticket Number:
     
  6. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Skip that line then and replace the "make" line with "make WITHOUT_X11=1" without the quotes of course.

    cPanel.net Support Ticket Number:
     
  7. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I just compiled ImageMagick using the commands you posted above and it looked like everything installed correctly, then I restarted Apache and it still is showing that ImageMagic is not installed. Do you have any ideas why?

    This is what came up right before make install completed:

    ===> Compressing manual pages for ImageMagick-5.5.6_1
    ===> Running ldconfig
    /sbin/ldconfig -m /usr/local/lib
    ===> Registering installation for ImageMagick-5.5.6_1
    # make clean

    Then I ran make clean and restarted Apache.

    cPanel.net Support Ticket Number:
     
  8. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Apache has nothing to do with ImageMagick and visa versa.

    cPanel.net Support Ticket Number:
     
  9. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Do you know how I can verify whether it's installed properly or not? I'm currently testing it using a MovableType script that detects which modules are compiled. It is still showing that it isn't supported.

    cPanel.net Support Ticket Number:
     
  10. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    MT is probably looking for mogrify. You can find it by using
    Code:
    find /usr -type f -name mogrify -print
    Note: It should be compiled into /usr somewhere.

    Once you find it, you can either symlink the binary to somewhere else (where ever MT is looking for it) or tell the MT installer where mogrify is located.
     
  11. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I just checked to see if Image::Magick was showing up in the Perl Modules list in cPanel and it isn't showing up. Isn't there some other perl module that needs to be installed in order to get it to show up? Something like p5-imagemagick (but that's not the correct name)

    cPanel.net Support Ticket Number:
     
  12. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    cpan
    get Image::Magick
    make Image::Magick
    install Image::Magick
    quit

    cPanel.net Support Ticket Number:
     
  13. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I tried what you posted then when I got to Install Image::Magick, it came up with this:

    Code:
    cpan> install Image::Magick
    Running install for module Image::Magick
    Running make for J/JC/JCRISTY/PerlMagick-5.56.tar.gz
      Is already unwrapped into directory /root/.cpan/build/PerlMagick-5.56
      Has already been processed within this session
    Running make test
    PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-freebsd -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/bzlib/*.t t/jpeg/*.t t/mpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/ttf/*.t t/x/*.t t/xfig/*.t t/zlib/*.t
    t/blob............ok                                                         
    t/filter..........ok                                                         
    t/getattribute....ok                                                         
    t/montage.........gs: not found
    gs: not found
    t/montage.........NOK 1gs: not found                                         
    gs: not found
    t/montage.........NOK 2gs: not found                                         
    gs: not found
    t/montage.........NOK 3gs: not found                                         
    gs: not found
    t/montage.........NOK 4gs: not found                                         
    gs: not found
    t/montage.........NOK 5gs: not found                                         
    gs: not found
    t/montage.........NOK 6gs: not found                                         
    gs: not found
    t/montage.........NOK 7gs: not found                                         
    gs: not found
    t/montage.........NOK 8gs: not found                                         
    gs: not found
    t/montage.........NOK 9gs: not found                                         
    gs: not found
    t/montage.........NOK 10gs: not found                                        
    gs: not found
    t/montage.........NOK 11gs: not found                                        
    gs: not found
    t/montage.........NOK 12gs: not found                                        
    gs: not found
    t/montage.........NOK 13gs: not found                                        
    gs: not found
    t/montage.........NOK 14gs: not found                                        
    gs: not found
    t/montage.........NOK 15gs: not found                                        
    gs: not found
    t/montage.........NOK 16gs: not found                                        
    gs: not found
    t/montage.........NOK 17gs: not found                                        
    gs: not found
    t/montage.........NOK 18gs: not found                                        
    gs: not found
    t/montage.........FAILED tests 1-19                                          
            Failed 19/19 tests, 0.00% okay
    t/read............ok                                                         
    t/setattribute....ok                                                         
    t/write...........ok                                                         
    t/bzlib/read......ok                                                         
    t/bzlib/write.....ok                                                         
    t/jpeg/read.......Exception 410: Unrecognized image format () at blib/lib/Image/Magick.pm line 67.
    t/jpeg/read.......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-2
            Failed 2/2 tests, 0.00% okay
    t/jpeg/write......Exception 410: Unrecognized attribute (signature) at t/subroutines.pl line 296.
    t/jpeg/write......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-2
            Failed 2/2 tests, 0.00% okay
    t/mpeg/read.......mpeg2decode: not found
    Exception 410: Unrecognized image format () at blib/lib/Image/Magick.pm line 67.
    t/mpeg/read.......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-2
            Failed 2/2 tests, 0.00% okay
    t/png/read-16.....Exception 410: Unrecognized image format () at blib/lib/Image/Magick.pm line 67.
    t/png/read-16.....dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-5
            Failed 5/5 tests, 0.00% okay
    t/png/read........Exception 410: Unrecognized image format () at blib/lib/Image/Magick.pm line 67.
    t/png/read........dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-6
            Failed 6/6 tests, 0.00% okay
    t/png/write-16....Exception 410: Unrecognized attribute (signature) at t/subroutines.pl line 296.
    t/png/write-16....dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-5
            Failed 5/5 tests, 0.00% okay
    t/png/write.......Exception 410: Unrecognized attribute (signature) at t/subroutines.pl line 296.
    t/png/write.......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-6
            Failed 6/6 tests, 0.00% okay
    t/ps/read.........gs: not found
    gs: not found
    t/ps/read.........NOK 1gs: not found                                         
    gs: not found
    t/ps/read.........NOK 2gs: not found                                         
    gs: not found
    t/ps/read.........FAILED tests 1-3                                           
            Failed 3/3 tests, 0.00% okay
    t/ps/write........gs: not found
    gs: not found
    t/ps/write........NOK 1gs: not found                                         
    gs: not found
    t/ps/write........FAILED tests 1-2                                           
            Failed 2/2 tests, 0.00% okay
    t/tiff/read.......Exception 410: Unrecognized image format () at blib/lib/Image/Magick.pm line 67.
    t/tiff/read.......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-3
            Failed 3/3 tests, 0.00% okay
    t/tiff/write......Exception 410: Unrecognized attribute (signature) at t/subroutines.pl line 296.
    t/tiff/write......dubious                                                    
            Test returned status 10 (wstat 2560, 0xa00)
    DIED. FAILED tests 1-3
            Failed 3/3 tests, 0.00% okay
    t/ttf/read........Readimage (input.ttf): Exception 420: No decode delegate for this image format (input.ttf) at t/subroutines.pl line 219.
    t/ttf/read........NOK 1Readimage (label:The quick brown fox jumps over the lazy dog.): Exception 405: Unable to get type metrics (The quick brown fox jumps over the lazy dog.) at t/subroutines.pl line 219.
    t/ttf/read........NOK 2Annotate (text=>'The quick brown fox jumps over the lazy dog.',
                      gravity=>'NorthWest',
                      geometry=>'+6+14',
                      font=>'input.ttf',
                      fill=>'#FF0000',
                      pointsize=>14): Exception 415: FreeTypeLibraryIsNotAvailable (input.ttf) at t/subroutines.pl line 953.
    t/ttf/read........FAILED tests 1-3                                           
            Failed 3/3 tests, 0.00% okay
    t/x/read..........FAILED test 1                                              
            Failed 1/1 tests, 0.00% okay
    t/x/write.........ok                                                         
    t/xfig/read.......fig2dev: not found
    t/xfig/read.......FAILED test 1                                              
            Failed 1/1 tests, 0.00% okay
    t/zlib/read.......ok                                                         
    t/zlib/write......ok                                                         
    Failed Test      Stat Wstat Total Fail  Failed  List of Failed
    -------------------------------------------------------------------------------
    t/jpeg/read.t      10  2560     2    4 200.00%  1-2
    t/jpeg/write.t     10  2560     2    4 200.00%  1-2
    t/montage.t                    19   19 100.00%  1-19
    t/mpeg/read.t      10  2560     2    4 200.00%  1-2
    t/png/read-16.t    10  2560     5   10 200.00%  1-5
    t/png/read.t       10  2560     6   12 200.00%  1-6
    t/png/write-16.t   10  2560     5   10 200.00%  1-5
    t/png/write.t      10  2560     6   12 200.00%  1-6
    t/ps/read.t                     3    3 100.00%  1-3
    t/ps/write.t                    2    2 100.00%  1-2
    t/tiff/read.t      10  2560     3    6 200.00%  1-3
    t/tiff/write.t     10  2560     3    6 200.00%  1-3
    t/ttf/read.t                    3    3 100.00%  1-3
    t/x/read.t                      1    1 100.00%  1
    t/xfig/read.t                   1    1 100.00%  1
    Failed 15/26 test scripts, 42.31% okay. 63/284 subtests failed, 77.82% okay.
    *** Error code 35
    
    Stop in /root/.cpan/build/PerlMagick-5.56.
      /usr/bin/make test -- NOT OK
    Running make install
      make test had returned bad status, won't install without force
    Any ideas?

    cPanel.net Support Ticket Number:
     
  14. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    after make Image::Magick

    force install Image::Magick

    cPanel.net Support Ticket Number:
     
  15. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I tried that and unfortunately it came up with the same thing.

    cPanel.net Support Ticket Number:
     
  16. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    force install will install the module regardless of that the make status is.

    cPanel.net Support Ticket Number:
     
  17. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    My server doesn't seem to like it for some reason I ran "force install Image::Magick" and it came up with the same failure errors.

    cPanel.net Support Ticket Number:
     
  18. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I just checked the perl module list and it is showing up 3 times. Do you know why it's showing up so much? How can I make it so it will only appear once?

    cPanel.net Support Ticket Number:
     
  19. RogelioH

    RogelioH Active Member

    Joined:
    Jun 2, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    anyone found the fix to install imagemagick on bsd?
     
  20. Planet_Master

    Planet_Master Well-Known Member

    Joined:
    Apr 18, 2002
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Yorker
    Forget installing from WHM, try the old fashioned way>

    In root shell:
    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-5.5.7-16.tar.gz

    gzip -dc ImageMagick-5.5.7-14.tar.gz | tar xvf -

    cd ImageMagick-5.5.7

    ./configure

    After this you will get the message:
    ImageMagick is configured as follows. Please verify that this
    configuration matches your expectations. You can add modules that are used in ImageMagick or just continue with the default install

    make
    make install

    ImageMagick will now compile.

    Now test the installation
    make check

    You may receive a few errors at the end primarily because you dont have all the Optional Packages/Options installed. Will not harm the ImageMagick default application.


    Next move the ImageMagick-5.5.7 to /usr/lib

    mv /root/ImageMagick-5.5.7 /usr/lib

    Clean up the files from install:
    rm -f /root/ImageMagick-5.5.7-14.tar.gz


    This will install the executables such as convert in /usr/local/bin

    Done!
     
    #20 Planet_Master, Dec 14, 2003
    Last edited: Apr 10, 2004
Loading...

Share This Page