VMware Cloud Community
curtis_strite
Contributor
Contributor

Apache 2.0 SNMP Install Errors

Hello,

I'm trying to run the build_apache_snmp.sh script on a Red Hat Enterprise Linux ES release 4 system.


-bash-3.00# ./build_apache_snmp.sh 2.0 /usr/sbin/apxs
building sdbm
building libsmi
Build failed. Please email /opt/hyperic/product_connectors/snmp-1.0.2/2.0_log to support


Here is a tail of the log mentioned above:

config.status: creating test/smilint-smiv2.test
config.status: creating test/smidiff.test
config.status: creating win/config.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
cd . && aclocal-1.6
/bin/sh: aclocal-1.6: command not f


Thanks,
Reply
0 Kudos
10 Replies
BradFelmey
Hot Shot
Hot Shot

What is the output of:

rpm -q automake
Reply
0 Kudos
curtis_strite
Contributor
Contributor

-bash-3.00# rpm -q automake
automake-1.9.2-3
-bash-3.00#


Thanks,
Curtis
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot

I'm not sure why the script would try to hard-code an automake version instead of simply checking for a new-enough one.

I can make a hack suggestion. Symlink aclocal. Something like:

cd /usr/bin
ln -s aclocal-1.9 aclocal-1.6

Run the script again and see how she goes.
Reply
0 Kudos
curtis_strite
Contributor
Contributor

Closer. 😞

Got a new error now. Looks like it's still related to the 1.6 hard coded.


config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
cd . && aclocal-1.6
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
cd . && \
automake-1.6 --foreign Makefile
/bin/sh: automake-1.6: command not found
make: *** [Makefile.in] Error 127


Any suggestions/hacks are appreciated.

Thanks,
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot

Do the same thing with automake. It's essentially the same error.

cd /usr/bin
ln -s automake-1.9 automake-1.6
Reply
0 Kudos
curtis_strite
Contributor
Contributor

Yes, I actually created that soft link while you were probably typing and all went through without any errors.

Hopefully this will help someone else out as well:

-bash-3.00# ./build_apache_snmp.sh 2.0 /usr/sbin/apxs
building sdbm
building libsmi
building ucd-snmp
building Apache module
-bash-3.00#
Reply
0 Kudos
karlm_hyperic
Contributor
Contributor

Hi

I'm running SuSE 9.3 and having this problem.
I've tried both simlinking and installing aclocal-1.6 and automake-1.6 and get the same result.

I get:
building sdbm
building libsmi
Build failed.

In the log, midway through the ./configure output you can see:
...
./configure: line 4471: AC_PROG_LIBTOOL: command not found
...

The log ends:
make all-recursive
make[1]: Entering directory `/usr/local/src/hyperic-hq-agent-3.2.2/product_connectors/snmp-1.0.2/srclib/libsmi'
Making all in lib
make[2]: Entering directory `/usr/local/src/hyperic-hq-agent-3.2.2/product_connectors/snmp-1.0.2/srclib/libsmi/lib'
/bin/sh: LIBTOOL@: command not found
make[2]: *** [data.lo] Error 127
make[2]: Leaving directory `/usr/local/src/hyperic-hq-agent-3.2.2/product_connectors/snmp-1.0.2/srclib/libsmi/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/hyperic-hq-agent-3.2.2/product_connectors/snmp-1.0.2/srclib/libsmi'
make: *** [all] Error 2

Any clues?

Cheers
Karl
Reply
0 Kudos
karlm_hyperic
Contributor
Contributor

OK, fixed. I had to run
./build_apache_snmp.sh -r 2.0 /usr/sbin/apxs2

(with the -r as the first argument)

to rebuild the configuration files.

Cheers
Karl
Reply
0 Kudos
karlm_hyperic
Contributor
Contributor

Not fixed 😞

Now I get:
...
building sdbm
building libsmi
building ucd-snmp
building Apache module
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
Build failed. Please email /usr/local/src/hyperic-hq-agent-3.2.2/product_connectors/snmp-1.0.2/2.0_log to support
Reply
0 Kudos
dougm_hyperic
VMware Employee
VMware Employee

server-service.c:11:17: mpm.h: No such file or directory

Do you have the apache+apr devel rpms installed?
Reply
0 Kudos