"libdpstk.so.1" not found, etc.

EsmereldaPea
EsmereldaPea's picture

Joined: 2003-06-15
Posts: 20
Posted: Sat, 2005-06-11 19:03

I HAD an older version of Gallery installed, and it stopped working after a system upgrade (FreeBSD/PHP/mySQL).

So I do a completely new install (different user, domain, directory), and I get the ubiquitous "unable to create thumbnail" error. Turning on debug gives me this:

Debug messages: 
/usr/libexec/ld-elf.so.1: Shared object "libdpstk.so.1" not found


Status: 1 (expected 0) 
Error: Unable to make thumbnail (0) 

So I install the latest version of ImageMagick, hoping this will solve the problem, and I still get the following:

/usr/libexec/ld-elf.so.1: Shared object "libdpstk.so.1" not found

When I go to Gallery configuration, I see this on the debug page:

We are going to test each ImageMagick binary individually. 
Checking: '/usr/local/bin/identify' Expected status: 0, but actually received status 1. 

Notice: Undefined offset: 0 in /usr/home/wlw2005/www/gallery/setup/check_imagemagick.php on line 244

Notice: Undefined offset: 0 in /usr/home/wlw2005/www/gallery/setup/check_imagemagick.php on line 247
 Checking: '/usr/local/bin/convert' 

And here is my system config:

mydomain.net 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Sun Dec 7 12:20:11 EST 2003 :/usr/obj/usr/src/sys/INU i386 

This is the type of system on which PHP was compiled:

FreeBSD mydomain.net 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Sun i386 

Additionally, here are some tidbits from phpinfo:

Apache Version 	Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7c PHP/4.3.4 	
Apache Release 	10329100 	
Apache API Version 	19990320

PHP Version 4.3.4

Is NETPBM that much better?? Are there any disadvantages to using it instead of ImageMagick?

Hope you can help!!

Esme

 
Jordan_01002

Joined: 2005-02-14
Posts: 1535
Posted: Sat, 2005-06-11 21:31

Netpbm is better in that if you download the staticly linked files from the gallery download site, they won't gripe about missing libraries and bail on you :)
As to which is better, it's a matter of debate AFAIK. Both work and do the same thign.

 
EsmereldaPea
EsmereldaPea's picture

Joined: 2003-06-15
Posts: 20
Posted: Tue, 2005-06-14 01:03

Well, my tech support did something to solve the original problems, but then I ended up with another error:

convert: no decode delegate for this image format `/usr/home/wlw2005/www/gallery/albums/album01/19thcstreetcar.jpg'.

Status: 1 (expected 0) 
Error: Unable to make thumbnail (0) 

After some very scary commands (I usually rely on tech support to do these kinds of installs for me, as I'm probably more likely to break something than not), I FINALLY got ImageMagick to recognize the jpeg library!!

I followed two pieces of advice - not sure if it required both:

Quote:
solve by adding:
CPPFLAGS='-I/usr/local/include'
LDFLAGS='-L/usr/local/lib'
to the ./configure

Found that in a post on ImageMagick's forum

AND

Quote:
Why can't I upload images using ImageMagick on FreeBSD?

The default install of ImageMagick on FreeBSD doesn't seem to compile with some important image support (e.g. JPEG), so you must explicitly tell it to. There are two ways of doing this.

Compile ImageMagick using this command: cd /usr/ports/graphics/ImageMagick/ && make -DWITH_JPEG -DWITH_TIFF -DWITH_PNG install clean

Add the following lines to /etc/make.conf:

WITH_JPEG=yes
WITH_TIFF=yes
WITH_PNG=yes

Then uninstall ImageMagick via ports (make deinstall clean) and reinstall it (make install clean)

Found that in a FAQ somewhere (can't recall now where - I've been all over the world and back trying to resolve this).

Although, I did not use FreeBSD ports to do the install - I installed from source.

I hope this helps somebody else.

Esme

 
EsmereldaPea
EsmereldaPea's picture

Joined: 2003-06-15
Posts: 20
Posted: Tue, 2005-06-14 02:05
Quote:
Netpbm is better in that if you download the staticly linked files from the gallery download site, they won't gripe about missing libraries and bail on you

BTW, NetPBM wouldn't install easily, either, so that's why I stayed with ImageMagick - we had it working at one time . . .

Esme