[
https://issues.apache.org/jira/browse/THRIFT-5311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17231916#comment-17231916
]
Zezeng Wang commented on THRIFT-5311:
-------------------------------------
Hi~It look like that the cause is that libboost_unit_test_framework.a cannot be
found.
I found two ways maybe can solve this problem:
1、use comand to found the path of libboost_unit_test_framework.a first
{code:bash}
find / -name libboost_unit_test_framework.a{code}
for example:
It find the path is
/usr/local/lib/libbooset_unit_test_framework.a
can do like this
{code:bash}
sudo ln -s /usr/local/lib/libboost_unit_test_framework.a
/usr/lib64/libboost_unit_test_framework.a
{code}
and then
{code:bash}
make
{code}
2、Compile the source code locally and install the Boost.
{code:bash}
wget
http://sourceforge.net/projects/boost/files/boost/1.65.0/boost_1_65_0.tar.gz
tar -xvf boost_1_65_0.tar.gz
cd boost_1_65_0
./bootstrap.sh
./b2 install
{code}
and then
{code:bash}
make
{code}
> g++: error: /libboost_unit_test_framework.a: No such file or directory
> ----------------------------------------------------------------------
>
> Key: THRIFT-5311
> URL: https://issues.apache.org/jira/browse/THRIFT-5311
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.13.0
> Environment:
> ls /usr/lib/x86_64-linux-gnu/libboost_unit*
> /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.a
> /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so.1.71.0
> /usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so
>
> $ ./configure --without-java --without-mono --with-boost=/usr/lib
> ## --------- ##
> ## Platform. ##
> ## --------- ##
> hostname = VirtualBox
> uname -m = x86_64
> uname -r = 5.4.0-52-generic
> uname -s = Linux
> uname -v = #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020
> /usr/bin/uname -p = x86_64
> /bin/uname -X = unknown
> Reporter: Balachandar Rajarathinam
> Priority: Major
>
> libtool: link: g++ -std=c++11 -Wall -Wextra -pedantic -g -O2 -o
> .libs/processor_test processor/ProcessorTest.o processor/EventLog.o
> processor/ServerThread.o ./.libs/libprocessortest.a
> ../../../lib/cpp/.libs/libthrift.so ../../../lib/cpp/.libs/libthriftnb.so
> /libboost_unit_test_framework.a -levent -lrt -lpthread
> g++: error: /libboost_unit_test_framework.a: No such file or directory
> make[5]: *** [Makefile:1322: processor_test] Error 1
--
This message was sent by Atlassian Jira
(v8.3.4#803005)