You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何以静态模式编译s3fs-fuse?遇--enable-static参数不识别报错

静态编译s3fs-fuse的解决方法

你之前编译s3fs-fuse时,使用--enable-static参数出现了如下警告:

configure: WARNING: unrecognized options: --enable-static

s3fs-fuse的configure脚本不支持该参数,要实现静态编译,按以下步骤操作:

  • 安装依赖:
apt-get update
apt-get install -y build-essential libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool pkg-config
  • 拉取源码并进入目录:
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
  • 配置静态编译参数:
./configure --prefix=/usr --with-openssl LDFLAGS="-static"
  • 编译并安装:
make
make install

完成后可通过file /usr/bin/s3fs命令验证生成的二进制文件是否为静态链接。

内容的提问来源于stack exchange,提问作者kins

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 23:42:40