【问题标题】:s3fs: Could not load mime types for curl librarys3fs:无法为 curl 库加载 mime 类型
【发布时间】:2020-07-27 04:10:20
【问题描述】:

我有一个奇怪的问题。上周四我的代码已经运行,所以我有点困惑。

我想要什么:通过 S3FS 将 S3-Bukket 挂载到 EC2-Instance。

星期四的工作:成功地将 S3-Bucket 安装到我的 EC2-Instance。

今天不工作的地方:将 S3-Bucket 挂载到我的 EC2-Instance。

我的 EC2 用户数据:

 #!/bin/bash
 yum install -y automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
 git clone https://github.com/s3fs-fuse/s3fs-fuse
 cd s3fs-fuse/
 ./autogen.sh
 ./configure --prefix=/usr --with-openssl
 make
 sudo make install
 mkdir -p /s3/mybucket
 s3fs -o iam_role="MYROLE" -o url="https://s3-eu-central-1.amazonaws.com" -o endpoint=eu-central-1 -o dbglevel=info -o allow_other -o use_cache=/tmp MYBUCKET /s3/mybucket

运行 s3fs 命令后,它返回:

s3fs: Could not load mime types for curl library.

并且桶没有安装。

我尝试了什么:

  • yum 更新 libcurl
  • 在不同的 EC2 实例上手动设置 s3fs。也不行...
  • 检查了我的 IAM 角色(上周有效且未更改)

提前感谢您的帮助。

【问题讨论】:

  • 欢迎来到社区茶壶!难道是因为名字而失败?您可能已经使用过该名称,但现在当您尝试执行相同操作时却失败了,因为存储桶名称已在使用中?

标签: amazon-web-services amazon-s3 amazon-ec2 s3fs


【解决方案1】:

您可以通过以下方式安装 mime 类型:yum install mailcap

【讨论】:

猜你喜欢
  • 2016-07-08
  • 2021-10-31
  • 2015-06-16
  • 1970-01-01
  • 2016-12-23
  • 2013-04-02
  • 2013-10-09
  • 1970-01-01
  • 2020-04-22
相关资源
最近更新 更多