Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    3

    Default Problem manually installing Perl module

    I am attempting to install the Net::OSCAR module from CPAN. Whether I install it from the cpan utility or whether I run the Build.PL script manually, I get basically the same error:

    Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/perl-5.8.8/lib/5.8.8/i686-linux /usr/local/perl-5.8.8/lib/5.8.8 /usr/local/perl-5.8.8/lib/site_perl/5.8.8/i686-linux /usr/local/perl-5.8.8/lib/site_perl/5.8.8 /usr/local/perl-5.8.8/lib/site_perl .) at Build.PL line 3.

    I ran "install Module::Build" multiple times without any problems and it appears to be installed correctly. From my understanding, @INC is like Perl's path variable... but I'm not sure where the modules are stored by default so I can't check to make sure that Module/Build.pm is actually there.

    Is there a permissions-related issue? Has anyone had any trouble with something like this before?

  2. #2
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    If indeed Module::Build was installed you should find it in /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build.pm

    I just ran these two commands in SSH and they worked fine.
    First ran this:
    Code:
    perl -MCPAN -e 'install Module::Build';
    Then ran:
    Code:
    perl -MCPAN -e 'install Net::OSCAR';
    Both completed install without any errors.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  3. #3
    Junior Member
    Join Date
    Jun 2008
    Posts
    3

    Default

    I tried to follow your actions above... after running the install for Module::Build, it seemed to be OK. No obvious errors and the last lines of output were:
    Code:
    Writing /perl5lib/lib/site_perl/5.8.8/i686-linux/auto/Module/Build/.packlist
      /usr/bin/make install  -- OK
    Now, when I executed the second one to install Net::OSCAR, it gave the following output:

    Code:
    [hoganstech][~]$ perl -MCPAN -e 'install Net::OSCAR';
    CPAN: Storable loaded ok
    Going to read /home/hoganstech/.cpan/Metadata
      Database was generated on Thu, 26 Jun 2008 13:02:56 GMT
    Running install for module Net::OSCAR
    Running make for M/MA/MATTHEWG/Net-OSCAR-1.925.tar.gz
    CPAN: Digest::SHA loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /home/hoganstech/.cpan/sources/authors/id/M/MA/MATTHEWG/Net-OSCAR-1.925.tar.gz ok
    Scanning cache /home/hoganstech/.cpan/build for sizes
    Net-OSCAR-1.925/
    Net-OSCAR-1.925/lib/
    Net-OSCAR-1.925/lib/Net/
    Net-OSCAR-1.925/lib/Net/OSCAR/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/end_buddylist_modifications.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_3_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_add.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_modification_acknowledgement.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_error.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/start_buddylist_modifications.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_modify.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/19/buddylist_delete.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/rate_change.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/self_information.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/rate_info_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/server_ready.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/pause.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/migrate.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/incoming_warning.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/unpause.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/incoming_extended_information.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/1/service_redirect_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/16/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/16/buddy_icon_uploaded.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/16/buddy_icon_downloaded.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/14/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/14/chat_room_status.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/14/chat_buddy_departure.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/14/incoming_chat_IM.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/14/chat_buddy_arrival.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/7/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/7/confirm_account_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/7/admin_request_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/23/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/23/authentication_key.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/23/authorization_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/9/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/9/BOS_rights_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/4/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/4/IM_acknowledgement.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/4/typing_notification.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/4/chat_invitation_decline.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/4/incoming_IM.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/INDEX
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/3/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/3/buddy_signoff.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/3/buddy_rights_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/3/buddy_status_update.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/21/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/21/ICQ_meta_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/13/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/13/chat_navigator_response.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/2/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/2/incoming_profile.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/0/
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks/0/error.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Constants.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/0/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/0/BOS_signon.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/23/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/23/signon.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/23/initial_signon_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/9/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/9/BOS_rights_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/4/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/4/outgoing_IM.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/4/IM_parameter_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/4/add_IM_parameters.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/19/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/19/buddylist_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/19/buddylist_rights_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/set_service_versions.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/set_extended_status.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/set_tool_versions.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/rate_info_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/rate_acknowledgement.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/1/personal_info_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/3/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/3/buddy_rights_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/2/
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/2/locate_rights_request.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks/2/get_away.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Screenname.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/XML/
    Net-OSCAR-1.925/lib/Net/OSCAR/XML/Template.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/XML/Protocol.dtd
    Net-OSCAR-1.925/lib/Net/OSCAR/XML/Protocol.parsed-xml
    Net-OSCAR-1.925/lib/Net/OSCAR/XML/Protocol.xml
    Net-OSCAR-1.925/lib/Net/OSCAR/Connection.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/ServerCallbacks.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Connection/
    Net-OSCAR-1.925/lib/Net/OSCAR/Connection/Direct.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Connection/Server.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Connection/Chat.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/MethodInfo.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Common.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/_BLInternal.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Buddylist.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/XML.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/TLV.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Proxy.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Callbacks.pm
    Net-OSCAR-1.925/lib/Net/OSCAR/Utility.pm
    Net-OSCAR-1.925/lib/Net/OSCAR.pm
    Net-OSCAR-1.925/PROTOCOL
    Net-OSCAR-1.925/t/
    Net-OSCAR-1.925/t/41_xml_cornercases.t
    Net-OSCAR-1.925/t/03_callbacks.t
    Net-OSCAR-1.925/t/30_xml_parse.t
    Net-OSCAR-1.925/t/05_load_extras.t
    Net-OSCAR-1.925/t/01_basic.t
    Net-OSCAR-1.925/t/04_server_callbacks.t
    Net-OSCAR-1.925/t/40_xml_process.t
    Net-OSCAR-1.925/t/02_connections.t
    Net-OSCAR-1.925/t/test.xml
    Net-OSCAR-1.925/MANIFEST
    Net-OSCAR-1.925/TODO
    Net-OSCAR-1.925/HACKING
    Net-OSCAR-1.925/oscarserv
    Net-OSCAR-1.925/Build.PL
    Net-OSCAR-1.925/xmlcache
    Net-OSCAR-1.925/META.yml
    Net-OSCAR-1.925/OSCAR/
    Net-OSCAR-1.925/OSCAR/XML/
    Net-OSCAR-1.925/OSCAR/XML/Protocol.parsed-xml
    Net-OSCAR-1.925/snacsnatcher
    Net-OSCAR-1.925/oscartest
    Net-OSCAR-1.925/SIGNATURE
    Removing previously used /home/hoganstech/.cpan/build/Net-OSCAR-1.925
    
      CPAN.pm: Going to build M/MA/MATTHEWG/Net-OSCAR-1.925.tar.gz
    
    Can't locate Module/Build.pm in @INC (@INC contains: /usr/local/perl-5.8.8/lib/5.8.8/i686-linux /usr/local/perl-5.8.8/lib/5.8.8 /usr/local/perl-5.8.8/lib/site_perl/5.8.8/i686-linux /usr/local/perl-5.8.8/lib/site_perl/5.8.8 /usr/local/perl-5.8.8/lib/site_perl .) at Build.PL line 3.
    BEGIN failed--compilation aborted at Build.PL line 3.
    Warning: No success on command[/usr/local/perl-5.8.8/bin/perl Build.PL ]
    Running Build test
      Warning: CPAN.pm discovered Module::Build as undeclared prerequisite.
      Adding it now as such.
    ---- Unsatisfied dependencies detected during [M/MA/MATTHEWG/Net-OSCAR-1.925.tar.gz] -----
        Module::Build
    Shall I follow them and prepend them to the queue
    of modules we are processing right now? [yes]
    Now, I've installed other modules from CPAN with mixed success. Some installed fine, others not. Is there some way I can clear out the cache of source files, maybe uninstall Module::Build, and try to start fresh? I'm assuming from these messages that the problem lies not with Net::OSCAR but with Module::Build. I'm new to Perl, but I know that some modules that use MakeFile worked fine while this particular one that uses Build.PL does not work. If more information would be helpful, please let me know.

    Update:
    Also checked /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build.pm and it doesn't exist on my VPS. There's no Module directory at all in my /usr/local/perl-5.8.8/lib/site_perl/5.8.8/ path.
    Last edited by tomhogans; 06-27-2008 at 07:31 AM.

  4. #4
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    There is no way to "uninstall" CPAN modules aside from manually deleting the files created. I tested this on a fairly new account that has a dedicated IP. I would not think that would affect things but thought I would mention it. Have you asked West Host about this?
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  5. #5
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    See if you have /usr/local/perl-5.8.8/lib/site_perl/5.8.8/i686-linux/auto/Module/Build/.packlist on your account. If you do open it up and review the paths on each line. It should look something like this:
    Code:
    /usr/local/perl-5.8.8/bin/config_data
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/API.pod
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Authoring.pod
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Base.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Compat.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Config.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/ConfigData.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Cookbook.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/ModuleInfo.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Notes.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/PPMMaker.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/Amiga.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/Default.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/EBCDIC.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/MPEiX.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/MacOS.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/RiscOS.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/Unix.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/VMS.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/VOS.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/Windows.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/aix.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/cygwin.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/darwin.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Platform/os2.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/PodParser.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/Version.pm
    /usr/local/perl-5.8.8/lib/site_perl/5.8.8/Module/Build/YAML.pm
    Those should be the files that where written to your server. To "uninstall" and try again remove these files.

    You may also see /usr/local/perl-5.8.8/lib/site_perl/5.8.8/i686-linux/auto/Net/OSCAR/.packlist
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  6. #6
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    BTW my "knowledge" of this subject simply comes from poking around my account and seeing what is being created and from bits of information I can find on the internet. Hopefully someone well stop by who has a better working knowledge of the CPAN system and how it works with a West Host account.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

Posting Permissions

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