Karp 的技术博客

export LD_LIBRARY_PATH=/usr/local/lib

[root@xxx ~]#protoc --php_out=/root/test_protobuf/ test.proto
protoc: error while loading shared libraries: libprotobuf.so.15: cannot open shared object file: No such file or directory
[root@xxx ~]#export LD_LIBRARY_PATH=/usr/local/lib
[root@xxx ~]#protoc --php_out=/root/test_protobuf/ test.proto
[root@xxx ~]#cd /root/test_protobuf/
[root@xxx test_protobuf]#ll
total 16
-rw-r--r-- 1 root root 1193 Mar  6 14:47 AddressBook.php
drwxr-xr-x 2 root root 4096 Mar  6 14:47 GPBMetadata
-rw-r--r-- 1 root root 3694 Mar  6 14:47 Person.php
-rw-r--r-- 1 root root 1866 Mar  6 14:47 PhoneNumber.php

php

版权属于:karp
作品采用:本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
更新于: 2024年10月17日 09:02
2

目录

来自 《用protobuf编译时报错:protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory 的解决方法》
774 文章数
0 评论量
9 分类数
779 页面数
已在风雨中度过 9年280天12小时10分