[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Building server on OSX 10.5.5



Thanks for the replies.

John got me going and provided some very valuable information for 10.5.x hobbit server installs.

Also I ran into a chgrp error during the gmake install, you need to tweak hobbitd/Makefile.

Hope this helps others,

Cheers,

Lee

On Sep 25, 2008, at 3:12 PM, John Turner wrote:

Yes. With 10.5 the nireport command is replaced with dscl. You will want to replace the lines 186 and 196 as shown below.

old ->  USERDATA="`nireport / /users name home | grep $BBUSER`"
new -> USERDATA="`dscl . -list /Users  | grep $BBUSER`"


old->   HOMEDIR="`echo $USERDATA | awk '{print $2}'`"
new-> HOMEDIR="`dscl . -read /Users/$BBUSER | grep HomeDirectory | awk '{print $2}'`"

John

On Sep 25, 2008, at 3:05 PM, Lee J. Imber wrote:

Thanks John, That get me further along but I then run into the next issue.

sh-3.2$ id
uid=1000(lee) gid=1000(lee) groups=1000(lee),1004(cvs), 101(com.apple.access_screensharing),80(admin) sh-3.2$ MAKE=gmake ./configure.server --rrdinclude /opt/local/ include --rrdlib /opt/local/lib --pcreinclude /opt/local/include -- pcrelib /opt/local/lib

Configuration script for Hobbit

This script asks a few questions and builds a Makefile to compile Hobbit

Checking your make-utility
Checking pre-requisites for building Hobbit

Checking for fping ...
Hobbit has a built-in ping utility (hobbitping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I could not find fping on your system
Do you want to use hobbitping [Y/n] ?
y
OK, I will use hobbitping.


Checking for RRDtool ...
test-rrd.c: In function 'main':
test-rrd.c:30: error: too few arguments to function 'rrd_graph'
gmake: *** [test-compile] Error 1
Not RRDtool 1.0.x, checking for 1.2.x
Found RRDtool include files in /opt/local/include
Found RRDtool libraries in /opt/local/lib


Checking for PCRE ...
Found PCRE include files in /opt/local/include
Found PCRE libraries in /opt/local/lib


Checking for OpenSSL ...
OpenSSL include- or library-files not found.
Although you can use Hobbit and bbgen without OpenSSL, you will not
be able to run network tests of SSL-enabled services, e.g. https.
So installing OpenSSL is recommended.
OpenSSL can be found at http://www.openssl.org/

If you have OpenSSL installed, use the "--sslinclude DIR" and "-- ssllib DIR"
options to configure to specify where they are.

Continuing with SSL support disabled.


Checking for LDAP ...
(Open)LDAP include- or library-files not found.
If you want to perform detailed LDAP tests (queries), you need to
install LDAP an LDAP client library that bbgen can use.
OpenLDAP can be found at http://www.openldap.org/

If you have OpenLDAP installed, use the "--ldapinclude DIR" and "-- ldaplib DIR"
options to configure to specify where they are.

Continuing with LDAP support disabled.


Checking for Large File Support ...
Large File Support OK


Setting up for a Hobbit server


What userid will be running Hobbit [hobbit] ?
lee
./configure.server: line 186: nireport: command not found
FAILURE: The user lee does not exist. Create user and try again.
sh-3.2$


Any ideas?

Thanks,

Lee

On Sep 25, 2008, at 2:47 PM, John Turner wrote:

I just did this yesterday using this command...

./configure.server --rrdinclude /opt/local/include --rrdlib /opt/ local/lib --pcreinclude /opt/local/include --pcrelib /opt/local/ lib --sslinclude /opt/local/include --ssllib /opt/local/lib -- ldapinclude /opt/local/include --ldaplib /opt/local/lib

I checked and my rrdtool (installed via MacPorts yesterday) was 1.3.3

configure output edited as follows....

Checking for RRDtool ...
test-rrd.c: In function 'main':
test-rrd.c:30: error: too few arguments to function 'rrd_graph'
make: *** [test-compile] Error 1
Not RRDtool 1.0.x, checking for 1.2.x
Found RRDtool include files in /opt/local/include
Found RRDtool libraries in /opt/local/lib


I see your mistake "--rrdinclude" needs to be /opt/local/include not /opt/local/bin.


John Turner

On Sep 25, 2008, at 2:35 PM, Lee J. Imber wrote:

I am trying to build 4.2.0 server on OSX 10.5.5.


sh-3.2$ find /opt/local/ -name rrdtool
/opt/local//bin/rrdtool
/opt/local//lib/rrdtool
/opt/local//share/rrdtool
/opt/local//var/macports/distfiles/rrdtool
/opt/local//var/macports/receipts/rrdtool
/opt/local//var/macports/software/rrdtool
/opt/local//var/macports/software/rrdtool/1.3.2_0/opt/local/bin/ rrdtool /opt/local//var/macports/software/rrdtool/1.3.2_0/opt/local/lib/ rrdtool /opt/local//var/macports/software/rrdtool/1.3.2_0/opt/local/share/ rrdtool /opt/local//var/macports/sources/rsync.macports.org/release/ports/ net/rrdtool

sh-3.2$ MAKE=gmake ./configure.server --rrdinclude /opt/local/bin --rrdlib /opt/local/lib

Configuration script for Hobbit

This script asks a few questions and builds a Makefile to compile Hobbit

Checking your make-utility
Checking pre-requisites for building Hobbit

Checking for fping ...
Hobbit has a built-in ping utility (hobbitping)
However, it is not yet fully stable and therefore it
may be best to use the external fping utility instead.
I could not find fping on your system
Do you want to use hobbitping [Y/n] ?
y
OK, I will use hobbitping.


Checking for RRDtool ...
test-rrd.c:3:17: error: rrd.h: No such file or directory
test-rrd.c: In function 'main':
test-rrd.c:26: warning: implicit declaration of function 'rrd_clear_error' test-rrd.c:30: warning: implicit declaration of function 'rrd_graph'
gmake: *** [test-compile] Error 1
Not RRDtool 1.0.x, checking for 1.2.x
test-rrd.c:3:17: error: rrd.h: No such file or directory
test-rrd.c: In function 'main':
test-rrd.c:26: warning: implicit declaration of function 'rrd_clear_error' test-rrd.c:28: warning: implicit declaration of function 'rrd_graph'
gmake: *** [test-compile] Error 1
ERROR: RRDtool include files found in /opt/local/bin, but compile fails.
sh-3.2$


AFAIK BSD tools are installed.

Anyone have success?

Thanks,

Lee


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk