New to Perl-LDAP


 
Thread Tools Search this Thread
Operating Systems Solaris New to Perl-LDAP
# 1  
Old 11-09-2005
New to Perl-LDAP

Hi all
I am new to perl-ldap. Trying to install DBD module on sun solaris which has the iplanet51 ldap already installed.

I have got the DBD-LDAP-0.03.tar file , and un packed it.
From the dir DBD-LDAP-0.03 - i tried to do
$ perl Makefile.PL and i got the bellow error
" Can't locate DBI.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /us. BEGIN failed--compilation aborted at Makefile.PL line 1. "

what could be the problem. I am not sure how to proceed. please help me.

thanks
kaushi
# 2  
Old 11-09-2005
Install the DBI module first. All DBD::* modules use DBI as the interface module.

Go to http://search.cpan.org/~timb/DBI-1.48/, download DBI, and install it first.
# 3  
Old 11-10-2005
cbkihong

thanks. I will try install all these.

thanks again
# 4  
Old 11-10-2005
Cbkihong
I downloaded the file DBI-1.48.tar.gz
I tried to unpack by " gzip -cd DBI-1.48.tar.gz | tar xf - " , but it gives me "tar: directory checksum error"

I am just stuck at this point. Help me. And how do i know before i install this i have all required perl modules installed on my machine.
Do i need to have any compiler ?\


thanks
kaushi
# 5  
Old 11-10-2005
Not sure about the tar problem.

Usually you won't know what modules are depended on by another, until you actually install it. Documentation may or may not tell. Hopefully during installation it will complain for missing modules (otherwise, you can always open the .pm module files in a module and look for the "use" lines for hints on dependencies)

You will need a compiler to install modules which have some C bindings. I think DBI needs compilation. But you may need it for installing other modules anyway.
# 6  
Old 11-10-2005
hi,
I got the problem. I was FTPing the file- DBI-1.48.tar.gz from windows to unix in ascii formate. I changed it to bin ( binary ) it is not giving me the tar error.
thanks for you help. I will now try to install it.


thanks
kaushi
# 7  
Old 11-10-2005
Hi cbkihong,
I have a new problem now. I am sorry i am annoying.
When i tried the makefile i get the below error. It does't match with the perl version installed on my machine.
$ perl Makefile.PL
Perl 5.006 required--this is only version 5.00503, stopped at Makefile.PL line
BEGIN failed--compilation aborted at Makefile.PL line 12.
$ perl -v
This is perl, version 5.005_03 built for sun4-solaris

Now how do i upgrade my perl version? or is there any other DBI module which is available for version 5.005_03


thanks alot for all of you
Kaushi
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies

2. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

3. Programming

Perl and LDAP

Hi Perl Guys I am in need of your knowledge as i am a complete newbie and perl I need to do pull all the groups from LDAP , and then look at the GID's and if they are not set check for the next available ( i,e increment ) and apply it I have done this so far that prints out all the... (1 Reply)
Discussion started by: ab52
1 Replies

4. Shell Programming and Scripting

perl - return an object from subroutine - Net::LDAP

Hi all, I'm not even sure a person can do this in perl, seems like you should be able to though. Here's the error IO::Socket::INET: connect: Operation now in progress at server_search.pl line 256, <DATA> line 466. Here's the perl code... sub ldap_new{ $nl = Net::LDAP->new( "$_" ) or... (3 Replies)
Discussion started by: jtollefson
3 Replies

5. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

6. OS X (Apple)

Apple Perl and LDAP

We have come across some strange and rather annoying behaviour of Apple's implementation of Perl and LDAP. I am part of a small scientific software company that provides specialist software for life sciences. Our internal network is driven by linux servers, but we also have a number of intel... (1 Reply)
Discussion started by: superstructure
1 Replies

7. Shell Programming and Scripting

Perl and Net::LDAP, objects and arrays query

Hi I'm not a programmer but am muddling through as best I can. I am trying to set up a PostSearchHook for Radiator (RADIUS server), that carries out an LDAP lookup, and, based on the string returned ("staff" or "student") in the "businessCategory" attribute, will set the $role to be either 40... (3 Replies)
Discussion started by: mikie
3 Replies

8. Solaris

help with LDAP

Hi, i'm trying to import LDAP database to a new system and i need help with that. I've got a LDAP schema and a ldif file with all data, so how should i proceed with creating new schema and how to import data. tnx in advance :) (5 Replies)
Discussion started by: n00b
5 Replies

9. UNIX for Dummies Questions & Answers

LDAP help

Folks; I need to install/configure LDAP on Solaris 10 Help please (0 Replies)
Discussion started by: Katkota
0 Replies

10. UNIX for Advanced & Expert Users

ldap

I have just installed openldap on solaris 8 machine and would like to configure ldap to store users username and password, so that users can get authenticate by ldap. How do I configure ldap to store username and password. Any suggestion would be appreciated Thanks in Advance (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question