Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

No Tcl dll found

by hakim-djz (Novice)
on Feb 06, 2014 at 17:08 UTC ( [id://1073729]=perlquestion: print w/replies, xml ) Need Help??

hakim-djz has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I've been going round in circles trying to install the Tkx module. I'm trying to use Perl to make a GUI for a raspberryPi. Can anyone help solve this error I'm getting while using ( cpanm Tkx )? Here's the part of the build log file:

NpLoadLibrary: could not find Tcl dll

Failed to load Tcl dll! at /usr/lib/perl/5.14/DynaLoader.pm line 207.

Unable to initialize Tcl at /usr/lib/perl/5.14/DynaLoader.pm line 207.

All advice appreciated

Replies are listed 'Best First'.
Re: No Tcl dll found
by kcott (Archbishop) on Feb 07, 2014 at 04:36 UTC

    G'day hakim-djz,

    Welcome to the monastery.

    Many Perl modules (especially those that are pure Perl) install without incident; however, when you do have problems installing a module (particularly those that require 3rd-party libraries), your first port of call should be the README file.

    The layout in CPAN is pretty much the same for all modules: you'll find README, as well as other files and resources, in the same places. I'll show how to do it for Tkx (the steps are the same for other modules):

    1. Find the module you want on CPAN, in this case Tkx.
    2. In the top-left corner you'll see: author_link > distribution_link > module_name. Follow the distribution_link, in this case Tkx-1.09. [Note for future reference: 1.09 is a version number which will change if the module is updated.]
    3. Now you'll see a lot of information in various sections including testing results, other modules in the distribution, documentation and so on. The link to the README file is in the "Special Files" section.

    For installation of Tcl/Tk, I suggest you go to TkDocs - Tk Tutorial. Read the short Introduction then you can probably skip straight to Installing Tk on Linux.

    Once you installed Tcl/Tk, try to install Tkx again.

    I haven't done this specifically for Linux; however, the steps I've shown here worked fine for Mac OS X which is also a Unix-like OS.

    [Depending on your expertise with Tkx, you may find other sections of TkDocs - Tk Tutorial as well as Tkx::Tutorial useful when you start to write your GUIs.]

    -- Ken

      Hi Ken

      Got Tk installed okay. Get your point about Tkx and I read the readme files. Yea I'm going to work on Tk and it should be sufficient for what I'm going to do. Just wanted to make the GUI look a bit better, if you know any other ways?

      thanks to all replies

      I'm Still getting error trying to install Tkx. Tk installed okay, but Tcl won't install either. Any ideas??
Re: No Tcl dll found
by bulk88 (Priest) on Feb 06, 2014 at 19:37 UTC
    This is what I use when I dont want to use the default location DLL.
    BEGIN { $ENV{PERL_TCL_DLL} = 'C:\Program Files\Tcl\bin\tcl85t.dll'; }
      See I don't think I can apply that, because I'm using Ubuntu, not Windows. So I don't really understand why it's trying to use dll.

        See I don't think I can apply that, because I'm using Ubuntu, not Windows.

        Same difference, .dll is .so on linux ... if you don't have the required Tcl installed where Tkx can find it, you're not going to be able to install Tkx

        OTOH your real problem seems to be that you want to install Tkx -- stick with Tk friend :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1073729]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-23 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found