This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
编译binding/lua53时报错 #154
Comments
|
安装gmp
安装pbc (需要先安装gmp)
修改 3rd/pbc/binding/lua53/Makefile (直接复制替换即可)
make编译 & 拷贝文件
|
另外我发现,brew install pbc 这种方式安装 pbc, 依然会报:ld: library not found for -lpbc 这个错误。 所以应该是mac brew install 姿势不对 找不到pbc. 只有下载源码编译安装才能找到 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
CentOS 8.2
gcc -O2 -fPIC -Wall -shared -o protobuf.so -I../.. -I/usr/local/include -L../../build pbc-lua53.c -lpbc
/usr/bin/ld: 找不到 -lpbc
collect2: 错误:ld 返回 1
make: *** [Makefile:13:protobuf.so] 错误 1
The text was updated successfully, but these errors were encountered: