Overview
| Artifact ID: | 89230d14242fd4dd08f5063c770602993b505732de6c7bb60b0217d294026870 |
|---|---|
| Ticket: | 6b3618ed9363e6038df3efc113093eef9a86323c
can't find package opt 0.1 |
| User & Date: | sebres on 2018-08-04 22:29:02 |
Changes
- closedate changed to: "2458335.43682976"
- closer changed to: "sebres"
- icomment:
I cannot follow what you try to source here... Anyway if it is all what you see there, you have something other as normal Tcl-installation (some special project-based build or similar). I think your init.tcl/package.tcl are not the default version (or injected by the project, or something similar). Or just the program you trying to use is not default tcl (so can do another things as in standard release like manipulate auto_path, rewrite loading mechanisms, etc). For example why your prompt started with `>` (in opposite to tclsh/wish/etc where it is `%`)? Below you'll find how it looks on mainstream tcl8.6 by `package require opt`: <code><pre style="padding-left:10pt"> % package require opt ** DBG: ** ::source /path-to-tcl/library/history.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/tm.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/package.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/http/pkgIndex.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/http1.0/pkgIndex.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/msgcat/pkgIndex.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/opt/pkgIndex.tcl ** ** DBG: ** [OK] ** ** DBG: ** ::source /path-to-tcl/library/platform/pkgIndex.tcl ** ** DBG: ** [OK] ** ... ** DBG: ** ::source /path-to-tcl/library/opt/optparse.tcl ** ** DBG: ** [OK] ** 0.4.6 </pre></code> Normally if tcl evaluates `package require`, it will load package.tcl and hereafter all pkgIndex.tcl in all directories from `auto_path`. So it will know where each package is placed and what it has to do to load this package. But in your case it's totally different. So I assume you use something else (a special build). So you should generate the package structure (resp. architecture of pkgIndex-load mechanism) how it is expected from this build/project. Or just stay on 8.4. Neither we have the knowledge how your project/app handles this all, nor this will be possible without take a look into whole project infrastructure (e.g. I see strobe.tcl loaded as first directly in init.tcl or even this file xmsimrc you tried to source, both are unknown to me). Therefore we cannot help you here, thus closed as 3rd party issue.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- severity changed to: "Minor"
- status changed to: "Closed"