Google CTemplate是一个开源的C++模板引擎,可以生成html文件,今天安装出现一些问题,在此将遇到的问题以及解决方式记录下来。
git clone https://github.com/OlafvdSpek/ctemplate.git
cd ctemplate
./autogen.sh
./configure
make
sudo make install(注意带sudo)
安装ctemplate出现问题 autoreconf: command not found
解决方式:
运行:sudo yum install -y autoconf automake libtool
编写测试程序运行遇到报错:
./mytest: error while loading shared libraries: libctemplate.so.3: cannot open shared object file: No such file or directory
解决方式:
运行:export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/local/lib
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。