/usr/bin/ld: cannot find -lboost_system-mt-s /usr/bin/ld: cannot find -lboost_filesystem-mt-s /usr/bin/ld: cannot find -lboost_program_options-mt-s /usr/bin/ld: cannot find -lboost_thread-mt-s collect2: error: ld returned 1 exit status make: *** [cag

cagecoin linux compile:


sudo apt-get install qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev \
        libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev \
        libssl-dev libdb++-dev libminiupnpc-dev

Solution:

 sed -i s/"BOOST_LIB_SUFFIX=-mt-s"/"#BOOST_LIB_SUFFIX=-mt-s"/ cagecoin-qt.pro
 



qmake
make

 -L/home/ubuntu/build/openssl-1.0.1g -lssl -lcrypto -ldb_cxx -lboost_system-mt-s -lboost_filesystem-mt-s -lboost_program_options-mt-s -lboost_thread-mt-s -lQtGui -lQtCore -lpthread
/usr/bin/ld: cannot find -lboost_system-mt-s
/usr/bin/ld: cannot find -lboost_filesystem-mt-s
/usr/bin/ld: cannot find -lboost_program_options-mt-s
/usr/bin/ld: cannot find -lboost_thread-mt-s
collect2: error: ld returned 1 exit status
make: *** [cagecoin-qt] Error 1

#troubleshoot
 ld -lboost_system-mt-s --verbose



libboost-filesystem-dev
libboost-system-dev
libboost-program-options-dev
libboost-thread-dev
attempt to open /usr/x86_64-linux-gnu/lib64/libboost_system-mt-s.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libboost_system-mt-s.a failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libboost_system-mt-s.so failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libboost_system-mt-s.a failed
attempt to open //usr/local/lib64/libboost_system-mt-s.so failed
attempt to open //usr/local/lib64/libboost_system-mt-s.a failed
attempt to open //lib/x86_64-linux-gnu/libboost_system-mt-s.so failed
attempt to open //lib/x86_64-linux-gnu/libboost_system-mt-s.a failed
attempt to open //lib64/libboost_system-mt-s.so failed
attempt to open //lib64/libboost_system-mt-s.a failed
attempt to open //usr/lib/x86_64-linux-gnu/libboost_system-mt-s.so failed
attempt to open //usr/lib/x86_64-linux-gnu/libboost_system-mt-s.a failed
attempt to open //usr/lib64/libboost_system-mt-s.so failed
attempt to open //usr/lib64/libboost_system-mt-s.a failed
attempt to open //usr/local/lib/libboost_system-mt-s.so failed
attempt to open //usr/local/lib/libboost_system-mt-s.a failed
attempt to open //lib/libboost_system-mt-s.so failed
attempt to open //lib/libboost_system-mt-s.a failed
attempt to open //usr/lib/libboost_system-mt-s.so failed
attempt to open //usr/lib/libboost_system-mt-s.a failed
ld: cannot find -lboost_system-mt-s



sudo apt-get install qt4-default qt4-qmake libqt4-dev build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libdb++-dev libssl-dev libminiupnpc-dev libminiupnpc8
 


Tags:

usr, bin, ld, lboost_system, mt, lboost_filesystem, lboost_program_options, lboost_thread, cagcagecoin, linux, compile, sudo, apt, install, qt, qmake, libqt, dev, essential, libboost, filesystem, libssl, libdb, libminiupnpc, sed, quot, boost_lib_suffix, cagecoin, ubuntu, openssl, lssl, lcrypto, ldb_cxx, lqtgui, lqtcore, lpthread, troubleshoot, verbose, _, gnu, lib, libboost_system, default,

Latest Articles

  • scp: ambiguous target error and solution
  • VirtualBox How To Add iSCSI Storage using VBoxManage
  • iSCSI on Centos 7 Configuration and Setup Guide for Initiator and Target
  • Python and BeautifulSoup4's BS4's Decompose Method To Remove Unwanted Inner Tags
  • httpd AH00534: httpd: Configuration error: No MPM loaded. solution
  • bash script to remove modules from httpd.conf that are not actually installed
  • bash scripting how to create a function
  • Centos 7 PHP MySQL Not Working Solution
  • Bash How To Cut or Split Natively And Get The LAST Field
  • Bash Script How To Manipulate Text/Strings By Searchig and Replacing Natively
  • How Does Cisco CUCM (Cisco Unified Communication Manager) Work?
  • What DNS Options Does Active Directory Offer in Windows Server 2008,2012,2016 ?
  • syntax error, unexpected T_SL in PHP Solution
  • grep regular expression match number range between specific numbers
  • bash how to print out lines of text within a range from the first occurrence
  • bash script how to to check LAN computers for open ports
  • MySQL Using mytop Debug Source of High IO and Slow Performance
  • How To Mathematically Convert and Calculate Binary Value To Decimal Value
  • systemd management using systemctl and journalctl to check systemd logs
  • css how to format code in the code tag