Koozali.org: home of the SME Server

Net::LDAP how to install

guest22

Net::LDAP how to install
« on: September 30, 2007, 01:34:12 PM »
Hi,

I need to install Net::LDAP but the when I am trying to use CPAN on the command line, no mirrors are found.

Does anybody know the manual way of installing Net::LDAP please? Detailed instructions are much appreciated!

Thanks,
guest

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Net::LDAP how to install
« Reply #1 on: September 30, 2007, 04:20:07 PM »
Hi HF
I have installed net::LDAP without problem with CPAN.

cpan> install Net::LDAP

If you want to add a mirror, edit the file /usr/lib/perl5/5.8.5/CPAN/Config.pm and add under urllist.
I you want to regenerate the cpan config file again, delete the same file, and you have prompted to reconfigure again.
I have use the mirror ftp://mirrors.localhost.net.ar/pub/mirrors/CPAN
Net::LDAP package can be found at ftp://mirrors.localhost.net.ar/pub/mirrors/CPAN/authors/Graham_Barr/perl-ldap-0.34.tar.gz
and the readme file ftp://mirrors.localhost.net.ar/pub/mirrors/CPAN/authors/Graham_Barr/perl-ldap-0.34.readme
In the readme file there are instructions about compile and install.

The page about package can be found at http://search.cpan.org/~gbarr/perl-ldap-0.34/lib/Net/LDAP.pod

guest22

Re: Net::LDAP how to install
« Reply #2 on: September 30, 2007, 04:45:32 PM »
Thanks,

for what it worth, the default (Stock 7.2 with latest updates to date) Config.pm points to:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/

Which doesn't appear to be a valid URL.

Shifting into manual mode as per your instructions. Thanks.

guest

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Net::LDAP how to install
« Reply #3 on: September 30, 2007, 06:11:25 PM »
MIRRORED.BY because cpan is not properly configurated. Remove Config.pm file, and run cpan again. When you prompted for configuration, hit enter to all prompts. Then, when you have a choice to select a mirror, select near you. Then, you have a choice to enter more than one mirror.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Net::LDAP how to install
« Reply #4 on: October 01, 2007, 12:07:48 AM »
I need to install Net::LDAP but the when I am trying to use CPAN on the command line, no mirrors are found.

You are strongly advised not to use CPAN on the command line, but instead to only ever install software packaged as rpms.

In any case, Net::LDAP is already installed, via the perl-LDAP rpm.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Net::LDAP how to install
« Reply #5 on: October 04, 2007, 12:35:17 AM »
You are strongly advised not to use CPAN on the command line, but instead to only ever install software packaged as rpms.

In any case, Net::LDAP is already installed, via the perl-LDAP rpm.


Charly, can you tell me where saying in the wiki or forums or bugzilla about not to use cpan?
Maybe I am a silly or stupid boy, because I can't found this rule about cpan.
« Last Edit: October 04, 2007, 12:37:57 AM by Normando »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Net::LDAP how to install
« Reply #6 on: October 04, 2007, 01:13:26 AM »
Charly, can you tell me where saying in the wiki or forums or bugzilla about not to use cpan?
Maybe I am a silly or stupid boy, because I can't found this rule about cpan.

I don't claim that it appears anywhere in the places you reference. It's just something I strongly advise you about - and I think it would be a good thing for someone to add to the documentation.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Net::LDAP how to install
« Reply #7 on: October 04, 2007, 05:10:36 AM »
I don't claim that it appears anywhere in the places you reference.
Then why you decrease my "Advice given"? And why I can't do the same?

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Net::LDAP how to install
« Reply #8 on: October 04, 2007, 09:28:47 AM »
maybe open a bug in the documentation for how/when/why to make a perl-foo rpm
possibly unnecessary
http://dag.wieers.com/rpm/packages/ has hundreds of perl-rpms

-+-+-

the developers have always said software should be installed from RPM

from bugzilla

>I agree. Binary packages should be upgraded via RPM
>(possibly via yum on top of that), not via PEAR/CPAN/whatever.

>I've resolving this invalid, since you are not reporting bugs in SME server
>software (you are no longer running SME server software, but some combination
>of SME server software, and perl modules installed via the CPAN shell).

-+-+-

don't worry about the bad advice
It's an honour to be corrected by Charlie  ;-)

« Last Edit: October 04, 2007, 09:57:02 AM by snoble »

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Net::LDAP how to install
« Reply #9 on: October 08, 2007, 04:45:09 PM »
Thanks Snoble to try to make me feel better, but I am not in agreement with the negative vote towards my, or of Charly or God. It is unjust, since in no place something referring is mentioned not to use cpan.
When I gave the answer, in the first place it tries to look for rpm Perl-Net-LDAP and I did not find it, nonwise that it was Perl-LDAP, and for that reason I gave the answer on cpan.

I am very angered and frustrated with the treatment that I am receiving lately on the part of some members of contribs.

Anyway, thank you very much Snoble, you are a good man.

Offline okepc

  • ***
  • 118
  • +0/-0
    • http://www.okepc.nl
Re: Net::LDAP how to install
« Reply #10 on: October 08, 2007, 04:56:33 PM »
I strongly ADVICE to ditch the "advice system"

my 2 cents

regards

Dirk

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Net::LDAP how to install
« Reply #11 on: October 08, 2007, 05:53:21 PM »
I strongly ADVICE to ditch the "advice system"

my 2 cents

regards

Dirk
And I advice you not to yell and *motivate* why you think so in bug 3389. Perhaps reading the comments there might enlighten you as well :-)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Net::LDAP how to install
« Reply #12 on: October 08, 2007, 08:32:58 PM »
It is unjust, since in no place something referring is mentioned not to use cpan.

Please do not take any rating personally. I gave my (personal) opinion about a single piece of advice. I considered it bad. I don't consider you bad, or the advice that you generally give as being bad.

Here's an example of the type of trouble you can get into if you install software other than via RPMs:

http://bugs.contribs.org/show_bug.cgi?id=3442