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
[Activetcl] teapot repository package question
by Larry W. Virden other posts by this author
Oct 18 2007 11:46AM messages near this date
view in the new Beta List Site
Re: [Activetcl] version for unix | Re: [Activetcl] teapot repository package question
I've got ActiveTcl 8.5 beta installed on my disk, as well as quite
a number of packages installed via teacup.

I ran into a peculiar problem today, where a package request of one
of the packages failed with a "can't find" error.

So I decided to see how many of the packages would load into ActiveTcl 8.5's
tclsh8.5 .

I used this script:

#! /path/to/tclsh8.5
set p [list bmp c dict dom::c dom::generic dom::libxml2 Expect gif ico img::base img::bmp im
g::gif img::ico img::jpeg img::pcx img::pixmap img::png img::ppm img::ps img::sgi img::sun i
mg::tga img::tiff img::window img::xbm img::xpm Itcl Itk jpeg jpegtcl Memchan Mk4tcl msgcat 
newclock Oratcl pcx pixmap png pngtcl ppm ps sgi snack snackogg snacksphere sound sqlite3 su
n tbcload tbcload84 tbcload85 TclOO Tclx tdom tga tiff tifftcl tile Tix tkdnd Tkhtml Tktable
 tls tnc treectrl Trf tweezer vfs window xbm xml::c xml::expat XOTcl xpm xslt zlibtcl ]

foreach i $p {
	set result {}
	catch {package require $i} result
	if { $result != "" } {
		puts "$i: $result"
	}
}

And I ran it. I got this as my results:

bmp: can't find package bmp
c: can't find package c
dict: 8.5.3
dom::c: 2.6
dom::generic: 2.6
dom::libxml2: 2.6
Expect: 5.44.1.3
gif: can't find package gif
ico: 1.0.2
img::base: 1.3
img::bmp: 1.3
img::gif: 1.3
img::ico: 1.3
img::jpeg: 1.3
img::pcx: 1.3
img::pixmap: 1.3
img::png: 1.3
img::ppm: 1.3
img::ps: 1.3
img::sgi: 1.3
img::sun: 1.3
img::tga: 1.3
img::tiff: 1.3
img::window: 1.3
img::xbm: 1.3
img::xpm: 1.3
Itcl: 3.4
Itk: 3.4
jpeg: 0.3
jpegtcl: 1.0
Memchan: 2.2.1
Mk4tcl: 2.4.9.7
msgcat: 1.4.2
newclock: Can't find a usable clock.tcl in the following directories: 
    /tmp/.lwv/ActiveTcl-8.5/lib/tcl8.5/newclock1.0.1 /tmp/.lwv/ActiveTcl-8.5/lib/newclock1.0
.1 /tmp/.lwv/teapot/repository/package/solaris2.9-sparc/lib/newclock1.0.1 /tmp/.lwv/teapot/r
epository/package/solaris2.8-sparc/lib/newclock1.0.1 /tmp/.lwv/teapot/repository/package/sol
aris2.7-sparc/lib/newclock1.0.1 /tmp/.lwv/teapot/repository/package/solaris2.6-sparc/lib/new
clock1.0.1 /tmp/.lwv/teapot/repository/package/tcl/lib/newclock1.0.1 /export/home/andreask/d
bn/lba/night/builds/solaris-sparc/out/lib/expect5.44.1.3/newclock1.0.1 /export/home/andreask
/dbn/lba/night/builds/solaris-sparc/out/solaris-sparc/lib/expect5.44.1.3/newclock1.0.1 /tmp/
.lwv/ActiveTcl-8.5/lib/tk8.5/newclock1.0.1 /tmp/.lwv/ActiveTcl-8.5/lib/tk8.5/ttk/newclock1.0
.1 /tmp/.lwv/teapot/repository/package/solaris2.6-sparc/lib/Itk-3.4/newclock1.0.1 /tmp/.lwv/
lib/newclock1.0.1 /tmp/.lwv/ActiveTcl-8.5/library



This probably means that newclock wasn't installed properly.

Oratcl: can't read "env(ORACLE_HOME)": no such variable
pcx: can't find package pcx
pixmap: can't find package pixmap
png: 0.1.2
pngtcl: 1.2.12
ppm: can't find package ppm
ps: can't find package ps
sgi: can't find package sgi
Unable to open /dev/audioctl
snack: 2.2
snackogg: couldn't load file "/tmp/.lwv/teapot/repository/package/solaris2.6-sparc/lib/snack
ogg-1.3/libsnackogg.so": ld.so.1: tclsh8.5: fatal: libvorbisenc.so.2: open failed: No such f
ile or directory
snacksphere: 1.2
Unable to open /dev/audioctl
sound: 2.2
sqlite3: 3.4.1
sun: can't find package sun
tbcload: 1.7
tbcload84: 1.7
tbcload85: 1.7
TclOO: can't find package TclOO
Tclx: 8.4
tdom: 0.8.2
tga: can't find package tga
tiff: 0.1
tifftcl: 3.8.2
tile: 0.8.0
Tix: Can't find a usable Init.tcl in the following directories: 
    /tmp/.lwv/ActiveTcl-8.5/lib/tcl8.5/Tix8.4.2 /tmp/.lwv/ActiveTcl-8.5/lib/Tix8.4.2 /tmp/.l
wv/teapot/repository/package/solaris2.9-sparc/lib/Tix8.4.2 /tmp/.lwv/teapot/repository/packa
ge/solaris2.8-sparc/lib/Tix8.4.2 /tmp/.lwv/teapot/repository/package/solaris2.7-sparc/lib/Ti
x8.4.2 /tmp/.lwv/teapot/repository/package/solaris2.6-sparc/lib/Tix8.4.2 /tmp/.lwv/teapot/re
pository/package/tcl/lib/Tix8.4.2 /export/home/andreask/dbn/lba/night/builds/solaris-sparc/o
ut/lib/expect5.44.1.3/Tix8.4.2 /export/home/andreask/dbn/lba/night/builds/solaris-sparc/out/
solaris-sparc/lib/expect5.44.1.3/Tix8.4.2 /tmp/.lwv/ActiveTcl-8.5/lib/tk8.5/Tix8.4.2 /tmp/.l
wv/ActiveTcl-8.5/lib/tk8.5/ttk/Tix8.4.2 /tmp/.lwv/teapot/repository/package/solaris2.6-sparc
/lib/Itk-3.4/Tix8.4.2 /tmp/.lwv/teapot/repository/package/solaris2.6-sparc/lib/Tclx-8.4/Tix8
.4.2 /tmp/.lwv/lib/Tix8.4.2 /tmp/.lwv/ActiveTcl-8.5/library



This probably means that Tix wasn't installed properly.

tkdnd: 1.0
Tkhtml: 3.0
Tktable: 2.9
tls: 1.5.1
tnc: 0.3.0
treectrl: 2.2.3
Trf: 2.1.2
tweezer: 0.0
vfs: 1.3
window: can't find package window
xbm: can't find package xbm
xml::c: 2.6
xml::expat: 2.6


So, given that so many of these DID work, I am curious about the ones
which didn't work. The list of packages attempted came from looking
inside the pkgIndex.tcl files themselves and pulling out the names
available there. 

Certainly it makes some sense that some of these fail - Oratcl needs
an environment variable that I didn't have set when I ran the test.
At least one or more of the snack packages appear to require an audio device
be attached to the machine. Those ones I at least can explain away.
However, there are a dozen or more of the "can't find package"
responses, as well as at least one - Tix - that appears to have
some other problem.

Anyone else seen this?
-- 
Tcl - The glue of a new generation.  <URL: http://wiki.tcl.tk/ > 
Larry W. Virden <mailto:lvirden@[...].org> <URL: http://www.purl.org/NET/lvirden/ >
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-> <-
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Andreas Kupries

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