解决方案: the cause is the google tests is looking for the generic regex.h but cmake used the regex.h from boost. and boost is not linked. I'm not sure how to fix it properly but renaming /usr/local/include/boost/regex.h temporarily to something else fix…
1. 说明 使用clang++10.1编译报错: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crt1.o: in function `_start': (.text+0x24): undefined reference to `main' clang-10: error: linker command failed with exit code 1 (use -v to see invocatio…
编译PHP 报错:node.c: In function dom_canonicalization /opt/php-5.2.17/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type 是libxml导致的问题,可以下载补丁patch一下. # curl -o php-5.x.x.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4…
偶然重新编译了一下后台程序,发现编译过程报错无法连接数据库.但通过sqlplus登录数据库是正常的.后台程序改动中也做了详细的分析,没有改动相关数据库的参数和配置. 最后通过浏览器查看了很多相关问题的解决办法,无疑间发现有人说修改一下数据库密码即可.抱着试一试的心态,再次登录数据库的时候,发现一行字:数据库密码即将到期... 然后立马重置了数据库密码,使用管理员权限执行:alter user username identified by password; 再次编译后台程序,一切正常!这个…