ODB/ODBC.pm for Apple

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Bak
    New Member
    • Dec 2006
    • 12

    ODB/ODBC.pm for Apple

    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
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    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.

    Comment

    • Alan Bak
      New Member
      • Dec 2006
      • 12

      #3
      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

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        Originally posted by Alan Bak
        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.

        Comment

        • Alan Bak
          New Member
          • Dec 2006
          • 12

          #5
          Will do!

          Thanks

          Alan

          Comment

          • Alan Bak
            New Member
            • Dec 2006
            • 12

            #6
            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

            Comment

            • KevinADC
              Recognized Expert Specialist
              • Jan 2007
              • 4092

              #7
              Originally posted by Alan Bak
              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.

              Comment

              • Alan Bak
                New Member
                • Dec 2006
                • 12

                #8
                Hi Kevin

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

                Thanks again

                Alan

                Comment

                • numberwhun
                  Recognized Expert Moderator Specialist
                  • May 2007
                  • 3467

                  #9
                  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

                  Comment

                  Working...