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

1 Answer 1

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
    
9
  • Is there a command line way to download the source from core.tcl.tk/tcllib/,am using Oracle linux server and looking for a command line way?please advise Commented Aug 16, 2018 at 16:31
  • Did you try yum install tcllib? (I don't know what package manager that distro uses) Commented Aug 16, 2018 at 17:27
  • 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 Commented Aug 16, 2018 at 17:57
  • So, tcllib is not available in your package repositories. Install it manually Commented Aug 16, 2018 at 18:10
  • 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. Commented Aug 16, 2018 at 18:12

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.