ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] teacup remove/install sequence doesn't seem to work
by Andreas Kupries other posts by this author
Feb 6 2008 12:33PM messages near this date
view in the new Beta List Site
Re: [Activetcl] teacup remove/install sequence doesn't seem to work | [Activetcl] tcom .NET framework
>  That theory sounds good. Except that the versions of ActiveTcl I have
>  come "only" with the minimal library and teacup. When I say:

So for AT 8.4 you removed all the predefined packages ?

>   $ tclsh8.5
>  % package require dom::c
>  can't find package dom::c
>  $ which tclsh8.4
>  /vol/tclsrcsol/ActiveTcl/bin/tclsh8.4

>  srv29 $ tclsh8.4
>  % info patchlevel
>  8.4.17
>  % package require dom::c
>  attempt to provide package dom::c 2.6 failed: no version of package
>  dom::c provided

Ah. This is different then not finding the package. This message of Tcl's
package management indicates that the package was found, it tried to load
it, and then the package did not provide a version number, causing the load
to fail.

This means the package in question will be listed by 'package names'. And
that information is used by teacup to determine what othr packages are
installed, outside of the repository. Hence the 'Already installed'.


Further note, dom::c (of TclDOM) is one of these packages which cannot be
really required on their own. You have to 'package require dom', i.e. the
overarching dom package of TclDOM, and then the pkgIndex.tcl of 'dom' will
look for dom::c and load it if possible, setting everything up. And only an
'info loaded' afterward will tell you if the dom pkgIndex.tcl was able to
find/load it, or not.




>  This is the second package that I've run into this with
>  teacup remove reports it was successful
>  teacup list --at-default shows no sign of the package, and
>  teacup install -v --force --with-recommends reports the
>  item is installed so it won't install it

The package is present outside of the repository, and on some of the paths
in the auto_path, it is found, just not able to actually load. Go through
the paths of auto_path and look for a pkgIndex.tcl underneath containing
dom::c.



>  (and it seems to me, that even
>  if it WAS installed, the --force seems to imply "install it anyways,
>  right overtop of whatever you think is there...")

No. See previous mail what --force means.

--
	Andreas Kupries <andreask@[...].com> 
	Developer @ http://www.ActiveState.com
	Tel: +1 778-786-1122


_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Larry W. Virden
Andreas Kupries
Larry W. Virden
Jeff Hobbs
Mark Howe
Andreas Kupries
Larry W. Virden
Andreas Kupries

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved