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
Last modification:March 6th, 2018 at 02:49 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment