想要安装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确实存在啊~~~~
AUR 里有 plustache, 直接 yaourt -S plustache
就好了。
报错的有原因是因为需要链接的是 boost_regex
不是 boost_regex-mt
,看PKGBUILD。
-lboost_regex-mt