-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac M1安装报错 checking for boost... configure: error: lib boost not found. Try: install boost library #89
Comments
boost安装目录为: /opt/homebrew/Cellar/boost/1.75.0_1 |
你把 YASD_CHECK_CXX_LIB([boost], [<boost/algorithm/string/constants.hpp>]) |
这次有新的报错信息 /Users/atao/Downloads/yasd-0.3.7/src/cmder_debugger.cc:20:10: fatal error: 'boost/algorithm/string.hpp' file not found |
你执行这条命令我看看: tree /opt/homebrew/Cellar/boost/1.75.0_1/include/boost/algorithm |
➜ yasd-0.3.7 tree /opt/homebrew/Cellar/boost/1.75.0_1/include/boost/algorithm/ |
你执行如下命令: brew link boost 然后重新编译 phpize --clean && \
phpize && \
./configure && \
make clean && \
make && \
make install |
➜ yasd-0.3.7 brew unlink boost && brew link boost creating libtool |
不知道是不是M1平台的原因哟,还是不行的 |
你在当前 export CPLUS_INCLUDE_PATH=/opt/homebrew/Cellar/boost/1.75.0_1/include |
➜ yasd-0.3.7 export CPLUS_INCLUDE_PATH=/opt/homebrew/Cellar/boost/1.75.0_1/include/ creating libtool ➜ yasd-0.3.7 phpize --clean && creating libtool |
继续设置如下环境变量: export LD_LIBRARY_PATH=/opt/homebrew/Cellar/boost/1.75.0_1/lib |
➜ yasd-0.3.7 export LD_LIBRARY_PATH=/opt/homebrew/Cellar/boost/1.75.0_1/lib/ creating libtool 还是报错 |
有的 |
你按照这个文章的样子来试试: |
➜ yasd-0.3.7 env LDFLAGS="-I/opt/homebrew/Cellar/boost/1.75.0_1/include -L/opt/homebrew/Cellar/boost/1.75.0_1/lib" creating libtool |
那你直接创建软连接到 |
请问我需要链接到那个位置呢 我的gcc信息如下 ➜ ~ gcc --version boost目录如下: |
你试试这个: ln -s /opt/homebrew/Cellar/boost/1.75.0_1/lib/libboost_filesystem.dylib /usr/local/lib
ln -s /opt/homebrew/Cellar/boost/1.75.0_1/include/boost /usr/local/include/boost |
成功了,赞 |
我也成功了, 赞 |
没有filesystem这个库 怎么处理呢? @huanghantao |
sudo ln -s /opt/homebrew/Cellar/boost/1.76.0/lib/libboost_filesystem.dylib /usr/local/lib
sudo mkdir /usr/local/include
sudo ln -s /opt/homebrew/Cellar/boost/1.76.0/include/boost /usr/local/include/boost 有效 |
我也想问问, 我安装了 boost 但是没有 boost_filesystem 文件, 只有 libboost_filesystem.a这个文件,应该如何处理 |
thanks!!! it works!!!
|
@tan-i-ham The swoole master branch now supports xdebug directly, but the PHP version is at least 8.1. |
Mac M1安装报错 ,在使用
brew install boost
安装boost库后,仍然找不到库文件,报错信息为: checking for boost... configure: error: lib boost not found. Try: install boost libraryThe text was updated successfully, but these errors were encountered: