Results 1 to 4 of 4
  1. #1


    Member Since
    Sep 18, 2009
    Posts
    1
    Perl Script Problems
    I am having some problems about the same and i don't know what else to do, i have a script that was running just fine, but after i upgraded perl from 5.8.6 to 5.10.0 y i'm getting this error:

    Can't locate package Exporter for @Net::IPAddress::ISA at ./Perl-1.pl line 4

    Net::IPAddress is installed on /Library/Perl/5.10.0/Net/

    any thoughts?

    thanks

    Mario

  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Is this under Snow Leopard? If so, check out this Daringfireball article. In it he mentions that you need to tell the system, via a variable, if you want 5.10 to run as 32-bit or 64-bit because in Snow Leopard the default is 64-bit, which that Net stuff may not be compatible with.

    If not Snow Leopard, then I'm at a loss at this time.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

  3. #3

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,788
    Specs:
    Early 2015 13" rMBP
    If you are running Snow Leopard, it could very well be linked to the fact that Perl is now executed as a 64-bit application as alluded to by xstep. It has caused me problems with Python and wxPython as wxPython only works with 32-bit Python ATM.

    As per the man page, execute the following to force Perl to execute as a 32-bit binary:
    Code:
    defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes
    Give that a try to see if it fixes your problem. This solution though is only applicable to Snow Leopard.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  4. #4


    Member Since
    Jan 18, 2010
    Posts
    1
    Quote Originally Posted by vansmith View Post
    If you are running Snow Leopard, it could very well be linked to the fact that Perl is now executed as a 64-bit application as alluded to by xstep. It has caused me problems with Python and wxPython as wxPython only works with 32-bit Python ATM.

    As per the man page, execute the following to force Perl to execute as a 32-bit binary:
    Code:
    defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes
    Give that a try to see if it fixes your problem. This solution though is only applicable to Snow Leopard.
    I guessed that there had to be a clever workaround for this that didn't involve re-compiling or bizarre third-party sources of mySQL or DBD::mysql. And you found it. I registered just to say thanks for posting this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calling Perl Script From AppleScript
    By ramya_lw in forum OS X - Development and Darwin
    Replies: 6
    Last Post: 12-14-2011, 01:22 PM
  2. Need help running perl script on Mac OS X
    By BGTHEMOGUL in forum OS X - Operating System
    Replies: 6
    Last Post: 11-13-2010, 01:29 AM
  3. Perl script
    By Vanya98 in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 04-07-2010, 07:25 PM
  4. Perl script error
    By icue in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 09-09-2009, 02:39 AM
  5. Can't properly save and use script (Perl) files
    By mscoxoh in forum OS X - Operating System
    Replies: 0
    Last Post: 05-09-2008, 02:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •