Netpbm - Creating a full application

sam@pcm
sam@pcm's picture

Joined: 2002-12-03
Posts: 1
Posted: Tue, 2002-12-03 12:50

Hi there

This is directed mainly at the developer of Gallery but if anybody else has ideas please help out.

I am currently writing a little script to allow people to develop business card through a website. I need to use Netpbm to do the graphics manipulation. Unfortunately I have no idea how to install it.

Firstly I need it on a web server that I do not have root access to and the administrators have refused to install netbm.

I noticed that for Gallery there is a precompiled a selection of netpbm binaries which I just place in an accessible directory on the server and them use them.

So the question is how to I get create all the netpbm binaries in a similar manner to those created for Gallery so that they work in my local home directory provided by my web server. The server that I am using run Redhat 7.0

Ideas ...... please .... Thanks all

Later
Sam

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2002-12-03 17:17

Do you have access to a C compiler? (cc, gcc) (just make sure it's not GCC version 2.96, which has a bug in it and breaks NetPBM).

Then, grab the NetPBM source and compile it on your server. Following the install directions, you'll need to change the prefix path to something in your directory, rather than the default /usr/local or whatever. You'll need libjpeg, libpng, zlib, and maybe libtiff and others depending on what NetPBM functionality you want. If your server doesn't have any of these (look in /usr/lib, /usr/include, etc.), you'll have to download and compile those, and again make the prefix something local so when you run make install, it'll install the files into your directory. Then follow the directions for NetPBM to just compile the bits you want, specifying the paths to these newly compiled libraries if necessary. :smile:

-Beckett (

)

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-12-13 03:23

You don't have to use it under *nix where you don't have much access.
There are windows ports that work just as well. Check out GnuWin32
on SourceForge.