执行CUnit测试出错

est/test_fifo.test: error while loading shared libraries: libcunit.so.1: cannot open shared object file: No such file or directory
Makefile:70: recipe for target 'test' failed
make[1]: *** [test] Error 127
rm test/test_lexer_parser.o test/test_parser.o
make[1]: Leaving directory '/usr/src/scpi-parser-master/libscpi'
Makefile:11: recipe for target 'test' failed
make: *** [test] Error 2

makefile里面加了下面的还是出错。

-L /usr/src/CUnit/lib
-lcunit

最后解决:

export LD_LIBRARY_PATH=/usr/src/CUnit/lib

原文地址:https://www.cnblogs.com/MrZhang1/p/6522980.html