Hey again
fmw42. Between my last message and now, I've been grappling with Linux from the command line, and I've managed to update IMagick and Imagemagick - more by luck than judgement. Unfortunately I didn't document each of the steps that this involved, but I'll try to include a synopsis below for anyone else in my position. The PHP Info page now reports:
Code: Select all
imagick module version 3.1.2
ImageMagick version ImageMagick 6.8.8-7 Q16 i686 2014-02-23 http://www.imagemagick.org
And the error I was seeing before has gone away (as far as I can tell, haven't tested this thoroughly yet).
1) Update the source.list file in Ubuntu. This file contains a list of URLs that the Advanced Packaging Tool consults when it is asked to install or update software. The file was completely outdated. Because Ubuntu 7.10 hasn't been supported since 2009, the Ubuntu repositories no longer host any software packages for this version - but they *are* available in from the "old-releases" Ubuntu host. So I had to comment out most of the lines in that file, and replace them with the set below. On Ubuntu Linux 7.10 the sources.list file is contained within the "/etc/apt/" directory:
Code: Select all
deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ gutsy universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security universe
deb http://old-releases.ubuntu.com/ubuntu/ gutsy-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy universe
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
I came across this thread on
this forum:
viewtopic.php?f=1&t=24284
Which proved invaluable, though I had to change a few things and add some extra steps.
2)
-> this worked fine after I'd modified sources.list
Code: Select all
sudo apt-get install build-essential checkinstall libx11-dev libxext-dev zlib1g-dev libpng12-dev libjpeg-dev libfreetype6-dev libxml2-dev
-> this worked OK too
Code: Select all
sudo apt-get build-dep imagemagick
-> this caused some problems, but I've forgotten what I did to overcome them! ...
3) Modified version of the next step from that thread. I didn't know where I should put the downloaded file, but following the advice from this page (
http://www.linuxjournal.com/article/4121) I navigated to the "/opt/" directory and ran the wget command below from there.
Code: Select all
cd /opt/
wget http://www.imagemagick.org/download/ImageMagick-6.8.8-7.tar.gz
tar -xzvf ImageMagick-6.8.8-7.tar.gz
cd ImageMagick-6.8.8-7
chmod +x ./configure
./configure
sudo checkinstall
I was told that the installation had completed successfully, but nothing seemed to have changed. Then I found this page:
http://hasin.me/2008/02/06/installing-i ... buntu-710/ and followed the additional steps there.
4) Modified version of steps from that page. When I tried to run "phpize" I was told something like "command not found". Googling this error turned up the solution - I had to install php5-dev first:
Code: Select all
apt-get install php5-dev
wget http://pecl.php.net/get/imagick-3.1.2.tgz
tar zxf imagick-3.1.2.tgz
cd imagick-3.1.2
phpize && ./configure
sudo make
sudo make install
I skipped step 3 from the hasin.me page (
Now add “extension=imagick.so” in your php.ini (You may need to write the full path of imagick.so based on your configuration)
), but did restart Apache after this:
Once I'd done that the PHP Info page displayed the updated information. Many thanks to everyone for your help and suggestions!