Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

pkgIndex.tcl for all of my C extensions?

瀏覽次數:36 次
跳到第一則未讀訊息

halfm...@gmail.com

未讀,
2018年1月24日 晚上10:22:392018/1/24
收件者:
Hi Everyone

Sorry for the stupid question. I have been working through the global installation of a simple C extension. I have it working now.

pkgIndex.tcl is installed at /usr/local/lib/tcl8.6 on my linux machine.

I have this:

package ifneeded "Hello" 1.0 \
[list load [file join $dir libhello[info sharedlibextension]]]

Can I now simply append more "package ifneeded" statement to this one file or is there a naming convention that will allow me to create more of these files for additional extension ?

Thanks

Arjen Markus

未讀,
2018年1月25日 清晨5:40:032018/1/25
收件者:
The simple answer is: yes.

There are quite a few examples in fact in Tcllib.

Regards,

Arjen

halfm...@gmail.com

未讀,
2018年1月25日 上午9:33:282018/1/25
收件者:
thanks Arjen !

Don Porter

未讀,
2018年1月25日 上午11:04:382018/1/25
收件者:
It is best that each version of each [package require]-able package has
its own pkgIndex.tcl file. This organization is what permits each
package to be installed and uninstalled independently.

The "naming convention" is that each installed version of each Tcl
package goes into its own directory, at least among those packages
using the pkgIndex.tcl installation scheme. The convention most likely
to succeed is to give that directory a name created by combining the
package name and the version number installed in it.

--
| Don Porter Applied and Computational Mathematics Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

halfm...@gmail.com

未讀,
2018年1月25日 下午3:21:502018/1/25
收件者:
Hi Don

This is easy too, I am all set. Thanks very much
0 則新訊息