0
I am running into error "package require cmdline"
while making a build and need this package, how can I install this package?
I Looked at How to install a Tcl package? which doesnt exactly tell how to do that
0
I am running into error "package require cmdline"
while making a build and need this package, how can I install this package?
I Looked at How to install a Tcl package? which doesnt exactly tell how to do that
1
You could:
install it into your home directory:
./configure --prefix=$HOME/tcl
make install
when you want to use one of the tcllib packages:
set auto_path [linsert $auto_path 0 $env(HOME)/tcl/lib]
package require cmdline
Is there a command line way to download the source from https://core.tcl.tk/tcllib/,am using Oracle linux server and looking for a command line way?please advise
– user3682248 – 2018-08-16T16:31:58.293Did you try yum install tcllib
? (I don't know what package manager that distro uses) – glenn jackman – 2018-08-16T17:27:41.493
I tried but get the error Loaded plugins: security Setting up Install Process public_ol6_UEKR3_latest | 1.2 kB 00:00 public_ol6_latest | 1.4 kB 00:00 No package tcllib available. Error: Nothing to do
– user3682248 – 2018-08-16T17:57:22.180
So, tcllib is not available in your package repositories. Install it manually – glenn jackman – 2018-08-16T18:10:57.010
Oh, wait, a command line way to download the sources? Sure, copy the download link from core.tcl.tk and use curl
or wget
to download it. – glenn jackman – 2018-08-16T18:12:00.143
you mean something like wget https://core.tcl.tk/tcllib/wiki?name=Downloads
– user3682248 – 2018-08-16T18:13:26.623
I downloaded as wget https://core.tcl.tk/tcllib/uv/tcllib-1.19.zip
– user3682248 – 2018-08-16T18:46:24.760
and then tried sudo yum install tcllib-1.19.zip
,still get the same error No package tcllib-1.19.zip available
– user3682248 – 2018-08-16T18:50:51.727
You need to unzip and read the INSTALL file, where you will find instructions like I wrote in my answer. – glenn jackman – 2018-08-16T18:52:13.207
Check out: https://stackoverflow.com/questions/24341141/package-for-parsing-argument-in-tcl and http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/cmdline/cmdline.html to see if that gets you going in the right direction to help you resolve. If not, look over these answers and comments within https://stackoverflow.com/search?q=package+require+cmdline
– Pimp Juice IT – 2018-08-16T03:28:35.313