Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:30:00+00:00 2026-05-13T05:30:00+00:00

Does anyone know what files are required for MySql to work with a Tcl

  • 0

Does anyone know what files are required for MySql to work with a Tcl Starkit? Currently, I have libmySQL.dll, libmysqltcl.dll, and pkgIndex.tcl. The pkgIndex.tcl has the following code:

proc loadmysqltcl {dir} {
   set oldcwd [pwd]
   cd $dir
   load libmysqltcl[info sharedlibextension]
   cd $oldcwd
  }

package ifneeded mysqltcl 3.03 [list loadmysqltcl $dir]

These files are located in my Tcl application lib folder. So far, after I wrap my application and run the exe. file, I get an error:

couldn’t load library
“C:/…TCL1055.tmp”: this library or a dependent library could not be found in library path while executing “load libmysqltcl[info sharedlibextension]”

Furthermore, I notice that the missing .tmp file changes every time I try to run my application.

Has anyone had success with Tcl/MySql starkit (for Windows)?

Thanks,

DFM

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:30:01+00:00Added an answer on May 13, 2026 at 5:30 am

    Starkits use some fancy tricks in order to be able to load libraries that are stored in the virtual filesystem bundled into the starkit itself. On Unix, you can direct the OS library loader to load a library from an arbitrary block of data, but on Windows, you can only load libraries from actual files on disk.

    In order to accommodate that limitation, Windows starkits first copy the library out of the virtual filesystem to the real filesystem as a temp file. That’s where your temp file names are coming from.

    Now, all of that works fine as long as the libraries in your starkit do not themselves have dependencies on other libraries in your starkit. In your case, your libmysqltcl.dll probably depends on libmySQL.dll. At the time of loading, both of those have been copied to the real filesystem, but with temp file names, so the loader is not able to find libmySQL.dll.

    You have a couple choices for working around this:

    1. Eliminate these second-level dependencies from your libraries. In this case, that means rebuilding libmysqltcl.dll with static linkage to the stuff in libmySQL.dll, rather than dynamically linking it against the dll.

    2. Before the package require in your startup script, explicitly copy the second-level dependencies out of your starkit to a location on the real filesystem, then update the PATH environment variable to include that directory.

    Option #2 would look something like this:

    set dirname [file dirname [info script]]
    set tmpdir  [file join $env(TEMP) __myapp__]
    file mkdir $tmpdir
    foreach dll {libmySQL.dll} {
        if { ![file exists [file join $tmpdir $dll]] } {
            file copy -force [file join $dirname bin $dll] $tmpdir
        }
    }
    set ::env(PATH) "$tmpdir;$env(PATH)"
    

    Then you should be able to do your package require as expected.

    It’s a bit clunky for sure, but the blame lies pretty squarely on Windows for not allowing you to load libary code from memory rather than from a file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know the bare minimum files required for Ext JS 2.2? I know
Does anyone know how to merge two xml files in or two xmllist objects
Does anyone know of a utility for generating PowerShell cmdlet help files? Doing it
Does anyone know how I can Dynamically create an installation package that installs files
Does anyone know of a clojure library to build sitemap.xml files? If no such
Does anyone know of any tools to provide simple, fast queries of flat files
Does anyone know how to import a mysql sql file into microsoft visio 2007,
Does anyone know of an application or system out there for tracking changes (files
Does anyone know why loading a KML file into my sencha touch google map
Does anyone know how to read a x.properties file in Maven. I know there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.