From: David E. <de...@us...> - 2006-12-29 07:38:43
|
Vince Coen wrote: > I Have now installed tc .63 but getting a lot of errors. > Can't run the test_suite without a lot of errors. > Ditto when compiling hello world. > Can someone help? > ... > When running ./hello > > It gives me: > > ./hello: error while loading shared libraries: > libhtcobol.so.0: cannot open > shared object file: No such file or directory This seams to be a very common problem for some reason. The linker needs to locate the RT shared library 'libhtcobol.so.0'. The TC configure will install to a prefix='/usr/local' by default, so the shared library 'libhtcobol.so.0' should be located in the 'usr/local/lib' directory. Unfortunatly, some of the distributions do not use the 'usr/local ...' directories, thus the linker is not set up to search that path. So you can you can do either of the following: 1) Set the 'LD_LIBRARY_PATH' enviroment variable (bash: export LD_LIBRARY_PATH=usr/local/lib), which is a temporary solution. 2) Use the 'ldconf' command to add the path to the linker search path. 3) Configure TC using the `--prefix=/usr' option, then compile and install it. > I need to solve this first before attempting the > test suite again as most of > the test produce similar to this: > ... The test suite on version 0.63 is set up to expect to find the compiler, RTL and resouce files in the source code sub-directories above the 'test_suite' directory (i.e. ../compiler, ../lib, etc.). So it is best to just configure and compiler TC, then run the test suite. Otherwise, modifications to the perl script are required. Hint: Before you run the test suite, remove the RT shared library (and links) or compile the RTL a static library only. Hope this helps. |