Package Require getting "wrong version"



Depending on what order package requires are done, I'm getting different versions of the http package (1.0 vs 2.5.3 -- I want 2.5.3). This is in a FreeBSD system with the ports build of Tcl 8.5. See below:


$ tclsh8.5
% set auto_path
/usr/local/lib/tcl8.5 /usr/local/lib
% package require Tcl 8.5
8.5.1
% package require http
2.5.3
% exit
$ tclsh8.5
% package require Tcl 8.5
8.5.1
% package require WS::Utils
1.1.0
% package require http
1.0
% exit
$ tclsh8.5
% package require foo
can't find package foo
% package require WS::Utils
1.1.0
% package require http
2.5.3
% exit
$ tclsh8.5
% package require WS::Utils
1.1.0
% package require http
1.0
% exit
$ ls /usr/local/lib/*/pkgIndex.tcl
/usr/local/lib/Tktable2.9/pkgIndex.tcl /usr/local/lib/tdom0.8.2/pkgIndex.tcl /usr/local/lib/tk8.5-threads/pkgIndex.tcl
/usr/local/lib/expect5.43/pkgIndex.tcl /usr/local/lib/thread2.6.5/pkgIndex.tcl /usr/local/lib/tk8.5/pkgIndex.tcl
/usr/local/lib/tcllib/pkgIndex.tcl /usr/local/lib/tk8.4/pkgIndex.tcl /usr/local/lib/tls/pkgIndex.tcl



Anyone have any ideas on what is wrong and what to do so I consistently get 2.5.3.

(Note this does not happen on my OS X box using ActiveState's 8.5 distro).

--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Re: now do you "link" .tcl files?
    ... I think from the position of a newbie, this is how linking in Tcl ... At the time of the call, Tcl looks up the command named "foo" using ... pkgIndex.tcl for a Tcl-only package usually contains ...
    (comp.lang.tcl)
  • Re: Why TCL?
    ... The typical reason you see other languages have things like this is ... Tcl extension packages available as well. ... :And installing the MD5 package for TCL was too painful for me. ... in other scripting language camps wanted something similar. ...
    (comp.lang.tcl)
  • Re: New list commands ... What do you think ?
    ... That's the risk of every developer writing basic commands. ... allow some discussion about some of them, that are really good for core ... runtime consuming and could be done more efficiencly in C using the tcl ... Critcl builds a package which is loaded. ...
    (comp.lang.tcl)
  • Re: set character at string position
    ... > 'stub' for best performance and prettiness. ... Tcl 8.3 and still continue to link and work flawlessly with Tcl 8.5+. ... loads an extension. ... A package is any combination of Tcl and/or compiled C code that is ...
    (comp.lang.tcl)
  • Re: TCL vs. Perl
    ... Mainly, I am a Tcl developer, and I write TONS of databases in ... Downloading packages is cake, use the http package. ... tclIndex file and the paths for Tcl to find them. ... even Latex and PDF documents can be auto-generated by scripts. ...
    (comp.lang.tcl)