mercredi 22 mai 2019

C++ boost library on AWS debian-stretch 9 VS local ubuntu 16.04

I tried to run a c++ exe file on my local machine (ubuntu 16.04) with boost lib version 1.58 and it runs successfully but on aws ec2 (debian-stretch 9) with boost lib version 1.62 there's an error occurred

error while loading shared libraries: libboost_program_options.so.1.58.0: cannot open shared object file: No such file or directory

in the CmakeLists.txt file : find_package(Boost 1.58 REQUIRED COMPONENTS date_time filesystem system iostreams program_options)

when i run this CmakeLists.txt file on aws the exe file runs successfully but when i run it on local machine then copy it to the aws instance the error occurred.

Aucun commentaire:

Enregistrer un commentaire