tclmicrocontrollersimulatorlinux-mint8051

`mcu8051ide` on Linux mint 19 not working or opening


mcu8051ide on Linux mint 19 not working or opening, all dependencies are installed but when I check libraries, itcl is not present is the error.

I am confused what to do?

Link


Solution

  • I installed Linux mint 19 in a virtual machine to check out what's going on.

    The Itcl 3.4 pkgIndex.tcl file has the following contents:

    # Tcl package index file, version 1.0
    
    if {![package vsatisfies [package provide Tcl] 8.6]} {return}
    package ifneeded Itcl 3.4 [list load [file join /usr lib x86_64-linux-gnu "libitcl3.4.so.1"] Itcl]
    

    This means that Itcl will only be available with Tcl 8.6. However, mcu8051ide specifically starts tclsh8.5. That's the reason it can't find Itcl.

    The mcu8051ide command is a very short shell script that only starts tclsh8.5 and passes /usr/share/mcu8051ide/lib/main.tcl as the script to run. If instead you run that script with tclsh (which is a symbolic link that points to tclsh8.6), it seems to work at first glance.

    So, you can either modify the original startup script, or put a modified copy in your own bin directory.