Tuesday, January 15, 2008

Installing rrdtool using yum

Between apt-get, up2date, yum or smart and a few more, which one is the best?. Actually I dont have favorite package manager. I just use whatever the server already has on board. If on Ubuntu, apt-get is more than enough. Right now I'm working on Centos 5 that need rrdtool package. By default, the yum repository configuration on Centos 5 does not have rrdtool in it. Thanks to dag wieers for his remarkable effort. Although he had some issue with yum developers previously. Nothing much I can help over there, so back to work.

more...

Wednesday, January 9, 2008

Note to self: Perl Module Installation using CPAN

First approach:
[root@svr rrdtool]# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Time::HiRes
CPAN: Storable loaded ok

Makefile:91: *** missing separator
then set the environment variable LC_ALL to "C" and retry
from scratch (re-run perl "Makefile.PL").
(And consider upgrading your Perl.)
(You got this message because you seem to have
an UTF-8 locale active in your shell environment, this used
to cause broken Makefiles to be created from Makefile.PLs.)
Makefile:91: *** missing separator. Stop.
Deng!

#LANG="en_US.UTF-8"
LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"

SYSFONT="latarcyrheb-sun16"


It looks like some modules (like CPAN!) don't like that UTF-8. If you don't want to monkey with your system-wide locale setting, just type "export LANG=en_US" and then try your install again."

So i did just that.
Test the module again:

[root@svr4 Time-HiRes-1.9711]# perl -e 'use Time::HiRes;'
[root@svr4 Time-HiRes-1.9711]#

No error means the modules is there.

more...

Tuesday, January 8, 2008

Half the man I used to be

Do you know that this year all muslim will be celebrating 2 Awal Muharram(Islamic New Year)? Yes, the first one will be on January 10th and the second one fall on December 29th. When talking about new year, everybody will start asking others on new year's resolution(if any). For me, every year(modern or islamic) I have set my new year's resolution, and it is often influenced from what had happened in the year before that.

more...