赞
踩
mac上安装软件可以通过brew install安装
编译openssl报错找不到malloc.h
解决方法:将报错文件中
#include <malloc.h>
修改为
#include <sys/malloc.h>
The pkg-config script could not be found or is too old”
brew install pkg-config
configure: error: Package requirements (protobuf >= 2.6.0) were not met:
No package ‘protobuf’ found
brew install protobuf
aclocal-1.13: command not found
brew install automake autoconf libtool
autoreconf -ivf
找不不到gcc、python
安装Command Line Toos,必须安装对应系统的版本
编译动态库
gcc -dynamiclib -o libxxx.dylib
查看执行文件或库依赖
otool -L libxxx.dylib
安装python的protobuf
wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-python-3.6.0.tar.gz
tar zxvf protobuf-python-3.6.0.tar.gz
cd protobuf-3.6.0
./configure
make
make check
make install
cd ./python
python setup.py build
python setup.py test
python setup.py install
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。