-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed install on Ubuntu 18.0 LTS #44
Comments
same error in Ubuntu 17.04 under Virtual Machine RAPSearch installer Executables are now installed under bin/ |
have you resovled this problem, i have met the same issue. |
I have the same problem on ubuntu 16.04, would you please let me know if there is a solution? I have tried g++-4.8 as well.
|
We run rapsearch2 on Ubuntu 16.04. I can't guarantee anything, but here is the installation code:
|
Thank you very much, it worked. |
I am facing the same problem but I cannot install gcc 4.8 |
to install g++-4.X follow these instructions: |
When I installed after typing ./install, the error returned as below:
RAPSearch installer
rm -f *.o rapsearch prerapsearch
g++ -c -O3 -w HashSearch.cpp -o HashSearch.o -I ./
g++ -c -O3 -w BlastStat.cpp -o BlastStat.o -I ./
g++ -c -O3 -w Seg.cpp -o Seg.o -I ./
g++ -c -O3 -w mergeUnit.cpp -o mergeUnit.o -I ./
g++ -O3 -w -o rapsearch main.cpp HashSearch.o BlastStat.o Seg.o mergeUnit.o -I ./ -L ./ -lboost_serialization -lpthread -lboost_thread -lboost_system -lboost_chrono
HashSearch.o: In function
boost::archive::detail::common_oarchive<boost::archive::binary_oarchive>::vsave(boost::archive::class_name_type const&)': HashSearch.cpp:(.text._ZN5boost7archive6detail15common_oarchiveINS0_15binary_oarchiveEE5vsaveERKNS0_15class_name_typeE[_ZN5boost7archive6detail15common_oarchiveINS0_15binary_oarchiveEE5vsaveERKNS0_15class_name_typeE]+0x59): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits >::save(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'HashSearch.o: In function
boost::archive::detail::oserializer<boost::archive::binary_oarchive, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::save_object_data(boost::archive::detail::basic_oarchive&, void const*) const': HashSearch.cpp:(.text._ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEE16save_object_dataERNS1_14basic_oarchiveEPKv[_ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEE16save_object_dataERNS1_14basic_oarchiveEPKv]+0xcb): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits >::save(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'HashSearch.o: In function
boost::archive::detail::iserializer<boost::archive::binary_iarchive, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const': HashSearch.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveESt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x11c): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits >::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)'HashSearch.o: In function
void CHitUnit::serialize<boost::archive::binary_oarchive>(boost::archive::binary_oarchive&, unsigned int)': HashSearch.cpp:(.text._ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j[_ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j]+0x171): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits >::save(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'HashSearch.cpp:(.text._ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j[_ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j]+0x185): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits<char> >::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' HashSearch.cpp:(.text._ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j[_ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j]+0x19c): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits >::save(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'HashSearch.cpp:(.text._ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j[_ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j]+0x1b3): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits<char> >::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' HashSearch.cpp:(.text._ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j[_ZN8CHitUnit9serializeIN5boost7archive15binary_oarchiveEEEvRT_j]+0x1ce): undefined reference to
boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, std::char_traits >::save(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'mergeUnit.o: In function
boost::archive::detail::iserializer<boost::archive::binary_iarchive, CHitUnit>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const': mergeUnit.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x22f): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits >::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)'mergeUnit.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x23b): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits<char> >::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' mergeUnit.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x24a): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits >::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)'mergeUnit.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x259): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits<char> >::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' mergeUnit.cpp:(.text._ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj[_ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE8CHitUnitE16load_object_dataERNS1_14basic_iarchiveEPvj]+0x268): undefined reference to
boost::archive::basic_binary_iprimitive<boost::archive::binary_iarchive, char, std::char_traits >::load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)'collect2: error: ld returned 1 exit status
Makefile:33: recipe for target 'rapsearch' failed
make: *** [rapsearch] Error 1
mv: cannot stat 'Src/rapsearch': No such file or directory
mv: cannot stat 'Src/prerapsearch': No such file or directory
Executables are now installed under bin/
Then I try to change the boost library to my /usr/lib/x86_64-linux-gnu/
by modifying "Makefile"
LIBS := -L /usr/lib/x86_64-linux-gnu/
There is still error like:
RAPSearch installer
rm -f .o rapsearch prerapsearch
g++ -c -O3 -w HashSearch.cpp -o HashSearch.o -I ./
g++ -c -O3 -w BlastStat.cpp -o BlastStat.o -I ./
g++ -c -O3 -w Seg.cpp -o Seg.o -I ./
g++ -c -O3 -w mergeUnit.cpp -o mergeUnit.o -I ./
g++ -O3 -w -o rapsearch main.cpp HashSearch.o BlastStat.o Seg.o mergeUnit.o -I ./ -L /usr/lib/x86_64-linux-gnu/ -lboost_serialization -lpthread -lboost_thread -lboost_system -lboost_chrono
HashSearch.o: In function
CHashSearch::Search(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<unsigned int, std::allocator<unsigned int> >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)': HashSearch.cpp:(.text+0xd45d): undefined reference to
boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'HashSearch.cpp:(.text+0xd4da): undefined reference to
boost::archive::detail::shared_ptr_helper::shared_ptr_helper()' HashSearch.o: In function
boost::archive::binary_iarchive::~binary_iarchive()':HashSearch.cpp:(.text._ZN5boost7archive15binary_iarchiveD0Ev[_ZN5boost7archive15binary_iarchiveD5Ev]+0x16): undefined reference to
boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()' HashSearch.o: In function
boost::archive::binary_iarchive::~binary_iarchive()':HashSearch.cpp:(.text._ZN5boost7archive15binary_iarchiveD2Ev[_ZN5boost7archive15binary_iarchiveD5Ev]+0x16): undefined reference to
boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()' HashSearch.o: In function
boost::threadpool::detail::pool_core<boost::function0, boost::threadpool::fifo_scheduler, boost::threadpool::static_size, boost::threadpool::resize_controller, boost::threadpool::wait_for_all_tasks>::shutdown()':HashSearch.cpp:(.text._ZN5boost10threadpool6detail9pool_coreINS_9function0IvEENS0_14fifo_schedulerENS0_11static_sizeENS0_17resize_controllerENS0_18wait_for_all_tasksEE8shutdownEv[_ZN5boost10threadpool6detail9pool_coreINS_9function0IvEENS0_14fifo_schedulerENS0_11static_sizeENS0_17resize_controllerENS0_18wait_for_all_tasksEE8shutdownEv]+0x116): undefined reference to
boost::thread::join()' HashSearch.o: In function
boost::threadpool::detail::worker_thread<boost::threadpool::detail::pool_core<boost::function0, boost::threadpool::fifo_scheduler, boost::threadpool::static_size, boost::threadpool::resize_controller, boost::threadpool::wait_for_all_tasks> >::create_and_attach(boost::shared_ptr<boost::threadpool::detail::pool_core<boost::function0, boost::threadpool::fifo_scheduler, boost::threadpool::static_size, boost::threadpool::resize_controller, boost::threadpool::wait_for_all_tasks> > const&)':HashSearch.cpp:(.text._ZN5boost10threadpool6detail13worker_threadINS1_9pool_coreINS_9function0IvEENS0_14fifo_schedulerENS0_11static_sizeENS0_17resize_controllerENS0_18wait_for_all_tasksEEEE17create_and_attachERKNS_10shared_ptrISA_EE[_ZN5boost10threadpool6detail13worker_threadINS1_9pool_coreINS_9function0IvEENS0_14fifo_schedulerENS0_11static_sizeENS0_17resize_controllerENS0_18wait_for_all_tasksEEEE17create_and_attachERKNS_10shared_ptrISA_EE]+0x33f): undefined reference to
boost::thread::start_thread()' mergeUnit.o: In function
CMergeUnit::CMergeUnit(char const)':mergeUnit.cpp:(.text+0x3b6): undefined reference to
boost::archive::detail::shared_ptr_helper::shared_ptr_helper()' mergeUnit.cpp:(.text+0x418): undefined reference to
boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'mergeUnit.o: In function
CMergeUnit::Update(int, std::vector<CHitUnit, std::allocator<CHitUnit> >&)': mergeUnit.cpp:(.text+0x980): undefined reference to
boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'mergeUnit.cpp:(.text+0xac3): undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
collect2: error: ld returned 1 exit status
Makefile:33: recipe for target 'rapsearch' failed
make: *** [rapsearch] Error 1
mv: cannot stat 'Src/rapsearch': No such file or directory
mv: cannot stat 'Src/prerapsearch': No such file or directory
Executables are now installed under bin/
The text was updated successfully, but these errors were encountered: