Error: You must specify one of pnmDir or ImPath for Gallery

m1a1lt

Joined: 2003-06-17
Posts: 9
Posted: Thu, 2003-08-21 06:19

Error: You must specify one of pnmDir or ImPath for Gallery to function!!

Hello,

Trying to install gallery 1.4 on linux server. Anyone know how I can fix this?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2003-08-21 06:25

m1a1lt, you must enter the path to either NetPBM or ImageMagick in the config.

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Thu, 2003-08-21 06:29

please specify in the gallery configuration whether or not your using imagemagick or netpbm and specify the paths to each accordingly, if using netpbm you need to see which binary you have, either pnmtojpeg or ppmtojpeg

hope that helps

 
m1a1lt

Joined: 2003-06-17
Posts: 9
Posted: Thu, 2003-08-21 17:19

I thought so but I don't know what to do now. I contacted my web administrater and he he gave me the path to the imagemagick files but I have tried them and during configu it keeps telling me it can't find the imagemagick files. Any thoughts on this?

 
m1a1lt

Joined: 2003-06-17
Posts: 9
Posted: Thu, 2003-08-21 17:35

I have also tried avoiding image magick by using netpbm....I uploaded the netpbm binaries and put in the path and it still can't find netpbm. Any ideas why?

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Thu, 2003-08-21 17:36

log into your server using the shell and run this command

rpm -qa | grep ImageMagick*

it will tell you if you have ImageMagick installed on the server or not, if so you can try using this command to find where convert id located if its in your path

whereis convert

if it dont tell you chances are its not in your path and wouldnt be in apaches path either

the most likely spot for it on Redhat servers will be

/usr/X11R6/bin

hope this helps

 
m1a1lt

Joined: 2003-06-17
Posts: 9
Posted: Thu, 2003-08-21 18:14

I currently do not have shell access but in the process of emailing my webadmin to see if he will grant it to me or if he can do the changes over shell access for me.

 
m1a1lt

Joined: 2003-06-17
Posts: 9
Posted: Fri, 2003-08-22 02:13

I have the gallery running good enough for the debug to run and it is giving me errors that not all the binaries are installed for both imagemagick and netpdm so I emailed my webadmin and the first email he said: Jeff,
As before it is indeed installed. When I ran the command it came back with:

ImageMagick-5.4.3.11-1

When I ran whereis covert, I got the following results:

convert: /usr/X11R6/bin/convert /usr/bin/X11/convert

after that I tried using those paths and it said there were binaries not installed and it listed them.

So I emailed him again and he said: Jeff,
I have several users on the same server running Image Magick without issue. I believe they are using a program called "gallery" to access it however.

I really could use some help on this one.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-08-22 02:35

Try using /usr/X11R6/bin as the path. Does this work?

 
eltantoni

Joined: 2003-09-03
Posts: 4
Posted: Wed, 2003-09-03 00:42

I too am having problems with imagemagick. I was told I have the necessary binaries in place, but cannot for the life of me get the correct path. I have tried the /usr/X11R6/bin to no avail. I have php 4.1.2. and am running redhat linux.
Any pointers would be well recieved! :D

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2003-09-03 00:56

If you have shell access, do the commands that were mentioned above. Post the results...

 
eltantoni

Joined: 2003-09-03
Posts: 4
Posted: Wed, 2003-09-03 09:06

I don't have shell access unfortunately, which kinda puts a crimp on things :( I'm going to email my web hosts to see if they can do it on my behalf...

 
eltantoni

Joined: 2003-09-03
Posts: 4
Posted: Wed, 2003-09-03 11:27

The saga continues... My web host doesn't have the rpm installed, so can't execute the shell command. They assure me that ImageMagick is installed, as the script does, We tried numerous paths including
usr/lib/ImageMagick
usr/share/ImageMagick
usr/include/Magick
and several other variations along those lines.

All produced he same error message saying the programme can't find Image Magick here.

Still I suppose it keeps the mind active... :o

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2003-09-03 11:29

Just try using NetPBM, which you can download directly from the Gallery Download Page

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-09-03 13:13

Note, all those paths are impossible. They should all begin with "/" eg
/usr/lib/ImageMagick

 
eltantoni

Joined: 2003-09-03
Posts: 4
Posted: Wed, 2003-09-03 13:31

Thanks Andrew,

My web host pulled the finger out and found the correct path for IM, which on my server is

/usr/bin/

We're cooking now! :D