Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: jfritz on March 13, 2009, 12:00:14 PM
-
Hello to everybody!
I am currently testing SME Server 8.0beta3 for later productional use. For installing my preferred backup solution (dirvish) some perl modules were needed:
Getopt::Long
Time::ParseDate
Time::Period
Unfortunately I installed these modules via CPAN and not via yum:
# perl -MCPAN -e shell
cpan> install Getopt::Long Time::ParseDate Time::Period
Now my perl installation is partially broken, e.g. the daily cronjob output:
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.8.8/Scalar/Util.pm line 30.
I want to set the perl installation back to default configuration (SME configuration) again, but I'm not very familiar to yum at all. This is my first Centos/RedHat based system and I'm usually working on Debian based systems.
Thanks for your help in advance!
Best regards, jfritz
-
Welcome to the forums.
CPAN is basically a wrapper around manual installation. Given that this is just a test copy, perhaps a reinstall would be the quickest solution?
-
Thanks for your reply!
Considering the time I've already spent on this, you are absolutely right. But from my point of view this is a test install, which enables me to do testing and collecting knowledge on Centos/RedHat tools. This time: how to reset a package to default via yum. :smile:
-
But from my point of view this is a test install, which enables me to do testing and collecting knowledge on Centos/RedHat tools.
So you've learnt a valuable lesson - don't install software which isn't rpm packaged.
yum and rpm are unable to remove software which they know nothing about. There's no simple way to fix your problem.
Please read the FAQ - I expect it warns you there against installing using the CPAN shell.
-
So you've learnt a valuable lesson - don't install software which isn't rpm packaged.
yum and rpm are unable to remove software which they know nothing about. There's no simple way to fix your problem.
Please read the FAQ - I expect it warns you there against installing using the CPAN shell.
Well, thanks again. Now I know about the possible troubles of using CPAN. Isn't there any similar call like Debian's "apt-get --purge remove $package" to remove a package and its entire configuration?
-
Well, thanks again. Now I know about the possible troubles of using CPAN. Isn't there any similar call like Debian's "apt-get --purge remove $package" to remove a package and its entire configuration?
Sure, but you want to remove stuff which is not part of a package.
You can do:
rpm -e --nodeps perl
but then you will break a lot of things. Moreover, you won't remove everything you installed via the CPAN shell.
Stop wasting time and just do a fresh install. :-)
-
Finally I reinstalled. Thanks for your advice!
-
I am currently testing SME Server 8.0beta3 for later productional use.
You are adviced not to do so as this is still beta and may contain (lots of) bugs. Defer your testing at least to the release candidate stage.
For installing my preferred backup solution (dirvish) some perl modules were needed:
Getopt::Long
Time::ParseDate
Time::Period
You can install those packages from one of the repositories I guess. I guess they might be in Dagor some other major repo. You can find out by doing a search on http://rpm.pbone.net. At least perl-Getopt-long is in Dag. The configuration for some major repositories are in the wiki: http://wiki.contribs.org/Category:Yum_Repository
-
You are adviced not to do so as this is still beta and may contain (lots of) bugs. Defer your testing at least to the release candidate stage.
I disagree. If someone wishes later to use SME8 in production they should test it now. The more and earlier SME8 is tested, the better it is likely to be.
-
I guess they might be in Dag or some other major repo. You can find out by doing a search on http://rpm.pbone.net.
Easier is to enable the Dag repo, then do:
yum install 'perl(Getopt::Long)' 'perl(Time::ParseDate)' 'perl(Time::Period)'
-
Moving thread to General Discussion as it is more appropriate there.
-
After updating my previous test installation to Centos 5.3 (http://forums.contribs.org/index.php/topic,43721.0.html) (including some updated perl*.rpms) my Perl/CPAN-mess finally disappeared. No more errors, now all scripts are working fine again.