Dear Shaw, This is not a serious error, but is annoying. I have installed zeromq, now they are in /usr/local/lib/, and I am compiling mongrel2, meet the following error: ......... cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/tst_tests tests/tst_tests.c build/libm2.a cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/unixy_tests tests/unixy_tests.c build/libm2.a sh ./tests/runtests.sh Running unit tests: ./tests/bstr_tests: error while loading shared libraries: libzmq.so.0: cannot open shared object file: No such file or directory ERROR in test tests/bstr_tests: make: *** [tests] 错误 1 In previous compilation, makefile is right, it can find libzmq, but why in the test, it cann't find libzmq, I think there must be somewhere error in your test code's makefile. My evironment is Ubuntu 10.04, x64. BR. -- Nothing is impossible.
sudo ldconfig maybe? On Tue, Mar 22, 2011 at 5:24 PM, Tang Daogang <daogangtang@gmail.com> wrote: > Dear Shaw, > > This is not a serious error, but is annoying. > > I have installed zeromq, now they are in /usr/local/lib/, and I am > compiling mongrel2, meet the following error: > > ......... > cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/tst_tests > tests/tst_tests.c build/libm2.a > cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/unixy_tests > tests/unixy_tests.c build/libm2.a > sh ./tests/runtests.sh > Running unit tests: > ./tests/bstr_tests: error while loading shared libraries: libzmq.so.0: > cannot open shared object file: No such file or directory > ERROR in test tests/bstr_tests: > make: *** [tests] 错误 1 > > In previous compilation, makefile is right, it can find libzmq, but why in > the test, it cann't find libzmq, I think there must be somewhere error in > your test code's makefile. > > My evironment is Ubuntu 10.04, x64. > > > BR. > -- > Nothing is impossible. > > >
Run euro ldconfig to refresh the linker cache after installing new shared libraries. On Mar 22, 2011 8:24 PM, "Tang Daogang" <daogangtang@gmail.com> wrote: > Dear Shaw, > > This is not a serious error, but is annoying. > > I have installed zeromq, now they are in /usr/local/lib/, and I am compiling > mongrel2, meet the following error: > > ......... > cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/tst_tests > tests/tst_tests.c build/libm2.a > cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/unixy_tests > tests/unixy_tests.c build/libm2.a > sh ./tests/runtests.sh > Running unit tests: > ./tests/bstr_tests: error while loading shared libraries: libzmq.so.0: > cannot open shared object file: No such file or directory > ERROR in test tests/bstr_tests: > make: *** [tests] 错误 1 > > In previous compilation, makefile is right, it can find libzmq, but why in > the test, it cann't find libzmq, I think there must be somewhere error in > your test code's makefile. > > My evironment is Ubuntu 10.04, x64. > > > BR. > -- > Nothing is impossible.
Sorry, sudo not euro. Damn phones. On Mar 22, 2011 8:48 PM, simmons.44@gmail.com wrote: > Run euro ldconfig to refresh the linker cache after installing new shared > libraries. > On Mar 22, 2011 8:24 PM, "Tang Daogang" <daogangtang@gmail.com> wrote: >> Dear Shaw, >> >> This is not a serious error, but is annoying. >> >> I have installed zeromq, now they are in /usr/local/lib/, and I am > compiling >> mongrel2, meet the following error: >> >> ......... >> cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/tst_tests >> tests/tst_tests.c build/libm2.a >> cc -g -O2 -Wall -Isrc -DNDEBUG -lzmq -lsqlite3 -o tests/unixy_tests >> tests/unixy_tests.c build/libm2.a >> sh ./tests/runtests.sh >> Running unit tests: >> ./tests/bstr_tests: error while loading shared libraries: libzmq.so.0: >> cannot open shared object file: No such file or directory >> ERROR in test tests/bstr_tests: >> make: *** [tests] 错误 1 >> >> In previous compilation, makefile is right, it can find libzmq, but why in >> the test, it cann't find libzmq, I think there must be somewhere error in >> your test code's makefile. >> >> My evironment is Ubuntu 10.04, x64. >> >> >> BR. >> -- >> Nothing is impossible.