kmeera has asked for the wisdom of the Perl Monks concerning the following question:

Hi
i am facing issue in installing GD module on Solaris 5.10.

I want to install GD::Graph

- for this i was trying to install libgd

gd.2.0.34 but i am facing issues while compiling

~/GD/gd-2.0.35# make

make all-recursive

Making all in config

Making all in test

source='gdxpm.c' object='gdxpm.lo' libtool=yes \

DEPDIR=.deps depmode=none /bin/bash ./config/depcomp \

/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -g -c -o gdxpm.lo gdxpm.c

cc -DHAVE_CONFIG_H -I. -I. -I. -g -c gdxpm.c -KPIC -DPIC -o .libs/gdxpm.o

"gdxpm.c", line 28: cannot find include file: <X11/xpm.h>

"gdxpm.c", line 32: undefined symbol: XpmInfo

"gdxpm.c", line 32: syntax error before or at: info

"gdxpm.c", line 33: undefined symbol: XpmImage

"gdxpm.c", line 42: warning: implicit function declaration:

XpmReadFileToXpmImage


can some body help. I am not able to find X11 files on my Solaris box and i dont have root permission.

Thanks

Replies are listed 'Best First'.
Re: GD::Graph Install on Solaris
by jethro (Monsignor) on Jun 23, 2008 at 13:14 UTC
    If your machine isn't a pure server machine, there should be X11 on it. Try /usr/X/. But since GDs configure script couldn't find it, you are probably out of luck

    Installing X11 is no small task. You might try to copy the X11 libraries from a solaris machine with X11 installed, if available

Re: GD::Graph Install on Solaris
by Anonymous Monk on Jun 23, 2008 at 11:49 UTC
    so install X11 to the same place as you're trying to install libgd?
      from where can i get X11 package?
Re: GD::Graph Install on Solaris
by alexm (Chaplain) on Jun 23, 2008 at 22:32 UTC

    It seems that you need Solaris packages containing Xpm, which should be available on an installation Solaris DVD:

    • SUNWxwinc contains the X11 header files (including X11/xpm.h)
    • SUNWxwplt contains the X11 libraries (including libXpm.so*)
    • SUNWxwplx contains those same X11 libraries for 64-bit platforms