RTimothyEdwards / magic

Magic VLSI Layout Tool
Other
447 stars 100 forks source link

Couldn't load file: /usr/local/lib/magic/tcl/tclmagic.so #308

Closed warriorjacq9 closed 1 month ago

warriorjacq9 commented 1 month ago

I installed Magic version 8.3.481 from source in WSL (ubuntu 20.04 focal). When running Magic, it gives the error error in slave eval: couldn't load file "/usr/local/lib/magic/tcl/tclmagic.so": /usr/local/lib/magic/tcl/tclmagic.so: undefined symbol: history_length. This did not happen when I installed Magic from the default repository using apt.

Full log:

loading history file ... 0 events added
error in slave eval:
couldn't load file "/usr/local/lib/magic/tcl/tclmagic.so": /usr/local/lib/magic/tcl/tclmagic.so: undefined symbol: history_length
Main console display active (Tcl8.6.10 / Tk8.6.10)
(magic-8.3.481) 1 % 
warriorjacq9 commented 1 month ago

Found the issue: I hadn't installed libcairo2. For others with this issue, here's what I did

~$ sudo apt install libcairo2-dev
~$ cd magic-8.3.481
~/magic-8.3.481$ make clean && make
~/magic-8.3.481$ sudo make install