Argus and clients on Mac OS X Lion
Carter Bullard
carter at qosient.com
Sun Jan 1 19:46:44 EST 2012
Hey David,
I think we put the reference to /opt/local/lib because we're Mac OS X,
looking for readline. I'll take it out if it doesn't exist.
Carter
On Jan 1, 2012, at 5:57 PM, David Edelman wrote:
> Carter,
>
> This screen capture shows part of the sequence. The basic issue is that
> you need to use MacPort versions of the ncurses and readline libraries
> which are not in the typical locations.
>
> The thing that I can no longer demonstrate is that the include files are
> also in odd places; I have since moved both the libraries and the include
> files to the expected locations to preserve my sanity (such as it is :( )
>
> Have a very happy New Year!
>
> --Dave
>
>
>
> sh-3.2# cd ratop/
> sh-3.2# \make
> make: Nothing to be done for `all'.
> sh-3.2#
> sh-3.2# ls
> Makefile Makefile.in README ratop.c ratop.h ratop.o
> sh-3.2# touch ratop.c
> sh-3.2# cd /opt/
> local/ rrdtool-1.4.5/
> sh-3.2# cd /opt/local/
> Library/ bin/ etc/ include/ lib/ libexec/ man/ sbin/
> share/ var/
> sh-3.2# cd /opt/local/
> sh-3.2# ls -l
> total 16
> drwxr-xr-x 3 root wheel 102 Dec 24 03:49 Library
> drwxr-xr-x 322 root admin 10948 Dec 31 05:57 bin
> drwxr-xr-x 10 root admin 340 Dec 24 16:09 etc
> drwxr-xr-x 67 root admin 2278 Dec 24 22:05 include
> lrwxr-xr-x 1 root wheel 14 Dec 25 21:51 lib -> /usr/local/lib
> drwxr-xr-x 11 root admin 374 Dec 24 22:12 libexec
> lrwxr-xr-x 1 root admin 9 Dec 23 02:06 man -> share/man
> drwxr-xr-x 4 root admin 136 Dec 24 22:05 sbin
> drwxr-xr-x 27 root admin 918 Dec 25 04:51 share
> drwxr-xr-x 5 root admin 170 Dec 24 22:05 var
> sh-3.2#
> sh-3.2#
> sh-3.2# rm lib
> sh-3.2# ls -l
> total 8
> drwxr-xr-x 3 root wheel 102 Dec 24 03:49 Library
> drwxr-xr-x 322 root admin 10948 Dec 31 05:57 bin
> drwxr-xr-x 10 root admin 340 Dec 24 16:09 etc
> drwxr-xr-x 67 root admin 2278 Dec 24 22:05 include
> drwxr-xr-x 11 root admin 374 Dec 24 22:12 libexec
> lrwxr-xr-x 1 root admin 9 Dec 23 02:06 man -> share/man
> drwxr-xr-x 4 root admin 136 Dec 24 22:05 sbin
> drwxr-xr-x 27 root admin 918 Dec 25 04:51 share
> drwxr-xr-x 5 root admin 170 Dec 24 22:05 var
> sh-3.2# cd ~dwedelman/Downloads/argus-clients-3.0.4.1/ratop/
> sh-3.2# touch ratop.c
> sh-3.2# make
> gcc -O3 -I/opt/local/include -I. -I../include -I../common
> -DHAVE_CONFIG_H -c ./ratop.c
> gcc -O3 -o ../bin/ratop ratop.o ../lib/argus_parse.a
> ../lib/argus_common.a ../lib/argus_client.a -lz -L/opt/local/lib
> -lncurses -lreadline
> ld: warning: directory not found for option '-L/opt/local/lib'
> sh-3.2# make install
> [ -d /usr/local/bin ] || \
> (mkdir -p /usr/local/bin; chmod 755 /usr/local/bin)
> /usr/bin/install -c ../bin/ratop /usr/local/bin
> sh-3.2# ln -s /usr/local/lib /opt/local/lib
> sh-3.2# touch ratop.c
> sh-3.2# make
> gcc -O3 -I/opt/local/include -I. -I../include -I../common
> -DHAVE_CONFIG_H -c ./ratop.c
> gcc -O3 -o ../bin/ratop ratop.o ../lib/argus_parse.a
> ../lib/argus_common.a ../lib/argus_client.a -lz -L/opt/local/lib
> -lncurses -lreadline
> sh-3.2# make install
> [ -d /usr/local/bin ] || \
> (mkdir -p /usr/local/bin; chmod 755 /usr/local/bin)
> /usr/bin/install -c ../bin/ratop /usr/local/bin
> sh-3.2# ratop
>
> sh-3.2# c
>
>
>
>
>
> On 12/29/11 9:48 PM, "Carter Bullard" <carter at qosient.com> wrote:
>
>> Hey David,
>> Sorry for the delayed response. Can you remember what it was complaining
>> about ? If you had done a "make install" argus would have gone into
>> /usr/local/sbin, which you would need to add to your path.
>>
>> Carter
>>
>> On Dec 21, 2011, at 11:24 PM, David Edelman <dedelman at iname.com> wrote:
>>
>>> On my version of Lion: Darwin XXXX-MacBook-Pro.local 11.2.0 Darwin
>>> Kernel
>>> Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011;
>>> root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
>>>
>>> It took a few minutes to figure it out but I just needed to create an
>>> empty /opt/local and then
>>> create a soft link ln -s /usr/local/lib /opt/local/lib. This made the
>>> builds work
>>>
>>> I also copied bin/argus to someplace in the path
>>>
>>> everything seems to work (at least to the extent that I have been able
>>> to
>>> test it.c
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4367 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20120101/f26378d1/attachment.bin>
More information about the argus
mailing list