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 >> tcl-mac
tcl-mac
Re: [MACTCL] "proper" arrangement for packages?
by Kevin Walzer other posts by this author
Jul 7 2007 11:27AM messages near this date
Re: [MACTCL] "proper" arrangement for packages? | Re: [MACTCL] "proper" arrangement for packages?
Jon Guyer wrote:

>  I have determined that if I put libtclAE2.0.2.dylib, along with its  
>  pkgIndex.tcl and its required .tcl scripts into a directory  
>  ("tclAE2.0.2") and then move that directory into my tcl_pkgPath, then  
>  it gets loaded just fine by [package require]. On the other hand,  
>  Apple ships tclAE2.0 as a bundle in /System/Library/Tcl/. So, which  
>  is preferred? 

Don't touch anything in /System/Library. That's Apple-provided stuff. I 
believe Tcl/Tk looks there last. It looks in /Library/Tcl before /System.

>  
>  
>  I ran across this exchange between Kevin and Bernard a few months ago  
>  [Re: [MACTCL] ANN: tclAppleHelp 1.1], which may be related. In my  
>  case, I can load tclAppleHelp 1.1 (although the pkgIndex.tcl file  
>  thinks it's 1.0) into either tclsh or Alpha on a G4 Mac running  
>  10.4.9, but I cannot load it into either tclsh or Alpha on an Intel  
>  Mini running 10.4.10:
>  
>  Error: no suitable image found.  Did find:
>  	/Users/admin/Library/Tcl/tclAppleHelp/universal-macosx/ 
>  tclAppleHelp.dylib: not a dylib
>  
>  Like Bernard, lipo and file both indicate that i386 binaries are  
>  present and I can execute the individual steps of tclAppleHelp's  
>  pkgIndex.tcl file without a problem, but nothing actually seems to be  
>  loaded. If I [load /Users/admin/Library/Tcl/tclAppleHelp/universal- 
>  macosx/tclAppleHelp.dylib], I get "image not found".

That's weird. I'm using this in all my commercial applications without 
any issue as far as I can tell. What does the command "package require 
tclAppleHelp" yield?

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcl-mac mailing list
tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
Kevin Walzer
Bernard Desgraupes
Kevin Walzer
Bernard Desgraupes
Kevin Walzer
Jon Guyer
Daniel A. Steffen
Jon Guyer
Kevin Walzer
Jon Guyer
Kevin Walzer

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved