Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Abandon the search for Truth; settle for a good fantasy.


comp / comp.lang.tcl / Re: tcl9: lib folder not in auto_path

SubjectAuthor
* tcl9: lib folder not in auto_pathHarald Oehlmann
`* Re: tcl9: lib folder not in auto_pathAshok
 +- Re: tcl9: lib folder not in auto_pathHarald Oehlmann
 `- Re: tcl9: lib folder not in auto_pathHarald Oehlmann

1
Subject: tcl9: lib folder not in auto_path
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 1 Nov 2024 19:30 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: tcl9: lib folder not in auto_path
Date: Fri, 1 Nov 2024 20:30:31 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <vg3a8n$3btus$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 01 Nov 2024 20:30:31 +0100 (CET)
Injection-Info: dont-email.me; posting-host="112d800f90f43e3042d001bb035bd058";
logging-data="3536860"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ljhnH2AGyvmPhpa89DWiR"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Ntl9ELJD2qU93B1feZGKda/0g60=
Content-Language: en-GB
View all headers

Dear TCL team,
I have build and installed TCL 9.0.0 using the nmake with 32 bit MS-VS
2015 to folder c:\test\tcl9.0.0\tcl900

The lib folder containes the bundled packages, like:
c:\test\tcl9.0.0\tcl900\lib\tdbc

% package require TDBC
1.1.9
% package files tdbc
C:/test/tcl9.0.0/tcl900/lib/tdbc1.1.9/pkgIndex.tcl
C:/test/tcl9.0.0/tcl900/lib/tdbc1.1.9/tdbc.tcl

Then, I have installed TCLLIB 2.0 to its lib folder:
c:\test\tcl9.0.0\tcl900\lib

(remark that the installer has proposed to embed it into the zip. I have
changed this).

For example, the package log is in folder
c:\test\tcl9.0.0\tcl900\lib\log

But:
% package require log
-> no such package
% set auto_path
//zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl
C:/test/tcl9.0.0/tcl900/lib //zipfs:/lib/tk/tk_library
//zipfs:/lib/tk/tk_library/ttk
-> the lib folder is not in the auto path
% lappend auto_path {C:\test\tcl9.0.0\tcl900\lib}
% package require log
1.5

How is tdbc loaded, if not in the auto path?

Is it good practice to add the external lib folder to the auto path?

Thank you all,
Harald

Subject: Re: tcl9: lib folder not in auto_path
From: Ashok
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 2 Nov 2024 06:45 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apnmbx-public@yahoo.com (Ashok)
Newsgroups: comp.lang.tcl
Subject: Re: tcl9: lib folder not in auto_path
Date: Sat, 2 Nov 2024 12:15:12 +0530
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <vg4hpo$3mbq0$3@dont-email.me>
References: <vg3a8n$3btus$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 02 Nov 2024 07:45:12 +0100 (CET)
Injection-Info: dont-email.me; posting-host="770c87a88f5b55dc4eef126b4b19c0d4";
logging-data="3878720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KwUoXVTjx+CLruEvJQ8HR"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s/GlGUpAum4CNx7SMkR5+ch/jsQ=
In-Reply-To: <vg3a8n$3btus$1@dont-email.me>
Content-Language: en-US
View all headers

Harald,

Not sure why it does not find log but from your output,
c:/test/tcl9.0.0/tcl900/lib is in fact already in the path (albeit with
forward slashes)

The external lib folder is present in auto_path in all the Tcl 9
installations I checked

/Ashok

On 11/2/2024 1:00 AM, Harald Oehlmann wrote:
> Dear TCL team,
> I have build and installed TCL 9.0.0 using the nmake with 32 bit MS-VS
> 2015 to folder c:\test\tcl9.0.0\tcl900
>
> The lib folder containes the bundled packages, like:
> c:\test\tcl9.0.0\tcl900\lib\tdbc
>
> % package require TDBC
> 1.1.9
> % package files tdbc
> C:/test/tcl9.0.0/tcl900/lib/tdbc1.1.9/pkgIndex.tcl C:/test/tcl9.0.0/
> tcl900/lib/tdbc1.1.9/tdbc.tcl
>
> Then, I have installed TCLLIB 2.0 to its lib folder:
> c:\test\tcl9.0.0\tcl900\lib
>
> (remark that the installer has proposed to embed it into the zip. I have
> changed this).
>
> For example, the package log is in folder
> c:\test\tcl9.0.0\tcl900\lib\log
>
> But:
> % package require log
> -> no such package
> % set auto_path
> //zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl C:/test/tcl9.0.0/tcl900/
> lib //zipfs:/lib/tk/tk_library //zipfs:/lib/tk/tk_library/ttk
> -> the lib folder is not in the auto path
> % lappend auto_path {C:\test\tcl9.0.0\tcl900\lib}
> % package require log
> 1.5
>
> How is tdbc loaded, if not in the auto path?
>
> Is it good practice to add the external lib folder to the auto path?
>
> Thank you all,
> Harald
>

Subject: Re: tcl9: lib folder not in auto_path
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 2 Nov 2024 12:22 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: tcl9: lib folder not in auto_path
Date: Sat, 2 Nov 2024 13:22:05 +0100
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <vg55hc$3pktk$1@dont-email.me>
References: <vg3a8n$3btus$1@dont-email.me> <vg4hpo$3mbq0$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 02 Nov 2024 13:22:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="fdeba49ba8fe65cb8946c1cb1c5d9f29";
logging-data="3986356"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DqhdbWKSM4W8OTEdy/JHg"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QIiwOTw/4Q6j0hA2XN9y0P04SbI=
In-Reply-To: <vg4hpo$3mbq0$3@dont-email.me>
Content-Language: en-GB
View all headers

Ashok,
thanks a lot, I found it. It is "lib".
But "pwd" gives the current folder, which is "C:/test/tcl9.0.0".
So, it searches in C:/test/tcl9.0.0/lib (which does not exist).
It is in "C:/test/tcl9.0.0/tcl900/lib" ("tcl900" subfolder)

I think, it is a bad idea to have a relative component in the auto path.
It is IMHO also a security hole.

Thank you for all,
Harald

Am 02.11.2024 um 07:45 schrieb Ashok:
> Harald,
>
> Not sure why it does not find log but from your output, c:/test/
> tcl9.0.0/tcl900/lib is in fact already in the path (albeit with forward
> slashes)
>
> The external lib folder is present in auto_path in all the Tcl 9
> installations I checked
>
> /Ashok
>
> On 11/2/2024 1:00 AM, Harald Oehlmann wrote:
>> Dear TCL team,
>> I have build and installed TCL 9.0.0 using the nmake with 32 bit MS-VS
>> 2015 to folder c:\test\tcl9.0.0\tcl900
>>
>> The lib folder containes the bundled packages, like:
>> c:\test\tcl9.0.0\tcl900\lib\tdbc
>>
>> % package require TDBC
>> 1.1.9
>> % package files tdbc
>> C:/test/tcl9.0.0/tcl900/lib/tdbc1.1.9/pkgIndex.tcl C:/test/tcl9.0.0/
>> tcl900/lib/tdbc1.1.9/tdbc.tcl
>>
>> Then, I have installed TCLLIB 2.0 to its lib folder:
>> c:\test\tcl9.0.0\tcl900\lib
>>
>> (remark that the installer has proposed to embed it into the zip. I
>> have changed this).
>>
>> For example, the package log is in folder
>> c:\test\tcl9.0.0\tcl900\lib\log
>>
>> But:
>> % package require log
>> -> no such package
>> % set auto_path
>> //zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl C:/test/tcl9.0.0/tcl900/
>> lib //zipfs:/lib/tk/tk_library //zipfs:/lib/tk/tk_library/ttk
>> -> the lib folder is not in the auto path
>> % lappend auto_path {C:\test\tcl9.0.0\tcl900\lib}
>> % package require log
>> 1.5
>>
>> How is tdbc loaded, if not in the auto path?
>>
>> Is it good practice to add the external lib folder to the auto path?
>>
>> Thank you all,
>> Harald
>>
>

Subject: Re: tcl9: lib folder not in auto_path
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 2 Nov 2024 12:31 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: tcl9: lib folder not in auto_path
Date: Sat, 2 Nov 2024 13:31:28 +0100
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <vg562v$3pktk$2@dont-email.me>
References: <vg3a8n$3btus$1@dont-email.me> <vg4hpo$3mbq0$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 02 Nov 2024 13:31:28 +0100 (CET)
Injection-Info: dont-email.me; posting-host="fdeba49ba8fe65cb8946c1cb1c5d9f29";
logging-data="3986356"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zZZACQrfHXoD3lN8iPu9/"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2l+wsfOGtB/EI0xelawQzsF2ApI=
In-Reply-To: <vg4hpo$3mbq0$3@dont-email.me>
Content-Language: en-GB
View all headers

Ashok,
the issue is my fault !!!
I have two copies of tcl9 and I picked the wrong one...
Sorry,
Harald

Am 02.11.2024 um 07:45 schrieb Ashok:
> Harald,
>
> Not sure why it does not find log but from your output, c:/test/
> tcl9.0.0/tcl900/lib is in fact already in the path (albeit with forward
> slashes)
>
> The external lib folder is present in auto_path in all the Tcl 9
> installations I checked
>
> /Ashok
>
> On 11/2/2024 1:00 AM, Harald Oehlmann wrote:
>> Dear TCL team,
>> I have build and installed TCL 9.0.0 using the nmake with 32 bit MS-VS
>> 2015 to folder c:\test\tcl9.0.0\tcl900
>>
>> The lib folder containes the bundled packages, like:
>> c:\test\tcl9.0.0\tcl900\lib\tdbc
>>
>> % package require TDBC
>> 1.1.9
>> % package files tdbc
>> C:/test/tcl9.0.0/tcl900/lib/tdbc1.1.9/pkgIndex.tcl C:/test/tcl9.0.0/
>> tcl900/lib/tdbc1.1.9/tdbc.tcl
>>
>> Then, I have installed TCLLIB 2.0 to its lib folder:
>> c:\test\tcl9.0.0\tcl900\lib
>>
>> (remark that the installer has proposed to embed it into the zip. I
>> have changed this).
>>
>> For example, the package log is in folder
>> c:\test\tcl9.0.0\tcl900\lib\log
>>
>> But:
>> % package require log
>> -> no such package
>> % set auto_path
>> //zipfs:/lib/tcl/tcl_library //zipfs:/lib/tcl C:/test/tcl9.0.0/tcl900/
>> lib //zipfs:/lib/tk/tk_library //zipfs:/lib/tk/tk_library/ttk
>> -> the lib folder is not in the auto path
>> % lappend auto_path {C:\test\tcl9.0.0\tcl900\lib}
>> % package require log
>> 1.5
>>
>> How is tdbc loaded, if not in the auto path?
>>
>> Is it good practice to add the external lib folder to the auto path?
>>
>> Thank you all,
>> Harald
>>
>

1

rocksolid light 0.9.8
clearnet tor