首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

protobuf装配后出现libprotobuf.so.6 not found after installation

2012-11-06 
protobuf安装后出现libprotobuf.so.6 not found after installationPlease follow the instructions in RE

protobuf安装后出现libprotobuf.so.6 not found after installation
Please follow the instructions in README.txt:

** Hint on install location **

  By default, the package will be installed to /usr/local.  However,
  on many platforms, /usr/local/lib is not part of LD_LIBRARY_PATH.
  You can add it, but it may be easier to just install to /usr
  instead.  To do this, invoke configure as follows:

    ./configure --prefix=/usr

  If you already built the package with a different prefix, make sure
  to run "make clean" before building again.

** 翻译 translate **

  默认情况下,包会被安装在/usr/local路径下。但是,在某些系统平台上(如Ubuntu 11),/usr/local/lib路径并不包含在LD_LIBRARY_PATH中。你可以手动添加,但也可以很方便的通过安装到/usr路径下,调用configure命令参数如下

    ./configure --prefix=/usr

  如果你的包已经编译过,确保先运行"make clean"再重新编译。

reference:http://code.google.com/p/protobuf/issues/detail?id=213

热点排行