Error: I can't find NetPBM at the location you provided...

littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 09:38

I'm having real trouble with this one. I've found how to get the path for the albums and temp directory using the test.php and did the same for the netpbm but I still get this error just for the netpbm (it can find temp and albums)

Error: I can't find NetPBM at the location you provided. Gallery prefers NetPBM version 9.9 and up. You can install just the binaries Gallery needs from the Gallery Download Page. Or, you can compile and install the entire NetPBM package from the NetPBM website.

Note: You can install the binaries from the Gallery site even if you don't have root access on your box! If you can't get it working, try leaving the NetPBM path blank and using ImageMagick instead.

The path is shown here... http://www.littlejones.co.uk/gallery/netpbm//test.php

Maybe there is something wrong with my NetPBM, on the download page there are about 5 different downloads, e.g. win32 netpbm which has .exe files in it, Linux netpbm which doesn't have .exes. I'm no whizz at this so don't know what to use but I've put the lot into one netpbm folder and it still doesn't work!

----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL http://www.littlejones.co.uk/gallery:
Gallery version: 1.4.1-pl1 if that even exists
Apache version: don't know what apache means :)
PHP version (don't just say PHP 4, please): don't know
Graphics Toolkit: netpbm maybe
Operating system: I use XP, don't know about the host (Easyspace)
Web browser/version (if applicable): firefox

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-07-17 10:04

From your domain, I visited netcraft at http://uptime.netcraft.com/up/graph?site=www.littlejones.co.uk and found that your host runs linux and apache. So you'll want the linux-intel binaries. Don't forget to chmod them 755 (executable).

1.4.1-pl1 is quite old though and I would STRONGLY suggest you go with something recent like 1.5. I suspect you have a host that has some sort of "auto install" thing though, otherwise I have no idea how you got your hands on such an old version to install :)

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 10:07

Hi thanks for your help, I'll give it a go. I actually got that version from www.download.com so don't know what they're doing with that. I'll look for the new one and get it and let you know if I have any problems. Thanks again.

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 10:54

ok everything is up to date as far as I can see. I have gallery 1.5 and netpbm 2.4-pl2-linux intel but I still have the 1 error

Error: I can't find NetPBM at the location you provided. Gallery prefers NetPBM version 9.9 and up. You can install just the binaries Gallery needs from the Gallery Download Page. Or, you can compile and install the entire NetPBM package from the NetPBM website.

Note: You can install the binaries from the Gallery site even if you don't have root access on your box! If you can't get it working, try leaving the NetPBM path blank and using ImageMagick instead.

The path is shown here... http://www.littlejones.co.uk/gallery/netpbm//test.php

I've no idea what it's playing at because it's pointing to the right directory as far as I can see. Why doesn't it like it?

Thanks

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-07-17 11:12

I get an error going to that URL, even when I corrected the extra / and tried removing /gallery from it. Be sure you are giving it a PATH (like /home/httpd/something/something) and NOT A URL (http://domain.com/netpbm/). Also make double sure you have chmoded the files to be executable.

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 11:14

Sorry it went because I updated the version.

Try now, its the same path I put into the gallery config

http://www.littlejones.co.uk/gallery/netpbm//test.php

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-07-17 12:13

Are you SURE those files are in that directory? Are you SURE you used FTP to chmod them 755? I've asked that question 2 or 3 times now and haven't gotten an answer. Does the path for that directory jive with the path for your /albums dir? Do they look fairly similar, with only minor differences at the end?

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 15:05

HI,

sorry for taking so long to reply and sorry for not giving you enough info to help me properly.

Albums is at
/vhost/vhost1/l/i/t/littlejones.co.uk/www/gallery/albums
chmod 755

Temp is at
/vhost/vhost1/l/i/t/littlejones.co.uk/www/gallery/temp
chmod 755

and Netpbm is at
/vhost/vhost1/l/i/t/littlejones.co.uk/www/gallery/netpbm
chmod 755

the program recognises albums and temp when I point them to the directories above as I don't get any errors, but when I do the same thing for NetPBM it is telling me it can't find it.

Amongst all the files in the netpbm folder is
pnmtojpeg
pnmpcomp

etc etc

those files I just mentioned are set to chmob 644 but the folder they are in (netpbm) is 755

Hope that helps you a little

Thanks

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-07-17 15:10

Ah, make those files 755 also. You probably need to do it on the folder (like you already have) and then once again in the directory like "chmod 755 *". Its the extra +1 that makes them executable and therefore usable.

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 15:30

Wooohooo, progress at last. Thanks for your help....

Now however, would you mind visiting the link below and telling me whats going on. i also got this error when I tried to save the config.

http://www.littlejones.co.uk/gallery/

Error: Could not acquire lock (/vhost/vhost1/l/i/t/littlejones.co.uk/www/gallery/albums/.users/userdb.dat.lock)! Error: Could not acquire lock (/vhost/vhost1/l/i/t/littlejones.co.uk/www/gallery/albums/.users/userdb.dat.lock)!

Error: There was a problem upgrading users. Please check messages above, and try again

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-07-17 15:42

It sounds like your /albums/ directory is not truely 777 yet. If you have ssh access, try "chmod -R 777 albums/" and see if that works. If FTP, pray your client has a "recursive" check box :)

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 15:52
fryfrog wrote:
It sounds like your /albums/ directory is not truely 777 yet. If you have ssh access, try "chmod -R 777 albums/" and see if that works. If FTP, pray your client has a "recursive" check box :)

ok, I'm not a complete computer newbie but I don't understand a lot of that. I don't know what ssh mean but my albums folder was already 777 when I checked just now so that a shame. As for the bit about client and recursive you've lost me.

Why is there an error "problem upgrading users". I don't have any users. And as for the aquiring lock error that ones got me truely stumped :evil:

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 17:27

I can't get back into the config page now because that error page has taken it's place. I was going to try what I have pasted below from one FAQ but I can't get in the config

On using Gallery on an NFS filesystem:

The NFS specification notes that flock() calls are not supported. Since Gallery uses flock() frequently, it is necessary to disable flock() in the Gallery configuration, or move the Gallery/albums to a disk local to the Web server.

Typical errors to indicate this problem will look like:

Error: Could not acquire lock (.../albums/.users/userdb.dat.lock)!
Error: Could not acquire lock (.../albums/.users/1093253136_894609043.lock)

This appears the same as the FAQ c.15, but is a filesystem issue rather than a permissions problem. See discussion

 
littlejones

Joined: 2005-07-16
Posts: 20
Posted: Sun, 2005-07-17 17:47

Wooohooo, fixed and fixed again!

In case anyone is reading this looking for the answer edit config.php and set use_flock to "no".

I got this answer from

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=20029&postdays=0&postorder=asc&start=15

Thanks!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-07-18 04:37

Ah, your host must use NFS? I'd never have guessed that :)