RSS

Category Archives: darwinports

>Log colorizing

>Do you ever look at log files? A lot? Then, like me, your brains could use a little help to easen the interpretation of all the letters and digits that are scrolling by. This is where a log colorizer helps.

I was looking for a log colorizer tool, but found it hard to find one using Google, until I found this article: Log colorizing on a Dreamhost account. Although it’s written for Dreamhost (a US service provider), the article seemed sufficiently generic for use on other *NIX systems (like my Apple).

Note: the PCRE version mentioned in the article is outdated. Just go the the tools’ website to check out which version is now the current stable release.

Summarized: All you need is 2 akwardly named tools:

  • PCRE – ‘Perl Compatible Regular Expressions’
  • CCZE – a C port of RASZi’s colorize.

I thought I might be lucky and tried DarwinPorts to see if that would support CCZE, but it doesn’t:

~$ sudo port install ccze
Password:
Error: Port ccze not found

For me, PCRE installed like a breeze. But CCZE failed to build:

make -C src all
cc -c -I. -I. -I.. -DPATCHLEVEL=\"1\" -DSYSCONFDIR=\"/Users/ernst/usr//etc\" -D_GNU_SOURCE=1 -DPKGLIBDIR=\"/Users/ernst/usr//lib/ccze\" -DHAVE_SYSTEM_H=1 -DBUILTIN=1 -Wshadow -Wpointer-arith -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wbad-function-cast -Wsign-compare -Wchar-subscripts -Wcomment -Wformat -Wformat-nonliteral -Wformat-security -Wimplicit -Wmain -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wmulticharacter -Wmissing-noreturn -Wmissing-declarations -g -O2 -I/Users/ernst/usr//include ccze.c
cc1: error: unrecognized command line option "-Wmulticharacter"
make[1]: *** [ccze.o] Error 1
make: *** [all-recursive] Error 2

Here’s my CC version:

$ cc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

When I resolved the issue by removing the flag from src/Makefile, I got another error:

i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared'
/usr/bin/ld: Undefined symbols:
_main
_ccze_addstr
_ccze_space
collect2: ld returned 1 exit status
make[1]: *** [apm.so] Error 1
make: *** [all-recursive] Error 2

At that point, I gave up on CCZE.

Advertisements
 
1 Comment

Posted by on 20 March 2007 in ccze, colorize, darwinports, log, log colorizer, logs, pcre

 

>Adobe Photoshop CS2 installation

>I need an image edit program. On Linux I used GIMP, which is quite powerful and nice to work with. On Mac OS X, however, GIMP is not so easy to install and does not integrate with the Mac OS very well. I used DarwinPorts, which automates the fetching, compilation and installation and even the dependency handling.
The fact that GIMP is not integrated with the Mac made me look at alternatives. I could not find a lot of image editing programs for the Mac, which surprises me. It’s probably my lack of search abilities.
Anyway, the obvious alternative is Adobe Photoshop. The current version is CS2, 9.0. At almost 400 MB, the download is fairly big. One of the first things it asked me is whether it’s OK to look for updates. I said OK. I didn’t expect any, since I just downloaded it and I would expect all the download to contain all current updates. However, it still proposed installing about a dozen updates.
That’s OK as well. But then during the update installation process, I was asked for my password about 6 times. That’s just plain annoying.
Any tips on alternative image edit programs for the Apple, let me know.