0

嗨,我正在尝试安装 s3fs,但出现以下错误。

*** No targets specified and no makefile found.  Stop.

我遵循安装教程 http://code.google.com/p/s3fs/wiki/InstallationNotes的任何想法

这是我的终端代码,我正在使用 mac os x lion。

stealth:cd ~/Desktop
stealth:Desktop sam$cd s3fs-1.61
stealth:s3fs-1.61 sam$ ./configure --prefix=/sam
checking build system type... x86_64-apple-darwin11.4.0
checking host system type... x86_64-apple-darwin11.4.0
checking target system type... x86_64-apple-darwin11.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... no
configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6 libcrypto >= 0.9) were not met:

No package 'fuse' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
stealth:s3fs-1.61 sam$ make
make: *** No targets specified and no makefile found.  Stop.

有什么帮助吗???

4

3 回答 3

0

脚本输出告诉你该怎么做,

安装 fuse、libcurl、libxml 和 libcrypto

而不是做这个手册,我会用一个包管理框架来做这个,比如 MacPorts

于 2012-06-07T10:15:43.603 回答
0

我遇到过这样的问题(RHEL 6.4,x86_64)。主要原因是:

configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6 libcrypto >= 0.9) were not met:
No package 'fuse' found

我的解决方案如下:

cd /usr/src/
wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz
tar -xzf ./fuse-2.9.3.tar.gz
cd ./fuse-2.9.3
./configure
make && make install
cd /usr/src/
wget http://s3fs.googlecode.com/files/s3fs-1.71.tar.gz
tar -xzf ./s3fs-1.71.tar.gz
cd ./s3fs-1.71

然后我们正在尝试配置它:

./configure --prefix=/usr

但如果失败:) 所以,我们需要在 pkgconfig 中添加 fuse 并导出 pfgconfig:

cp /usr/src/fuse-2.9.3/fuse.pc /usr/lib64/pkgconfig
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig

尝试再次成功配置它并执行 make && make install:

./configure --prefix=/usr
make && make install
于 2013-08-07T21:32:10.403 回答
0

我今天早些时候在 OS X 上安装s3fs时遇到了同样的问题。make配置不起作用,因为二进制fuse文件在路径中不可用。要解决此问题,请安装 fuse然后重新运行./configure。完成后,您将能够运行make以编译源代码。

于 2015-08-29T00:50:24.177 回答