Looks like I was able to fix it by running this:
export LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}Is there any way to fix it so nobody needs to run that command before my program works? Matt. On Oct 7, 8:51 pm, mattschinkel <[email protected]> wrote: > Hey everyone. I would like to try out the antlr3 C examples. I have > downloaded libantlr3c-3.1.4-SNAPSHOT.tar.gz (64-bit CentOS). > > configured with --enable-64bit --libdir=/usr/lib --includedir=/usr/ > include > > as well as the C examples examples-v3.tar.gz. The sample I am trying > is examples-v3/C/C/ > > I am able to compile it ok with the following: > gcc -c -o CLexer.o CLexer.c -I./ > gcc -c -o CParser.o CParser.c -I./ > gcc -I. main.c -o myprog -lantlr3c CLexer.o CParser.o > > but when I go to run myprog, I get the following error: > > ./myprog: error while loading shared libraries: libantlr3c.so: cannot > open shared object file: No such file or directory > > but the file exists in ./usr/lib/libantlr3c.so as it should. > > Seems my problem is quite similar to this post, but the guy wasn't > nice enouf to share how he fixed > it:http://groups.google.com/group/il-antlr-interest/browse_thread/thread... > > Thanks, > Matt. -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
