help: nsf/gothic question

123 views
Skip to first unread message

Mandolyte

unread,
Aug 24, 2013, 3:03:15 PM8/24/13
to golan...@googlegroups.com
After working thru installing TCL/TK 8.6 and tweaking the interpreter.go to point to the right include directory, it gets to the load of the TCL/TK libraries and fails:
/usr/bin/ld: cannot find -ltcl8.6
/usr/bin/ld: cannot find -ltk8.6
collect2: error: ld returned 1 exit status

But:
$ ls $LD_LIBRARY_PATH/*8.6.so
/opt/tcl8.6/lib/libtcl8.6.so  /opt/tcl8.6/lib/libtk8.6.so

I expected the LD_LIBRARY_PATH variable to locate them, but I seem to have something wrong.

What do I need to do? 

Thanks!
Cecil

Ian Lance Taylor

unread,
Aug 24, 2013, 3:42:19 PM8/24/13
to Mandolyte, golang-nuts
LD_LIBRARY_PATH affects the dynamic linker (ld.so), but you are
getting an error from the program linker (ld). Try setting the
environment variable LIBRARY_PATH.

Ian

Mandolyte

unread,
Aug 24, 2013, 3:51:09 PM8/24/13
to golan...@googlegroups.com, Mandolyte
That did it! thanks. So if it is using the .a libs, then the executable will have everything in it... should have guessed that.

thanks for the quick response.
Reply all
Reply to author
Forward
0 new messages