benlemasurier / stormfs

A FUSE abstraction layer for cloud storage (Amazon S3, Google Cloud Storage and more)
GNU General Public License v2.0
91 stars 4 forks source link

dependency on fuse? #10

Closed alexeypro closed 11 years ago

alexeypro commented 12 years ago

Trying to install on fresh Mac (but have XCode/etc.)

brew install stormfs failes with:

PKG_CONFIG_PATH: /usr/local/Cellar/libffi/3.0.10/lib/pkgconfig:/usr/local/Cellar/gettext/0.18.1.1/lib/pkgconfig

Error: Failed executing: ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/stormfs/0.01 If `brew doctor' does not help diagnose the issue, please report the bug: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue We saved the configure log, please gist it if you report the issue: ~/Library/Logs/Homebrew/config.log

looking into the log I can see:

configure:3514: result: yes configure:3524: checking for FUSE configure:3531: $PKG_CONFIG --exists --print-errors "fuse >= 2.8.3" Package fuse was not found in the pkg-config search path. Perhaps you should add the directory containing fuse.pc' to the PKG_CONFIG_PATH environment variable No package 'fuse' found configure:3534: $? = 1 configure:3547: $PKG_CONFIG --exists --print-errors "fuse >= 2.8.3" Package fuse was not found in the pkg-config search path. Perhaps you should add the directory containingfuse.pc' to the PKG_CONFIG_PATH environment variable No package 'fuse' found configure:3550: $? = 1 configure:3563: result: no No package 'fuse' found configure:3579: error: Package requirements (fuse >= 2.8.3) 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 FUSE_CFLAGS and FUSE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

benlemasurier commented 12 years ago

What version of OS X are you running? I've been trying to reproduce this without any luck on fresh installs of Lion, Snow Leopard and Leopard.

alexeypro commented 12 years ago

Lion. Brand new installation with all the updates. Should I install something?

benlemasurier commented 12 years ago

You could try installing fuse4x via homebrew manually, I'm not sure why the dependency isn't honored.

brew install fuse4x

alexeypro commented 12 years ago

Still doesn't work:

01:06PM aprohorenko@apmacbook15:~ $ brew update
remote: Counting objects: 229, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 189 (delta 136), reused 124 (delta 73)
Receiving objects: 100% (189/189), 25.78 KiB, done.
Resolving deltas: 100% (136/136), completed with 29 local objects.
From https://github.com/mxcl/homebrew
   18caa8c..aedddbb  master     -> origin/master
Updated Homebrew from 18caa8cf to aedddbba.
==> New formulae
par2tbb     zsh-lovers
==> Removed formulae
skim       sublercli
==> Updated formulae
atlassian-plugin-sdk   cairomm            dia            graphicsmagick     mapnik         nspr
blast              cmu-pocketsphinx       ffmpeg             httrack            mpop           nss
cairo              cmu-sphinxbase         ghostscript        ios-sim            ncmpcpp        redland
01:06PM aprohorenko@apmacbook15:~ $ brew install fuse4x
01:06PM aprohorenko@apmacbook15:~ $ brew install stormfs
==> Downloading https://github.com/downloads/benlemasurier/stormfs/stormfs-0.01.tar.gz
File already downloaded in /Users/aprohorenko/Library/Caches/Homebrew
==> ./configure --disable-debug --prefix=/usr/local/Cellar/stormfs/0.01
configure: WARNING: unrecognized options: --disable-debug
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 gcc... /usr/bin/llvm-gcc
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 /usr/bin/llvm-gcc accepts -g... yes
checking for /usr/bin/llvm-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/llvm-gcc... none
checking whether /usr/bin/llvm-gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FUSE... no
configure: error: Package requirements (fuse >= 2.8.3) 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 FUSE_CFLAGS
and FUSE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/stormfs.rb#L14
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: aedddbba593487e047dcd42d699b626ba2d18d36
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: 8-core 64-bit sandybridge
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.0 build 211
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/local/Cellar/libffi/3.0.10/include -I/usr/local/Cellar/gettext/0.18.1.1/include
LDFLAGS: -L/usr/local/Cellar/libffi/3.0.10/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib
MAKEFLAGS: -j8
PKG_CONFIG_PATH: /usr/local/Cellar/libffi/3.0.10/lib/pkgconfig:/usr/local/Cellar/gettext/0.18.1.1/lib/pkgconfig

Error: Failed executing: ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/stormfs/0.01
If `brew doctor' does not help diagnose the issue, please report the bug:
    https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
We saved the configure log, please gist it if you report the issue:
    ~/Library/Logs/Homebrew/config.log
benlemasurier commented 12 years ago

what does brew doctor output?

alexeypro commented 12 years ago
03:52PM aprohorenko@apmacbook15:~ $ brew doctor
Unbrewed dylibs were found in /usr/local/lib.

If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libmcrypt.4.4.8.dylib

Unbrewed .la files were found in /usr/local/lib.

If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libmcrypt.la

Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.

Those files are from mcrypt for PHP installations..

benlemasurier commented 12 years ago

My best guess is that PKG_CONFIG_PATH is not being set properly during compilation, there's a similar issue here: https://github.com/mxcl/homebrew/issues/8885