Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


cactid configure time difficulty

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
zimxx



Joined: 17 Jun 2003
Posts: 10

PostPosted: Tue Jun 17, 2003 5:47 pm    Post subject: cactid configure time difficulty Reply with quote

im having some trouble configuring cactid, i'm excited about the new poller because my polls take well over 5 minutes to complete due to the sheer quantity of them. anyway... it seems that configure's finding the mysql includes happily and im pointing it to my install of net-snmp. it seems to choke on libcrypto.

tis a redhat 7.3 system im pointing configure to net-snmp with
Quote:
./configure --with-snmp=/opt/netsnmp/include/net-snmp/


and getting the following (apropriate) output:

Quote:
checking if MySQL requires libz... yes
checking for mysql_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... no
configure: error: libcrypto not found!


the apropriate output from my config.log is:
Quote:
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CRYPTO_free ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
CRYPTO_free ();
;
return 0;
}
configure:4403: result: no
configure:4413: error: libcrypto not found!


i have /lib/libcrypto.so.0.9.6b provided by openssl-0.9.6b-28

adendum: i also have openssl devel installed, netsnmp is a home-compiled netsnmp 5.0.7, mysql-devel, client, and server are all installed along with mysql-3.23.54a-3.73

packages if not otherwise noted are redhat 7.3 rpm's

--any ideas?
Back to top
zimxx



Joined: 17 Jun 2003
Posts: 10

PostPosted: Tue Jun 17, 2003 10:32 pm    Post subject: Reply with quote

i fixed it, this was in fact, while it may not have seemed so by the log and errors, a mysql problem.
Back to top
Guest






PostPosted: Sun Feb 01, 2004 5:09 pm    Post subject: Reply with quote

zimxx wrote:
i fixed it, this was in fact, while it may not have seemed so by the log and errors, a mysql problem.


What problem, and how did you fix it please ? ( I ran into the same error messages )
Back to top
tejinashi



Joined: 01 Oct 2006
Posts: 1

PostPosted: Sun Oct 01, 2006 3:45 am    Post subject: Reply with quote

i was able to get cactid to compile using:

./configure --prefix=/usr/local/wanmon --sysconfdir=/usr/local/wanmon/etc --with-snmp=/usr/local/wanmon

it wouldn't compile when i specified the mysql installation i wanted it to use. so i used the distributions mysql stuff under /usr/lib/mysql and /usr/include/mysql

the following did *not* work.
./configure --prefix=/usr/local/wanmon --sysconfdir=/usr/local/wanmon/etc --with-snmp=/usr/local/wanmon/include --with-mysql=/usr/local/mysql


I am surpised that configure hasn't been fixed for this issue.


UPDATE:

removing the distributions mysql libraries and headers, and rerunning configure with the following worked quite nicely for me.

./configure --prefix=/usr/local/wanmon --sysconfdir=/usr/local/wanmon/etc --with-snmp=/usr/local/wanmon --with-mysql=/usr/local/mysql

net-snmp was configured with:
where prefix=/usr/local/wanmon
if [ -f net-snmp-5.3.0.1.tar.gz ] ; then
tar zxf net-snmp-5.3.0.1.tar.gz && \
cd net-snmp-5.3.0.1 && \
./configure --prefix=$prefix \
--with-default-snmp-version="1" \
--with-openssl=/usr/local/ssl && \
--with-sys-contact="$user@localhost" \
--with-sys-location="inside the ndmonitor appliance" \
--with-logfile="$prefix/var/log/snmpd.log" \
--with-persistent-directory="$prefix/var/net-snmp" \
--without-rpm \
make && \
make install
cd $CWD
fi
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9689
Location: MI, USA

PostPosted: Sun Oct 01, 2006 9:10 am    Post subject: Reply with quote

Can you please try Beta3 in the Announcements forum and then run the "auto" tools as described. The configure.ac at the bottom of the post, is the one I would like you to try. Please post here and there, your results.

Thanks,

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group