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

user3682248
  • 103
  • 2
  • 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 – Vomit IT - Chunky Mess Style Aug 16 '18 at 03:28

1 Answers1

1

You could:

  • download the source from https://core.tcl.tk/tcllib/
  • 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
    
glenn jackman
  • 25,463
  • 6
  • 46
  • 69