When starting insight, it immediately terminates with the message: ide_initialize_paths failed: Can't find the GUI Tcl library in the following directories: ...
You might need to re-login if you are running it just after compiling. The reason being that it installs a file /etc/env.d/99insight, settings from which need to propagate into your session. Does the following fix your problem? export LD_LIBRARY_PATH=/opt/insight/lib /opt/insight/bin/insight
Hmmm, strange things are going on here: I made a "su -" to myself to make sure to have my complete login environment.I checked the env: PATH contained /opt/insight/bin, MANPATH contained /opt/insight/man, but LDPATH did not exist at all, and neither did LD_LIBRARY_PATH. After adding LD_LIBRARY_PATH manually as you suggested, insight no longer terminates with the library error. However, executing "insight" brings up plain old gdb, in *text* mode! (same for executing "gdb"). On my other machine (not gentoo, gdb 5.2), "gdb" comes up in graphic (insight) mode by default?
By the way, I don't like the LDPATH / LD_LIBRARY_PATH idea: As far as I know, if any of these variables are set, the dynamic loader checks all these directories for *any* shared lib to load *before* consulting ld.so.cache. Especially on a laptop like mine with a slow disk, this introduces a performance loss when starting shlib-intensive applications like KDE or OpenOffice.
The real issue here is that the version of insight available is terribly outdated. There are many fixes, not to mention being based on the latest gdb, in the newest insight. You should see a bug report filed earlier by me which points out this fact.
to run insight.. DISPLAY needs to be set.. I'm attaching a fully working ebuild.
Created attachment 3562 [details] working ebuild for insight 5.2.1
The attached ebuild works fine for me even for 5.1.1: * No build problems. * insight comes up in graphical mode and seems to work at the first glance. Please commit the ebuild, preferably for 5.2.1.
Okay, looking good. The ebuild is committed to the portage tree now. Thanks!
This is happening again with insight-6.8. Please reopen!