librelist archives

« back to archive

[Mongrel2] Mongrel2 testing error while compilation

[Mongrel2] Mongrel2 testing error while compilation

From:
Tang Daogang
Date:
2011-03-22 @ 09:24
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.

Re: [mongrel2] [Mongrel2] Mongrel2 testing error while compilation

From:
Alfred Tascon
Date:
2011-03-22 @ 10:07
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.
>
>
>

Re: [mongrel2] [Mongrel2] Mongrel2 testing error while compilation

From:
joshua simmons
Date:
2011-03-22 @ 09:49
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.

Re: [mongrel2] [Mongrel2] Mongrel2 testing error while compilation

From:
joshua simmons
Date:
2011-03-22 @ 09:50
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.