LEN

用protobuf编译时报错:protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory 的解决方法
export LD_LIBRARY_PATH=/usr/local/lib [root@ben ~]#prot...
扫描右侧二维码阅读全文
06
2018/03

用protobuf编译时报错:protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory 的解决方法

export LD_LIBRARY_PATH=/usr/local/lib

[root@ben ~]#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@ben ~]#export LD_LIBRARY_PATH=/usr/local/lib
[root@ben ~]#protoc --php_out=/root/test_protobuf/ test.proto

[root@ben ~]#cd /root/test_protobuf/
[root@ben 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
最后修改:2019 年 11 月 04 日 11 : 28 PM
如果觉得我的文章对你有用,请随意赞赏

发表评论