在ubuntu系统上安装protobuf-3.1.0出现错误
libtool: install: error: cannot install `libprotoc.la' to a directory not ending in /home/XXXX
想来也没做什么事情啊,上网查了下,说是之前用./configure安装过,导致安装目录不太干净,但是我真的没有安装过啊。
引:http://lxsym.blog.51cto.com/1364623/739509/
想了半天,后来用history命令查找历史命令才发现在安装时先是用了./configure --prefix=/home/xxxxxx1配置了,然后make了,后发现目录不对,又使用./configure --prefix=/home/xxxxxx2(第二次使用的是编译目录,这次才是不对的。。。)重新配置了下,重新make了下,make install错误,怀疑没有权限,加sudo仍没有用(知识的匮乏啊)。
后来狠心没有clean,直接全删了,重新复制了空的protobuf-3.1.0,重新 configure 、make、make install,解决了。
原来问题在于我install的目录就是编译目录