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

Discussion in 'General Discussion' started by Zion Ahead, Sep 17, 2009.

  1. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Trying to install Imagemagick from source and when I run "make" command it ends in errors

    CC magick/magick_libMagickCore_la-widget.lo
    CC magick/magick_libMagickCore_la-xml-tree.lo
    CC magick/magick_libMagickCore_la-xwindow.lo
    CC ltdl/loaders/ltdl_libltdlc_la-preopen.lo
    CC ltdl/ltdl_libltdlc_la-lt__alloc.lo
    CC ltdl/ltdl_libltdlc_la-lt_dlloader.lo
    CC ltdl/ltdl_libltdlc_la-lt_error.lo
    CC ltdl/ltdl_libltdlc_la-ltdl.lo
    ltdl/ltdl.c:79: error: `usr' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `local' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `ssl' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `lib' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: syntax error before string constant
    ltdl/ltdl.c:800: warning: unused parameter 'deplibs'
    make[1]: *** [ltdl/ltdl_libltdlc_la-ltdl.lo] Error 1
    make[1]: Leaving directory `/root/ImageMagick-6.5.6-1'
    make: *** [all] Error 2


    Any idea?

    ImageMagick: Install from Source
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I used the "Install a RPM" feature in WHM to install ImageMagick on one of my servers. I figured it was easier than compiling ImageMagick from source to get some cPAddons to be fully functional.
     
  3. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    RPM Package Installer
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
    Install Complete


    I get that on trying the imagemagick i386 option.


    Also,

    root@server [~]# which convert
    /usr/bin/convert

    Something is strange.
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    The error messages would suggest you forgot to run "configure" before running "make" which sets up the configuration paths and other flags that your make compile is complaining about not having.

    Typical routine for compiling most Linux software from source:
    Code:
    # cd /usr/local/src
    # wget (whatever url to src)
    # tar (unpack your archive 'jxvf' for .tar.bz2 / 'zxvf' for .tar.gz)
    # cd (path created from archive)
    # [b]./configure[/b]  (possibly with --prefix flag sometimes)
    # make
    # make test  (OR) make check
    # make install
    
    The above is the routine for about 85% of all Linux applications

    Now in the case of ImageMagick, you can just install this with 'yum'
    Code:
    # yum install ImageM* libjpe* libpng* gifl* openssl coreutils 
    
    PS: ImageMagick is incidentally already installed on your server per the results of the "which" command you posted earlier.
     
    sneader likes this.
  5. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    That's not true, I did in fact run configure first.

    Now, again when I run make I get this:

    ltdl/ltdl.c:79: error: `usr' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `local' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `ssl' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: `lib' undeclared here (not in a function)
    ltdl/ltdl.c:79: error: syntax error before string constant
    ltdl/ltdl.c:800: warning: unused parameter 'deplibs'
    make[1]: *** [ltdl/ltdl_libltdlc_la-ltdl.lo] Error 1
    make[1]: Leaving directory `/root/ImageMagick-6.5.6-1'
    make: *** [all] Error 2
     
  6. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    More problem

     
  7. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Thank you for this -- this worked well for me.

    - Scott
     
  8. inertz

    inertz Member

    Joined:
    Nov 24, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Oklahoma City, Oklahoma, United States
    Just type;

    /scripts/installimagemagick
     
Loading...

Share This Page