首页 > Arch无法编译安装plustache因缺乏boost_regex

Arch无法编译安装plustache因缺乏boost_regex

想要安装plustache
但是因为报错/usr/bin/ld: cannot find -lboost_regex-mt无法成功make
已经pacman -S boost

make  all-am
make[1]: Entering directory '/home/*****/Download/plustache'
/bin/sh ./libtool  --tag=CXX   --mode=link g++  -g -O2  -lboost_regex-mt -o libplustache.la -rpath /usr/local/lib src/template.lo src/context.lo  
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/crtbeginS.o  src/.libs/template.o src/.libs/context.o   -lboost_regex-mt -L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../lib/crtn.o  -g -O2   -Wl,-soname -Wl,libplustache.so.0 -o .libs/libplustache.so.0.0.0
/usr/bin/ld: cannot find -lboost_regex-mt
collect2: error: ld returned 1 exit status
Makefile:468: recipe for target 'libplustache.la' failed
make[1]: *** [libplustache.la] Error 1
make[1]: Leaving directory '/home/*****/Download/plustache'
Makefile:371: recipe for target 'all' failed
make: *** [all] Error 2

但是/usr/lib/libboost_regex.so确实存在啊~~~~


-lboost_regex-mt

【热门文章】
【热门文章】