Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to actually use teacup pkgs under Ubuntu

267 views
Skip to first unread message

Dave

unread,
Jul 28, 2015, 4:08:31 PM7/28/15
to
I want to get a script developed on win7 working on ubuntu.
I successfully installed ubuntu on a portable HD
I downloaded ActiveState's 8.6 64-bit linux install pkg
I unpacked and 'sudo ./install.sh'; it installed to /opt/Active...
I added /opt/Active.../bin to my PATH

I start wish and say 'package require Img'
Not found.
It's in my windows install from ActiveState?
So I tried (I think sudo) teacup install Img
Got a bunch of msgs that seemed to say it was already there

My questions:
Is it there?
Where?
How do I get to it?
If it's there & I can get to it, how do I make a system-wide change to
make it avail. to all users?

This PC is a laptop that I can now dual-boot; I rebooted to windows to
ask this question.

--
computerjock AT mail DOT com

Computer Jock

unread,
Jul 29, 2015, 12:58:59 AM7/29/15
to
I did some more googling
I read this: http://wiki.tcl.tk/17341

Running as root since that's how I installed ActiveState's Tcl (in
/opt/ActiveTcl-8.6)

# teacup install --with-recommends Img
Resolving Img ... [package Img 1.4.3 tcl ... Already installed in
repository, probing dependencies]
Resolving Tcl 8.4 -is package ... [package Tcl 8.6.4 _ ... Installed
outside repository, probing dependencies]
Resolving Tk 8.4 -is package ... [package Tk 8.6.4 _ ... Installed
outside repository, probing dependencies]
Resolving img::bmp 1.4.3-2 -is package ... [package img::bmp 1.4.3
linux-glibc2.3-x86_64 ... Already installed in repository, probing
dependencies]
:
and a whole bunch more

If it's in my "repository", then why can't I "package require" it?

It sort of looks like the .so's have been installed in:
lib/teapot/package/linux-glibc2.3-x86_64/lib/

This seemed to work:
# teacup update --only newer

Then I did
# teacup install -force Img

Again, it seemed to work:
Installing into /opt/ActiveTcl-8.6/lib/teapot
Installing package Img 1.4.2 tcl
:

But I cannot find any Img package.

# wish
% package require Img
can't find package Img

I also see no teapot in auto_path or tcl_pkgPath
So even if it did install something to lib/teapot/... I don't see how
Tcl is going to find it.
Would I have to add explicit paths in every script I want to run that
uses one of the teapot packages?

I also need tablelist and tls.

I've reached an impasse. I thought ActiveState's linux distribution
would be as complete as windows'.

Andreas Leitgeb

unread,
Jul 29, 2015, 2:42:34 AM7/29/15
to
Computer Jock <no...@nowhere.com> wrote:
> But I cannot find any Img package.
> # wish
> % package require Img
> can't find package Img

Are you sure, that the ActiveState "wish" is really the first one in
the PATH?

try:
type wish
and it should tell you, where it found it.

My guess would be that you got Ubuntu's wish (probably /usr/bin/wish)
instead of ActiveState's.

Brad Lanam

unread,
Jul 29, 2015, 7:31:05 AM7/29/15
to
On Tuesday, July 28, 2015 at 1:08:31 PM UTC-7, Dave wrote:
> I start wish and say 'package require Img'
> Not found.

If there's nothing particular you need from the ActiveState tcl/tk version, you can just use ubuntu's tk package.

Install the ubuntu 'libtk-img' package.

Brad Lanam

unread,
Jul 29, 2015, 7:48:29 AM7/29/15
to
I missed seeing this:
> I also need tablelist and tls.

tablelist is included in the 'tklib' package.

'tls' is harder. You may need to build that package yourself if it not part of the ActiveState tcl/tk linux distribution.

Dave

unread,
Jul 29, 2015, 4:44:26 PM7/29/15
to
I feel really dumb now.

That was it. It never occurred to me that Tcl was pre-installed.
I rm -fr'ed the /opt/Active* (since there was no install.log so the
uninstall script failed)
I then reinstalled ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz
My script now runs... until it hits a windoze thingy--which is why I
started down this path.

I wanted the "install" instructions for my script to be as simple as
possible. On windows, it's just "install Active State's Tcl". For linux
I was hoping it would be the same. However, since Tcl (might) be already
installed, I guess I'll have to see if just installing the Img package
for Ubuntu would be sufficient. As much as I dislike windows, in this
case it makes life easier for a potential user of my script.

Thank you to all who responded.

Andreas Kupries

unread,
Oct 10, 2015, 3:08:32 AM10/10/15
to
Did you get your q answered ?

--
So long,
Andreas Kupries <akup...@shaw.ca>
<http://core.tcl.tk/akupries/>
Developer @ HP Enterprise

Tcl'2015, Oct 19-23, Manassas, VA, USA, http://www.tcl.tk/community/tcl2015/
-------------------------------------------------------------------------------

Dave

unread,
Oct 10, 2015, 3:49:58 AM10/10/15
to
On 10/10/2015 2:06 AM, Andreas Kupries wrote:
> Dave <nor...@nohost.com> writes:
>
>> I want to get a script developed on win7 working on ubuntu.
>> I successfully installed ubuntu on a portable HD
>> I downloaded ActiveState's 8.6 64-bit linux install pkg
>> I unpacked and 'sudo ./install.sh'; it installed to /opt/Active...
>> I added /opt/Active.../bin to my PATH
>
>> I start wish and say 'package require Img'
>> Not found.
>> It's in my windows install from ActiveState?
>> So I tried (I think sudo) teacup install Img
>> Got a bunch of msgs that seemed to say it was already there
>
>> My questions:
>> Is it there?
>> Where?
>> How do I get to it?
>> If it's there & I can get to it, how do I make a system-wide change to
>> make it avail. to all users?
>
>> This PC is a laptop that I can now dual-boot; I rebooted to windows to
>> ask this question.
>
> Did you get your q answered ?
>

Yes. A version of "wish" is already installed on ubuntu. It was picking
up that version rather than the one installed in /opt/ActiveState.

Andreas Kupries

unread,
Oct 17, 2015, 2:08:31 AM10/17/15
to
Dave <nor...@nohost.com> writes:

> On 10/10/2015 2:06 AM, Andreas Kupries wrote:
>> Dave <nor...@nohost.com> writes:

>> Did you get your q answered ?
>>
>
> Yes.

Glad to know.

> A version of "wish" is already installed on ubuntu. It was picking
> up that version rather than the one installed in /opt/ActiveState.

Was my 1st suspicion as well.
0 new messages