Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

[lindex $auto_path 0]


I have zero knowledge of Tcl. I have come across it in trying to
install sqlite.  I don't have access to /usr/local on my machine, so I
used the configure option to get sqlite to install to a directory to
which I have access. It did that, except for some file(s) related to
Tcl that it wants to put in /usr/local/lib/tcl8.4.

I thought I could get it to put it into a directory that I have write
access to, by downloading and installing my own copy of tcl8.4. I did
that using the Solaris version you can get from ActiveState.

But the sqlite install is still trying to write to /usr/local/lib/
tcl8.4 even though I have it now execute my version of Tcl when
executing the Tcl script "tclinstaller.tcl". The Tcl script that
appears to determine where to put its files based on an auto_path
value:

set LIBDIR $env(DESTDIR)[lindex $auto_path 0]      # DESTDIR does not
appear to be set (gets an error when

# I tried to puts it.

puts "LIBDIR = $LIBDIR"    # gives LIBDIR = /usr/local/lib/tcl8.4

I found documentation here:
http://wiki.tcl.tk/1628

which mentions init.tcl with regard to auto_path. I don't know if I
should be editing that to get the right value, but I am confused as to
why I need to, not to mention how to modify it.

Simon

* Simon <resmi@yahoo.com>
| I have zero knowledge of Tcl. I have come across it in trying to
| install sqlite.  I don't have access to /usr/local on my machine, so I
| used the configure option to get sqlite to install to a directory to
| which I have access. It did that, except for some file(s) related to
| Tcl that it wants to put in /usr/local/lib/tcl8.4.

Run sqlite's "configure --help" and check what it offers in addition
to --prefix.  Sometimes it is necessary to add separate --somedir
options for additional packages (--datadir for example).

Note: I don't know the sqlite installation procedure, but what you
describe should IMHO be solved on the configure/install level rather
than fiddling with a separate TCL installation.

R'

On May 31, 11:43 pm, Simon <resmi@yahoo.com> wrote:

> I have zero knowledge of Tcl. I have come across it in trying to
> install sqlite.  I don't have access to /usr/local on my machine, so I
> used the configure option to get sqlite to install to a directory to
> which I have access. It did that, except for some file(s) related to
> Tcl that it wants to put in /usr/local/lib/tcl8.4.

1. I suspect that there is a place on the sqlite web site to submit
bug reports.
2. What exactly did you download, from what site? This info will help
us try to match your results.
3. Can you provide us with the exact configure command you use, as
well as the final error message you see?
On Jun 1, 4:25 am, "Larry W. Virden" <lvir@gmail.com> wrote:

> On May 31, 11:43 pm, Simon <resmi@yahoo.com> wrote:

> > I have zero knowledge of Tcl. I have come across it in trying to
> > install sqlite.  I don't have access to /usr/local on my machine, so I
> > used the configure option to get sqlite to install to a directory to
> > which I have access. It did that, except for some file(s) related to
> > Tcl that it wants to put in /usr/local/lib/tcl8.4.

> 1. I suspect that there is a place on the sqlite web site to submit
> bug reports.

I posted this to their mail list. They suggested I use the --disable-
tcl
option or to download Tcl and put it in a writable directory.

> 2. What exactly did you download, from what site? This info will help
> us try to match your results.

I downloaded sqlite-3.3.17.tar.gz from http://www.sqlite.org and
ActiveTcl8.4.14.0.272572-solaris-sparc.tar.gz from http://www.activestate.com

> 3. Can you provide us with the exact configure command you use, as
> well as the final error message you see?

configure --prefix=/ptmp/usr/local

_____________________________________________

/ptmp/bld/> make install

 tclsh ../sqlite-3.3.17/tclinstaller.tcl 3.3

 can't create directory "/usr/local/lib/tcl8.4/sqlite3": read-only
file
 system

     while executing

 "file mkdir $LIBDIR/sqlite3"

     (file "../sqlite-3.3.17/tclinstaller.tcl" line 15)

 *** Error code 1

 make: Fatal error: Command failed for target `tcl_install'

On Jun 1, 1:46 am, Ralf Fassel <ralf@gmx.de> wrote:

It has
  --disable-tcl           do not build TCL extension
  --with-tcl=DIR          directory containing tcl configuration
                          (tclConfig.sh)

I tried to configure with --with-tcl=/ActiveTcl=/ptmp/ActiveTcl-8.4/
lib

and I still got

/ptmp/sqlite-3.3.17/> make install
tclsh ./tclinstaller.tcl 3.3
can't create directory "/usr/local/lib/tcl8.4/sqlite3": read-only file
system
    while executing
"file mkdir $LIBDIR/sqlite3"
    (file "./tclinstaller.tcl" line 15)
*** Error code 1
make: Fatal error: Command failed for target `tcl_install'

Do you know how to change the results of [lindex $auto_path 0] ?

On Jun 1, 7:30 am, Simon <resmi@yahoo.com> wrote:

That should have been:
I tried to configure with --with-tcl=/ptmp/ActiveTcl-8.4/lib

> Do you know how to change the results of [lindex $auto_path 0] ?

in show.tcl I have
puts $auto_path

from the system Tcl and my Tcl I get

pitcairn/ptmp/> /usr/local/bin/tclsh show.tcl
/usr/local/lib/tcl8.4 /usr/local/lib

pitcairn/ptmp/> /ptmp/usr/local/bin/tclsh show.tcl
/usr/local/lib/tcl8.4 /usr/local/lib /ptmp/usr/local/lib

On May 31, 11:43 pm, Simon <resmi@yahoo.com> wrote:

> I don't have access to /usr/local on my machine, so I
> used the configure option to get sqlite to install to a directory to
> which I have access. It did that, except for some file(s) related to
> Tcl that it wants to put in /usr/local/lib/tcl8.4.

Here's what you have to do. Before running the make install, create a
shell environment variable called $DESTDIR. With that variable set, it
looks, to me, as if  sqllite will install itself into that directory
tree. Then you have to lappend the value of DESTDIR to the auto_path
variable in your tcl scripts that need to use sqlite.
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc