Installing TclCurl
Windows
After decompressing the self extracting file you downloaded, double click on the 'setup.tcl' file and TclCurl
should install itself.
Unix
If you download the tarball to compile it yourself, you only have to type:
./configure
make
make install
Troubleshooting
If you are running Red Hat or Fedora and you are compiling from source,
make sure the directory '/usr/local/lib' is listed in '/etc/ld.so.conf',
if it isn't add it before installing cURL.
If the configure script doesn't detect Tcl even though it is there, it
is probably because there is no 'tclConfig.sh' file, maybe you need
to install a 'tcl-devel' package or maybe it would be a good idea
to download Tcl/Tk 8.3.3, which has just been released, and install that.
In any case you can tell the configure script where to find Tcl:
./configure --with-tcl=/usr/local/bin -with-tclinclude=/usr/local/include
make
make install
Depending on where it is install the 'configure' script may also have trouble
finding libcurl, you can also tell the script where to find it:
./configure --with-curlprefix=/path_where_curl_is/
make
make install
For details type:
$ ./configure --help
It may happen that when doing a 'package require TclCurl' Tcl tells
you it can't find it, for some reason Tcl, as compiled for some distributions
like Red Hat and Mandrake, doesn't look for extensions in '/usr/local/lib',
there are three solutions:
- Install the newest Tcl release, it will go into '/usr/local' itself and the problem
dissapears.
- Before doing the package require you can add '/usr/local/lib' to the directories
to search:
lappend auto_path /usr/local/lib/
- Configure TclCurl indicating the directory where Tcl is, something like
./configure --prefix /usr
This problem should be solved since 0.9, if it isn't let me know.
If you have any trouble installing the extension, please let me know, I would
also be very grateful for any reports of success or failure in installing TclCurl
in different platforms.
Andrés García
|