CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
How to set class path for perl if we have both Active and strawberry perl

 



Pardhu316
New User

Nov 1, 2013, 9:25 AM

Post #1 of 5 (662 views)
How to set class path for perl if we have both Active and strawberry perl Can't Post

I have two windows perl vesions installed in my system.
1)Active perl
2)strawberry perl
my class path was set to strawberry perl
But i want to use Active perl since it have DBD:Oracle in it
i tried to set path for Active perl. But its searching for DBD:Oracle in strawberry perl only.
can some one suggest me how make my perl to search in Active perl
PS: i did not remove classpath of strawberry perl.


FishMonger
Veteran / Moderator

Nov 1, 2013, 10:19 AM

Post #2 of 5 (660 views)
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl [In reply to] Can't Post

Are you saying that you're executing the Strawberry perl binary and want to use modules installed under the Activestate perl binary?


FishMonger
Veteran / Moderator

Nov 1, 2013, 10:28 AM

Post #3 of 5 (659 views)
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl [In reply to] Can't Post

Why don't you install DBD:Oracle under Strawberry as well?

Loading pure perl modules is fine, but modules requiring XS code can/will be problematic.

You could start by adding a 'use lib' statement to add the path(s) to @INC, then load the module(s) from the Activestate libs.


Pardhu316
New User

Nov 1, 2013, 3:32 PM

Post #4 of 5 (652 views)
Re: [FishMonger] How to set class path for perl if we have both Active and strawberry perl [In reply to] Can't Post

"You could start by adding a 'use lib' statement to add the path(s) to @INC, then load the module(s) from the Activestate libs".

Can u plz elaborate a little more the above statement.... For clarity I will post the code I am using


FishMonger
Veteran / Moderator

Nov 1, 2013, 5:51 PM

Post #5 of 5 (644 views)
Re: [Pardhu316] How to set class path for perl if we have both Active and strawberry perl [In reply to] Can't Post

Please post your code and the full system path to the DBD::Oracle module that you want to use.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives