Search code examples
ubuntuterminaltcltclsh

Errors upon opening terminal on tclsh and module


I am working on Ubuntu 18.04.1 LTS, kernel 4.15.0-34-generic. I am a fairly new user and upon installing a bunch of software (that I've lost track of, unfortunately) for my new project, I suddenly got these two lines appearing every time I open the terminal:

/usr/share/modules/init/bash: line 36: /usr/bin/tclsh: No such file or directory
/usr/share/modules/init/bash: line 60: export: module: not a function`

I can ignore them and continue my work normally, or so it seems, but there's obviously something wrong. I spent the last few hours trying to wrap my head around this, but didn't manage to make them go away.

I think this is related to me installing environmental modules, but I don't remember what I might have done wrong, so it is difficult to trace back. Does anyone have any advice?


Solution

  • All I needed to do in the was write

    sudo apt install tcl
    

    For whatever reason, I managed to forget to type that with everything I was doing. Thanks to glenn jackman.