c4milo / fusejs

Low level fuse bindings for nodejs
http://c4milo.github.io/fusejs
111 stars 72 forks source link

Issue installing FuseJS #22

Closed FGRibreau closed 8 years ago

FGRibreau commented 9 years ago

With:

node -v
v0.12.7

uname -a
Darwin Mbp 12.6.0 Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64 x86_64

npm install fusejs -S
\
> fusejs@1.2.5 install /www/core/node_modules/fusejs
> node-gyp rebuild

  CXX(target) Release/obj.target/fusejs/src/bindings.o
  CXX(target) Release/obj.target/fusejs/src/file_info.o
  CXX(target) Release/obj.target/fusejs/src/filesystem.o
../src/filesystem.cc:254:18: error: no member named 'forget_multi' in 'fuse_lowlevel_ops'
        fuse_ops.forget_multi = FileSystem::MultiForget;
        ~~~~~~~~ ^
1 error generated.
make: *** [Release/obj.target/fusejs/src/filesystem.o] Error 1

Any ideas why?

EricTheMagician commented 9 years ago

What version of fuse do you have installed? I'll have to check later, but I think that function was introduced in fuse 2.9. I thought I had wrapped it such that it should not be included if you have an older version but I will check on that.

FGRibreau commented 9 years ago

I was using fuse osxfuse-2.6.2, I updated fuse to:

brew install osxfuse
Warning: osxfuse-2.7.6 already installed

And then npm i fusejs with node 0.12 (same with 4.0.0) gives me the same error:

npm i fusejs -S
> fusejs@1.2.5 install /app/node_modules/fusejs
> node-gyp rebuild
  CXX(target) Release/obj.target/fusejs/src/bindings.o
  CXX(target) Release/obj.target/fusejs/src/file_info.o
  CXX(target) Release/obj.target/fusejs/src/filesystem.o
../src/filesystem.cc:254:18: error: no member named 'forget_multi' in 'fuse_lowlevel_ops'

I'm on mac, what should I do? :)

saqebakhter commented 8 years ago

Solved by upgrading to latest osxfuse - https://github.com/osxfuse/osxfuse/releases

EricTheMagician commented 8 years ago

Unfortunately, I wasn't able to reproduce the problem. For now, I have disable the "multi_forget" in OSX.

Can you try it again?

FGRibreau commented 8 years ago

It made it work, upgrading to the latest version of osxfuse :)