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.
Well, now create a file called dag.repo in /etc/yum.repos.d/ just like below
[root@yoebuntu yum.repos.d]# cat dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
[root@yoebuntu yum.repos.d]#
and then
[root@yoebuntu yum.repos.d]# yum install rrdtool
reference
Tuesday, January 15, 2008
Installing rrdtool using yum
Posted by yoe at 1/15/2008 10:15:00 AM 30 comments
Labels: linux, monitoring
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!
To search for module while in the shell:
cpan> i /HiRes/
Or if you know the exact name of the modules, can install it straight away:
[root@svr rrdtool]# perl -MCPAN -e install 'Time::HiRes'
To check the installed modules:
[root@svr4 nagios]# perl -e 'use Time::HiRes;'
Can't locate Time/HiRes.pm in @INC -- meaning the modules is not(yet) installed
For manual installation:
Go search for the module at here, then:
[root@svr rrdtool]wget http://search.cpan.org/CPAN/authors/id/J/JH/JHI/Time-HiRes-1.9711.tar.gz
[root@svr rrdtool] tar -zxvf Time-HiRes-1.9711.tar.gz
[root@svr rrdtool] cd Time-HiRes-1.9711
[root@svr Time-HiRes-1.9711] perl Makefile.PL
[root@svr Time-HiRes-1.9711] make
[root@svr Time-HiRes-1.9711] make test
[root@svr Time-HiRes-1.9711] make install
Back to the error, google brought me to perl monks website
"RH9 caused more than a few problems for me with a number of modules until I edited my /etc/sysconfig/i18n file. Here's mine:
#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.
Posted by yoe at 1/09/2008 01:31:00 PM 0 comments
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.
I know i need to change, but in what area? A few weeks back, with the career-related issues, I somehow realize that I already changed. I'm too much focused on the outside, but unaware that the inside of me almost dried out. Yes, I'm off balanced, I'm lack of spiritual filling. My soul is hunger for knowledge.
I remembered that the most harmonious time in my life will be when I am 17 years old. Back then, commonly both my mind and my soul would be fed, resulting in "ketenangan jiwa and kemanisan iman". That's the catch I'm hoping for this year. Balance out the need for life without forgetting the after-life. First thing first, get rid of black dots in my heart. Then feed it with knowledge regularly. Perkenankanlah permintaan hambaMu ini ya Allah.
"Ya Tuhan kami, janganlah Engkau pesongkan hati kami, sesudah Engkau memberi petunjuk kepada kami, dan kurniakan kepada kami limpah rahmat dari sisiMu, sesungguhnya Engkaulah Tuhan yang melimpah-limpah pemberiannya. Amin."
Posted by yoe at 1/08/2008 10:40:00 AM 0 comments
Labels: Life