<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
I was getting the "NpLoadLibrary: could not find Tcl dll" error until I
installed the dev package for Tcl. It may actually be looking for
header files or something. Make sure you have that installed on your
system and try again.<br>
<br>
On 09/05/2010 05:49 PM, Robert Lindley wrote:
<blockquote cite="mid:4C843A82.3050907@brogmoid.com" type="cite">Doug,
  <br>
  <br>
I followed your link to the Perl Testers report. I have not looked at
Perl Testers for a very long time. The last time that I looked all I
found was an incomprehensible information overload. That chart that
they have now tells you what you want to know.&nbsp;&nbsp; I looks like Tkx
worked on 5.10.0 and not on 5.10.1. Clicking on the bar at version
5.10.1 and Linux the report show a pass for i686 and a fail for s390.
So it should work on i686 Perl 5.10.1.
  <br>
  <br>
Tried again, cpan will not install Tkx because it lacks prerequisite
Tcl.
  <br>
  <br>
Tried again to install Tcl.
  <br>
  <br>
cpan output:
  <br>
  <br>
CPAN.pm: Going to build V/VK/VKON/Tcl-0.98.tar.gz
  <br>
  <br>
LIBS&nbsp;&nbsp; = -Ltcl-core/linux-i686 -ltclstub8.4
  <br>
INC&nbsp;&nbsp;&nbsp; = -Itcl-core/include
  <br>
DEFINE =&nbsp; -DUSE_TCL_STUBS
  <br>
Checking if your kit is complete...
  <br>
Looks good
  <br>
Warning: -Ltcl-core/linux-i686 changed to
-L/root/.cpan/build/Tcl-0.98-Ip73er/tcl-core/linux-i686
  <br>
Writing Makefile for Tcl
  <br>
cp Tcl.pm blib/lib/Tcl.pm
  <br>
/usr/bin/perl /usr/local/share/perl/5.10.1/ExtUtils/xsubpp&nbsp; -typemap
/usr/share/perl/5.10/ExtUtils/typemap -typemap typemap&nbsp; Tcl.xs &gt;
Tcl.xsc &amp;&amp; mv Tcl.xsc Tcl.c
  <br>
Please specify prototyping behavior for Tcl.xs (see perlxs manual)
  <br>
cc -c&nbsp; -Itcl-core/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g&nbsp;&nbsp; -DVERSION=\"0.98\"
-DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl/5.10/CORE"&nbsp;
-DUSE_TCL_STUBS Tcl.c
  <br>
Tcl.xs: In function 'NpLoadLibrary':
  <br>
Tcl.xs:210: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'NpInitialize':
  <br>
Tcl.xs:396: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'Tcl_EvalInPerl':
  <br>
Tcl.xs:782: warning: format '%d' expects type 'int', but argument 2 has
type 'I32'
  <br>
Tcl.xs: In function 'Tcl_PerlCallWrapper':
  <br>
Tcl.xs:862: warning: format '%d' expects type 'int', but argument 2 has
type 'I32'
  <br>
Tcl.xs: In function 'XS_Tcl_Eval':
  <br>
Tcl.xs:1026: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'XS_Tcl_EvalFile':
  <br>
Tcl.xs:1087: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'XS_Tcl_EvalFileHandle':
  <br>
Tcl.xs:1112: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'XS_Tcl_invoke':
  <br>
Tcl.xs:1246: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'XS_Tcl_icall':
  <br>
Tcl.xs:1313: warning: format not a string literal and no format
arguments
  <br>
Tcl.xs: In function 'XS_Tcl_Init':
  <br>
Tcl.xs:1388: warning: format not a string literal and no format
arguments
  <br>
Running Mkbootstrap for Tcl ()
  <br>
chmod 644 Tcl.bs
  <br>
rm -f blib/arch/auto/Tcl/Tcl.so
  <br>
cc&nbsp; -shared -O2 -g -L/usr/local/lib -fstack-protector Tcl.o&nbsp; -o
blib/arch/auto/Tcl/Tcl.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/root/.cpan/build/Tcl-0.98-Ip73er/tcl-core/linux-i686
-ltclstub8.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  <br>
  <br>
chmod 755 blib/arch/auto/Tcl/Tcl.so
  <br>
cp Tcl.bs blib/arch/auto/Tcl/Tcl.bs
  <br>
chmod 644 blib/arch/auto/Tcl/Tcl.bs
  <br>
Manifying blib/man3/Tcl.3pm
  <br>
&nbsp; VKON/Tcl-0.98.tar.gz
  <br>
&nbsp; /usr/bin/make -- OK
  <br>
Running make test
  <br>
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  <br>
t/call.t ....... NpLoadLibrary: could not find Tcl dll
  <br>
Failed to load Tcl dll! at /usr/lib/perl/5.10/DynaLoader.pm line 216.
  <br>
Unable to initialize Tcl at /usr/lib/perl/5.10/DynaLoader.pm line 216.
  <br>
Compilation failed in require at t/call.t line 6.
  <br>
BEGIN failed--compilation aborted at t/call.t line 6.
  <br>
t/call.t ....... Dubious, test returned 2 (wstat 512, 0x200)
  <br>
  <br>
There was a lot more output but it just repeated the "NpLoadLibrary:
could not find Tcl dll" for each test module.
  <br>
  <br>
As I recall I got the same result when I tried to install Tkx from cpan
for perl 5.10.1 on Novell SLES 11.0.
  <br>
  <br>
Ran Google and looked for the Tcl message "NpLoadLibrary: could not
find Tcl dll" and found two queries and neither had an answer as to
what the cause was.
  <br>
  <br>
Perl Testers shows that Tkx works with all version 5.12 or perl. Tried
to upgrade Ubuntu 10.4 to have Perl 5.12. But, it is not in their
program repository.
  <br>
  <br>
ActivePerl Perl/Tkx works fine on Ubuntu 10.4 installed in the users
directory.
  <br>
  <br>
  <br>
  <br>
-----------------------------------------------------------------------------------------------
  <br>
  <br>
Perl/Tk was great!
  <br>
  <br>
Trouble is that Nick Ing-Simmons lead a one man band. He did a
wonderful job of porting Tcl/Tk into Perl/Tk. He basically recoded the
underlying C code into C code for Perl. Thus the interface fit very
closely into Perl. When he died a few years ago, some folks tried, but
nobody was able to bring his code up to date or maintain it. So,
Perl/Tk was frozen in time. ActivePerl in the upgrade from 5.8 to 5.10
dropped Perl/Tk. They introduced Perl/Tkx in ActivePerl 5.8.
  <br>
  <br>
Someone, I believe at ActiveState, really wanted to retain that
functionality in Perl. The result was a very neat methodology. They
created Perl/Tkx. What that is is a very thin syntactic transform of
Perl statements into Tcl/Tk statements. The really neat part about this
is that any upgrades to Tcl/Tk are almost immediately available to
Perl/Tkx without much effort. Thus, eliminating the need for tons of
opaque C code that had a huge learning curve for anybody that tried to
maintain it. Also, you are now able to use all the Tck/Tk modules that
are out there -- and there are plenty of them.
  <br>
  <br>
Perl/Tkx works super with ActivePerl. ActivePerl is great on Windoze
that I use at Boeing. ActivePerl has a distribution for Linux. However,
if you install it as root, your Linux system has just been destroyed.
Many of the system utilities are in Perl and they all quit working
because various Perl modules have been overlayed by other modules. I
know that from first hand experience! It is only safe to install it for
a single non-root user which I have done at home on my Ubuntu Linux. I
would really like to be able to use Perl/Tkx on our Novell SLES 11
Linux server at work. The Tcl.pm and Tkx.pm modules from CPAN will not
install (at least last March). Both were seriouly broken when last I
tried.
  <br>
  <br>
To get arould the problem, I tried to make stand alone Perl executables
that anyone on the server could run, Wow! Making a stand alone Perl
executable is some kind of very black magic. Unfortunately my magic
wand got lost. Spent many hours of time with no result except for
frustration. Somebody told me that Strawberry Perl does it easily. But
that is back to Windows only.
  <br>
  <br>
One of those things that works on windows, but I can't make it work on
Linux (for all users that is).
  <br>
  <br>
If you have an ActivePerl installation somewhere, give their Perl
Package Manager a try to see what Perk/Tkx can do.
  <br>
  <br>
  <br>
  <br>
On 09/03/2010 07:17 PM, Douglas E. Miles wrote:
  <br>
  <blockquote type="cite">OK, if that's the case, then yes, it failed
for me, and there seems to be a lot of fail here:
    <br>
    <br>
<a class="moz-txt-link-freetext" href="http://matrix.cpantesters.org/?dist=Tkx+1.08">http://matrix.cpantesters.org/?dist=Tkx+1.08</a>
    <br>
    <br>
On 09/03/2010 06:58 PM, Erik Tank wrote:
    <br>
    <blockquote type="cite">I thought it was Tkx.&nbsp; I'm running Wubi on
my laptop (yes one of these days
      <br>
I'll nuke Windows and install real Ubuntu) and I couldn't get it to
install
      <br>
with a combination of CPAN and apt-get.&nbsp; I only spent about 30 minutes
on
      <br>
it.&nbsp; If Bob could post some sample code that might help in figuring out
what
      <br>
needs to be installed.
      <br>
      <br>
Erik
      <br>
      <br>
On Fri, Sep 3, 2010 at 6:32 PM, Douglas E.
Miles&lt;<a class="moz-txt-link-abbreviated" href="mailto:doug@veritablesoftware.com">doug@veritablesoftware.com</a>
      <br>
&nbsp;&nbsp;
      <blockquote type="cite">wrote:
        <br>
&nbsp;&nbsp;&nbsp;&nbsp; </blockquote>
&nbsp;&nbsp;
      <blockquote type="cite">Bob,
        <br>
        <br>
Were you asking about compiling Tk, or did I mis-hear you? If you were,
        <br>
I just installed it from CPAN on Ubuntu 10.04 under Perl 5.10.1 with no
        <br>
problems. Please let me know if you were asking about something else,
        <br>
and I'll give it a try.
        <br>
_______________________________________________
        <br>
Phoenix-pm mailing list
        <br>
<a class="moz-txt-link-abbreviated" href="mailto:Phoenix-pm@pm.org">Phoenix-pm@pm.org</a>
        <br>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/phoenix-pm">http://mail.pm.org/mailman/listinfo/phoenix-pm</a>
        <br>
        <br>
&nbsp;&nbsp;&nbsp;&nbsp; </blockquote>
&nbsp;&nbsp; <br>
      <br>
_______________________________________________
      <br>
Phoenix-pm mailing list
      <br>
<a class="moz-txt-link-abbreviated" href="mailto:Phoenix-pm@pm.org">Phoenix-pm@pm.org</a>
      <br>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/phoenix-pm">http://mail.pm.org/mailman/listinfo/phoenix-pm</a>
      <br>
    </blockquote>
    <br>
    <br>
_______________________________________________
    <br>
Phoenix-pm mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:Phoenix-pm@pm.org">Phoenix-pm@pm.org</a>
    <br>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/phoenix-pm">http://mail.pm.org/mailman/listinfo/phoenix-pm</a>
    <br>
  </blockquote>
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Phoenix-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Phoenix-pm@pm.org">Phoenix-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/phoenix-pm">http://mail.pm.org/mailman/listinfo/phoenix-pm</a></pre>
</blockquote>
<br>
</body>
</html>