Errors upon opening terminal on tclsh and module

2.4k Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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.

1
On

I had the following error after assigning the private key and log in in X2GO (Mac os Ventura) and the problem was resolved by installing the tcl in the remote server (Ubuntu 18.04):

Error: Connection failed. /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 /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

Solution: sudo apt install tcl

Make sure log in as root user!