Problems with installation
Problems with installation
I am relatively new to unmanaged server admin - - - so today was my first time attempting to install software on my VPS (CentOs).
I was following these instructions - http://www.imagemagick.org/script/install-source.php (which I found kind of hard to follow when I kept putting $magick> in the command line - as it appears that I should.
I uploaded the tar file to my root folder (not <root>) and when I opened in Putty, I saw that the package was there. I then attempted to follow the steps (without $magick>).
When I got to cd ImageMagick-6.5.9, it would not recognize the folder. When I looked in the file structure using WinSCP, I saw that the directory name was ImageMagick-6.5.9-2 - - -and so I renamed the folder by taking out the -2
I entered the code /usr/local/bin/convert logo: logo.gif to verify the install and I just ended up with a new command line. I then ran make check and I started to freak out as my servers load went to 9 or 10 cpus. I sat there forever as it tested and it seemed to get hung up on about the 3'rd item. After a while I just closed Putty.
I have no idea whether what I did was right or not or if I screwed everything up. When I went back in with Putty and entered convert -version - I get:
Version: ImageMagick 6.5.9-2 2010-02-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
However when I try to run a PHP script that was on the web to test for imagemagick, I get a Version return code is 127 error.
To verify that ImageMagick does not appear to be working, I installed some software (ProofBuddy) on a hosting account on the server - that requires ImageMagick to run. During the software setup, it let me know that ImageMagick was not available.
So I guess my question is - - - -
- - - - - 1) Are any of the steps that I took, out of order?
- - - - - 2 ) Can I just try running the steps again to reinstall
- - - - - 3) If I must uninstall ImageMagick first before reinstalling - - - how do I do that?
Thank you so much for your consideration and any help that I might receive.
Rob
arwMEDIA.ca
I was following these instructions - http://www.imagemagick.org/script/install-source.php (which I found kind of hard to follow when I kept putting $magick> in the command line - as it appears that I should.
I uploaded the tar file to my root folder (not <root>) and when I opened in Putty, I saw that the package was there. I then attempted to follow the steps (without $magick>).
When I got to cd ImageMagick-6.5.9, it would not recognize the folder. When I looked in the file structure using WinSCP, I saw that the directory name was ImageMagick-6.5.9-2 - - -and so I renamed the folder by taking out the -2
I entered the code /usr/local/bin/convert logo: logo.gif to verify the install and I just ended up with a new command line. I then ran make check and I started to freak out as my servers load went to 9 or 10 cpus. I sat there forever as it tested and it seemed to get hung up on about the 3'rd item. After a while I just closed Putty.
I have no idea whether what I did was right or not or if I screwed everything up. When I went back in with Putty and entered convert -version - I get:
Version: ImageMagick 6.5.9-2 2010-02-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
However when I try to run a PHP script that was on the web to test for imagemagick, I get a Version return code is 127 error.
To verify that ImageMagick does not appear to be working, I installed some software (ProofBuddy) on a hosting account on the server - that requires ImageMagick to run. During the software setup, it let me know that ImageMagick was not available.
So I guess my question is - - - -
- - - - - 1) Are any of the steps that I took, out of order?
- - - - - 2 ) Can I just try running the steps again to reinstall
- - - - - 3) If I must uninstall ImageMagick first before reinstalling - - - how do I do that?
Thank you so much for your consideration and any help that I might receive.
Rob
arwMEDIA.ca
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problems with installation
I am no expert, but $magick> is just a sample prompt and not your exact terminal prompt. So just use your own prompt from your home directory.I was following these instructions - http://www.imagemagick.org/script/install-source.php (which I found kind of hard to follow when I kept putting $magick> in the command line - as it appears that I should.
I entered the code /usr/local/bin/convert logo: logo.gif to verify the install and I just ended up with a new command line.
usr/local/bin/convert logo: logo.gif
should not return anything to the terminal, it just creates a new image, logo.gif from an internal IM image. So just look in your directory and see if you find logo.gif
use
usr/local/bin/display logo.gif
if you have X11 display capabilities.
type
convert -version
or /usr/local/bin/convert -version
it should return the version number of IM you installed.
Re: Problems with installation
I just checked in WinSCP and sure enough, a logo.gif file was there sitting in the root directory. Obviously ImageMagick generated it so must be installed.usr/local/bin/convert logo: logo.gif
should not return anything to the terminal, it just creates a new image, logo.gif from an internal IM image. So just look in your directory and see if you find logo.gif
I wonder why ImageMagick is not available to any of my hosting accounts then? Could I have created an issue when I renamed the directory by deleting the -2 from the version number before installing?
I opened up Putty again and entered usr/local/bin/display logo.gif. It returned "No such file or directory"usr/local/bin/display logo.gif
if you have X11 display capabilities.
type
convert -version
or /usr/local/bin/convert -version
it should return the version number of IM you installed.
When I entered /usr/local/bin/convert -version, it returned version 6.5.9-2.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problems with installation
You probably need to point the image to the directory where it is located, perhapsusr/local/bin/display logo.gif
usr/local/bin/display /yourpathtoroot/logo.gif
Sorry, I don't know how you installed or what you have done with your directory setup. I am not that much more knowledgeable than you about unix.
I put all my images in my home directory and not root. Then from my home directory I just do
convert -version
or
convert logo: logo.png
and then I find logo.png in my home directory.
Re: Problems with installation
The main concern of mine, is providing ImageMagick for my web hosting clients who are on this same server. With the default path of /usr/local/bin/ it doesn't appear that they can access it. Thank you for your help - I really appreciate your responding.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problems with installation
your server should be able to be set up so that the PATH for each user's directory know where IM is located (/usr/local/bin). Then any user can just issue the convert command from their directory. Or if you are intending them to use PHP or something like that, then like I do on my Godaddy account, just reference /usr/local/bin/convert in the PHP command.
<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>
But see http://www.rubblewebs.co.uk/index.php for more details on using PHP with IM as he has configured his system to tell PHP where IM is located so he only needs to do
<?php
exec("convert -version",$out,$returnval);
print_r($out[0]);
?>
I am not sure what he does in that case.
If you still have problem, then hopefully Magick can give you more pointers.
I don't know if this will help, but see http://www.imagemagick.org/script/advan ... lation.php
But it may be too advanced for you.
<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>
But see http://www.rubblewebs.co.uk/index.php for more details on using PHP with IM as he has configured his system to tell PHP where IM is located so he only needs to do
<?php
exec("convert -version",$out,$returnval);
print_r($out[0]);
?>
I am not sure what he does in that case.
If you still have problem, then hopefully Magick can give you more pointers.
I don't know if this will help, but see http://www.imagemagick.org/script/advan ... lation.php
But it may be too advanced for you.
Re: Problems with installation
I just followed this directive to see if there was a component missing or something - http://blog.snapshotit.com/?p=24
So after I installed Imagick, and restarted Apache - both show up in my phpinfo () - - - however I still am unable to access ImageMagick from a client hosting website on the same server. I'll keep checking around (and follow up on the links you provided - thank you) and pop in the forum also, to see if there is any follow up from ones who know a little more about server installs. I feel like I'm almost there - but something is missing.
------
When I upload this code that you provided:
the webpage displays - "Version: ImageMagick 6.5.9-2 2010-02-06 Q16 http://www.imagemagick.org"
-----------
-----------
So after I installed Imagick, and restarted Apache - both show up in my phpinfo () - - - however I still am unable to access ImageMagick from a client hosting website on the same server. I'll keep checking around (and follow up on the links you provided - thank you) and pop in the forum also, to see if there is any follow up from ones who know a little more about server installs. I feel like I'm almost there - but something is missing.
------
When I upload this code that you provided:
Code: Select all
<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>
-----------
-----------
Re: Problems with installation
I used make check to get a more detailed report. After PASS: tests/validate-convert.sh nothing happened for probably 5 minutes and there was a huge server load all during that time. Then the Error 130 and Interupt displayed.
This is the results of make check:
This is the results of make check:
Code: Select all
make check-am
make[1]: Entering directory `/root/ImageMagick-6.5.9'
make tests/validate Magick++/demo/analyze Magick++/demo/button Magick++/demo/demo Magick++/demo/detrans Magick++/demo/flip Ma gick++/demo/gravity Magick++/demo/piddle Magick++/demo/shapes Magick++/demo/zoom Magick++/tests/appendImages Magick++/tests/at tributes Magick++/tests/averageImages Magick++/tests/coalesceImages Magick++/tests/coderInfo Magick++/tests/color Magick++/tes ts/colorHistogram Magick++/tests/exceptions Magick++/tests/montageImages Magick++/tests/morphImages Magick++/tests/readWriteBl ob Magick++/tests/readWriteImages wand/drawtest wand/wandtest
make[2]: Entering directory `/root/ImageMagick-6.5.9'
make[2]: `tests/validate' is up to date.
make[2]: `Magick++/demo/analyze' is up to date.
make[2]: `Magick++/demo/button' is up to date.
make[2]: `Magick++/demo/demo' is up to date.
make[2]: `Magick++/demo/detrans' is up to date.
make[2]: `Magick++/demo/flip' is up to date.
make[2]: `Magick++/demo/gravity' is up to date.
make[2]: `Magick++/demo/piddle' is up to date.
make[2]: `Magick++/demo/shapes' is up to date.
make[2]: `Magick++/demo/zoom' is up to date.
make[2]: `Magick++/tests/appendImages' is up to date.
make[2]: `Magick++/tests/attributes' is up to date.
make[2]: `Magick++/tests/averageImages' is up to date.
make[2]: `Magick++/tests/coalesceImages' is up to date.
make[2]: `Magick++/tests/coderInfo' is up to date.
make[2]: `Magick++/tests/color' is up to date.
make[2]: `Magick++/tests/colorHistogram' is up to date.
make[2]: `Magick++/tests/exceptions' is up to date.
make[2]: `Magick++/tests/montageImages' is up to date.
make[2]: `Magick++/tests/morphImages' is up to date.
make[2]: `Magick++/tests/readWriteBlob' is up to date.
make[2]: `Magick++/tests/readWriteImages' is up to date.
make[2]: `wand/drawtest' is up to date.
make[2]: `wand/wandtest' is up to date.
make[2]: Leaving directory `/root/ImageMagick-6.5.9'
make check-TESTS check-local
make[2]: Entering directory `/root/ImageMagick-6.5.9'
make[3]: Entering directory `/root/ImageMagick-6.5.9'
PASS: tests/validate-compare.sh
PASS: tests/validate-composite.sh
PASS: tests/validate-convert.sh
make[3]: *** [tests/validate-formats-on-disk.log] Error 130
make[2]: *** [check-TESTS] Interrupt
make[1]: *** [check-am] Interrupt
make: *** [check] Interrupt
Re: Problems with installation
Take a look at tests/validate-formats-on-disk.log. It tell you which tests failed. What does it report?
Re: Problems with installation
This is the what is in tests/validate-formats-on-disk.shmagick wrote:Take a look at tests/validate-formats-on-disk.log. It tell you which tests failed. What does it report?
set -e # Exit on any error
. ${srcdir}/tests/common.sh
${VALIDATE} -validate formats-on-disk
--------
Re: Problems with installation
Not sure what is going on. In all the tests we run we get something like this in tests/validate-formats-on-disk.log:
- Version: ImageMagick 6.5.9-2 2010-02-05 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
ImageMagick Validation Suite (FormatsOnDisk)
validate image formats on disk:
test 0: ART/Undefined/TrueColor/8-bits... pass.
test 1: ART/Undefined/TrueColorMatte/8-bits... pass.
test 2: ART/Undefined/Grayscale/8-bits... pass.
test 3: ART/Undefined/GrayscaleMatte/8-bits... pass.
test 4: ART/Undefined/Palette/8-bits... pass.
test 5: ART/Undefined/PaletteMatte/8-bits... pass.
test 6: ART/Undefined/PaletteBilevelMatte/8-bits... pass.
test 7: ART/Undefined/Bilevel/1-bits... pass.
test 8: ART/Undefined/ColorSeparation/8-bits... pass.
test 9: ART/Undefined/ColorSeparationMatte/8-bits... pass.
test 10: ART/Undefined/TrueColor/10-bits... pass.
...
Re: Problems with installation
Notice that my file name was tests/validate-formats-on-disk.sh with .sh extension - not .log extension.
Can I uninstall ImageMagick and try installing again? or can I just install it again?
Note - I have since installed both imagick from cPanel and PerlMagick hoping that they would provide something that was missing. Would they need to be uninstalled if I uninstall ImageMagick?
------
Can I uninstall ImageMagick and try installing again? or can I just install it again?
Note - I have since installed both imagick from cPanel and PerlMagick hoping that they would provide something that was missing. Would they need to be uninstalled if I uninstall ImageMagick?
------
Re: Problems with installation
You can always uninstall with
- make uninstall
- /usr/local/bin/convert logo: logo.pnm
/usr/local/bin/identify -verbose logo.pnm
Re: Problems with installation
magick wrote:You can always uninstall with
You should not need to uninstall iMagick or PerlMagick or for that matter ImageMagick. Do simple ImageMagick commands work?
- make uninstall
- /usr/local/bin/convert logo: logo.pnm
/usr/local/bin/identify -verbose logo.pnm
This the result of running the above recommendation (I took out my server name for this post):
Code: Select all
/usr/local/bin/convert logo: logo.pnm
/usr/local/bin/identify -verbose logo.png
identify: unable to open image `logo.png': @ error/blob.c/OpenBlob/2484.
identify: unable to open file `logo.png' @ error/png.c/ReadPNGImage/2939.
Re: Problems with installation
That would be logo.pnm. Try the identify command again. It seems likely it will work that suggests ImageMagick may be installed properly and working.