in reply to Re^2: how to install URI::Escape::JavaScript on ActiveState
in thread how to install URI::Escape::JavaScript on ActiveState

If you have multiple versions of perl installed, repeat the procedure using the cpan command installed with each perl.

Replies are listed 'Best First'.
Re^4: how to install URI::Escape::JavaScript on ActiveState
by amitsq (Beadle) on Jul 11, 2017 at 10:01 UTC
    actually I already runned the command in the directory for perl32, yet it installed it in directory for perl64, reapeating same command didn't change that, or how could i adjust the command to get it to perl32 ?
      actually I already runned the command in the directory for perl32, yet it installed it in directory for perl64

      Make sure that the location of perl32 bin directory is ahead of location of perl64 bin directory in your PATH. At the command line:
      set PATH=C:\location\of_your\perl32\bin;%PATH%
      Then try running the same cpan command again.

      Cheers,
      Rob
        sorry for the delay, now having distance to the matter, it's all more clear, and your command helped changing the priority. Thanks!!

      Your path likely has this 64bit path with higher precidence, see the windows where command. Consider running the full path to the 32bit version of cpan or consider finding a better solution for managing multiple perls/architectures for your environment.

      Update: for reference berrybrew.

      Hello amitsq,

      You mean that you have Perl32 bit and Perl64bit on the same directory installed? What does get printed when you run perl -v and which perl?

      Update: If you are running WindowsOS run where perl instead of which.

      Sample of my local box:

      $ perl -v This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-li +nux (with 1 registered patch, see perl -V for more detail) Copyright 1987-2017, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. $ which perl /home/user/perl5/perlbrew/perls/perl-5.24.1/bin/perl

      Hope this helps, BR.

      Seeking for Perl wisdom...on the process of learning...not there...yet!
        i have perl 32 installed in directory perl32 and perl 64 bit version in directory perl64. Now i am in directory perl32:
        perl -v This is perl 5, version 16, subversion 3(v5.16.30) built for MSWin32-x +64-multi-thread ..

        the commands "where perl" and "set PATH .." cause errors

        1) where perl:

         Where-Object : Cannot bind parameter 'FilterScript'. Cannot convert the "SizeMB" value of type "System.String" to type System.Management.Automation.ScriptBlock"."

        2) set path :

        CommandNotFoundException %PATH% got not recognized as Name of Cmdlet, Function, Script file or +Program