in reply to Tcl module install issues

Hi , I am getting the below issue when trying to use the Tcl Module. Error i am getting is shown below

% ./bin/perl5.24.0

use Tcl;

Can't locate loadable object for module Tcl in @INC (@INC contains: /home/RTG/common/local_install/Perl5.24/lib/perl5/site_perl/5.24.0/x86_64-linux

/home/RTG/common/local_install/Perl5.24/lib/perl5/site_perl/5.24.0 /home/RTG/common/local_install/Perl5.24/lib/perl5/5.24.0/x86_64-linux

/home/RTG/common/local_install/Perl5.24/lib/perl5/5.24.0 .) at - line 2.

Compilation failed in require at - line 2.

BEGIN failed--compilation aborted at - line 2.

Undefined subroutine &Tcl::_Finalize called at /home/RTG/common/local_install/Perl5.24/lib/perl5/5.24.0/Tcl.pm line 432.

END failed--call queue aborted at - line 2.

Can any one help me to resolve this issue?

Thanks

Somu

Replies are listed 'Best First'.
Re^2: Tcl module install issues
by marto (Cardinal) on Jan 05, 2017 at 11:02 UTC

    At a guess you may not have Tcl installed correctly. How did you install this?

      Hi Marto,

      I have used the below procedure

      2. perl Makefile.PL

      make

      make test

      make install

      And also, I didn't get any errors while installing

        Most likely the perl you used to run Makefile.PL was not the perl you use to run your program (/home/RTG/common/local_install/Perl5.24/bin/perl).

        Update: You can find the perl your shell runs with the following command:

        which perl

        Ideally this shows you the perl binary you want to use. Personally, I prefer to be explicit in specifying the full path to the Perl (version) I want to use when installing modules:

        /opt/perl/perl-5.24/bin/perl Makefile.PL make make test make install

        The error message you reported usually comes from a module installation problem, for example copying .pm files around, which misses other things e.g. XS modules. At the moment I can't get the module to install at all at the moment (ARM based Debian). There are open tickets but I can't see them right now as rt.cpan is currently down (bad proxy, reported).

        Update: Corion is right.