From: Chris R. <Chris.Rinaldo@Sun.COM> - 2009-02-27 22:44:37
|
Ric White wrote: > I'm thinking of setting up a Solaris system (on a HP ProLiant server) to > run OpenHPI. > > I had a question for anyone who has built OpenHPI on Solaris. Is the > effort to install the dependent packages and perform a build comparable > to what is required on a Linux distro? I've built OpenHPI on SLES, Red > Hat, and some of the Debian based distros, but I have no experience with > Solaris. Ric, Compiling OpenHPI on a Solaris 10 system requires a few more steps than compiling on a Linux system. Also, some of the command names and the locations of commands and libraries on a Solaris 10 system are not what you would expect if you are coming from a Linux system. > Anyone have any tips or advice? I have included some instructions below for compiling OpenHPI 2.13.3 on a x86 Solaris 10 system. I can't guarantee these will work on your system, but you might find them useful. Let me know if you run into any problems or have any questions. You might need additional packages depending on which OS installation options were used. 1. Set your path. % PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin:\ /opt/sfw/bin:/usr/perl5/bin % export PATH 2. Download and install autoconf, automake, and libtool % wget \ http://companion.sunfreeware.com/downloads/S10U6/I386/SFWaconf.zip \ http://companion.sunfreeware.com/downloads/S10U6/I386/SFWamake.zip \ http://companion.sunfreeware.com/downloads/S10U6/I386/SFWltool.zip % unzip SFWaconf.zip; unzip SFWamake.zip; unzip SFWltool.zip % su # pkgadd -d . SFWaconf # pkgadd -d . SFWamake # pkgadd -d . SFWltool # exit 3. Download OpenHPI-2.13.3 % wget http://downloads.sourceforge.net/openhpi/openhpi-2.13.3.tar.gz % gtar zxf openhpi-2.13.3.tar.gz % cd openhpi-2.13.3 4. Download and apply the OpenHPI for Solaris 10 patches described in 2543954 Fix a compile problem with sprintf on Solaris 2546669 Fix a configure problem with glib on Solaris % wget 'http://sourceforge.net/tracker2/download.php?group_id=71730&atid=532254&file_id=311048&aid=2543954' -O oh_error.h.patch % gpatch -p0 < oh_error.h.patch % wget 'http://sourceforge.net/tracker2/download.php?group_id=71730&atid=532254&file_id=315346&aid=2546669' -O configure.patch % gpatch -p0 < configure.patch 5. Run configure and compile % ./configure --disable-snmp_bc \ LDFLAGS='-L/lib -L/opt/sfw/lib -R/opt/sfw/lib -lrt' \ CFLAGS='-I/opt/sfw/include' % gmake Chris |