By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

ODB/ODBC.pm for Apple

P: 12
Hi I have written a number of perl scripts that access data in an Windows built Access data base. I now need to run the perl scripts from an Apple. When I run get the error that ODB/ODBC.pm was not found. How do I go about installing the apropriate modules on the mac? I have used ppm from the command line to load modules on my windows machines what is the proceedure with apple?


Thanks for your help

Alan
Sep 19 '08 #1
Share this Question
Share on Google+
8 Replies


KevinADC
Expert 2.5K+
P: 4,059
If you are using activeperl on your Mac, open the activestate/activeperl folder and read the instructions for installing modules that should be in the documentation. I would assume its PPM also for a Mac using activeperl but I'm not sure.
Sep 19 '08 #2

P: 12
Thanks Kevin - I am not sure which version of Perl comes installed on OSX? How could I tell and will it cause problems if I install Active as well? I was not even aware that Active Perl was available on the mac! I see that it also uses ppm so that will probably be the ticket!

Thanks for the help!


Alan
Sep 19 '08 #3

KevinADC
Expert 2.5K+
P: 4,059
Thanks Kevin - I am not sure which version of Perl comes installed on OSX? How could I tell and will it cause problems if I install Active as well? I was not even aware that Active Perl was available on the mac! I see that it also uses ppm so that will probably be the ticket!

Thanks for the help!


Alan
from the command line:

perl -v

that should hopefully tell you what version of perl you have installed. As far as I know OSX does not come with perl by default, so you or someone must have installed it. You could browse the files on your MAC and locate the perl installation and maybe detemine if it is activeperl or some other perl distribution. If there is a mac version of perl besides activeperl I don't know of it.
Sep 19 '08 #4

P: 12
Will do!

Thanks

Alan
Sep 19 '08 #5

P: 12
Hi Kevin

Perl -v results in version 5.8.8 returning. We did not install Perl and in fact got a new mac today and it had perl on it as well 5.8.8. I downloaded Active Perl version 5.10 and instaled. Perl -v still returns 5.8.8 (after a restart as well). Anyone know how to uninstall perl on a mac so that I van get Active Perl going? ? It does not appear in the applications folder?

Cheers

Alan
Sep 19 '08 #6

KevinADC
Expert 2.5K+
P: 4,059
Hi Kevin

Perl -v results in version 5.8.8 returning. We did not install Perl and in fact got a new mac today and it had perl on it as well 5.8.8. I downloaded Active Perl version 5.10 and instaled. Perl -v still returns 5.8.8 (after a restart as well). Anyone know how to uninstall perl on a mac so that I van get Active Perl going? ? It does not appear in the applications folder?

Cheers

Alan
I was unaware that Macs came with perl. I have no experience with Macs so I recommend you ask on a Mac forum how to uninstall perl.
Sep 19 '08 #7

P: 12
Hi Kevin

I have precious little experience on them as well! I will look for a mac forum.

Thanks again

Alan
Sep 19 '08 #8

numberwhun
Expert Mod 2.5K+
P: 3,503
I had OSX 10.4 installed on my Dell laptop for a while. I liked it a lot, but could never get the video or wireless working with the proper drivers.

That aside, OSX is a *nix based OS with the Mac Windowing system on top of it. It is absolutely sweet as it incorporates a really nice desktop system with the power of Unix. Also, yes, it came with Perl

Due to the *nix nature, I was able to go to www.perl.org and download the source version of Perl, compile and installed it and it ran just fine. I set up the standard CPAN interface and installed modules with ease.

I would personally not recommend Active Perl, but that is just me. I hate their lack of support for all modules.

If you installed Active Perl and when you do Perl -v and it still returns 5.8.8, then the original installation that came with your OS is still active on the system. Try doing a "which perl" on the command line in the Terminal and see what it returns. You may find that it returns something like "/usr/bin/perl" and possibly others. If it does, use the full path to each and find out which are for 5.8.8 and which are for 5.10. If that is the case, the you can simply delete the 5.8.8 binaries and create sym links to the version you installed.

Regards,

Jeff
Sep 20 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.