1、卸载cscope
# dpkg --list
# sudo apt-get remove cscope
2、编译安装
2.1、下载地址:
2.2、索引软链接解决方法
解压后修改:cscope-15.9/src/dir.c
static BOOL
accessible_file(char
*file){
把: if(lstat(file, &stats) == 0 && S_ISREG(stats.st_mode))
修改为: if (stat(file, &stats) == 0 && S_ISREG(stats.st_mode))
}
原因如下: man stat
stat() stats the file pointed to by path and fills in buf.
lstat()
is identical to stat(), except that if path is a symbolic link, then
the link itself is stat-ed, not the file that it refers to.
2.3、.编译安装
# cd cscope-15.9
# ./configure --prefix=/usr
# make -j8
# make install 2
3、索引建立
$ cscope-indexer -r
阅读(1329) | 评论(0) | 转发(0) |