Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Diego Zamboni
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-31 21:50
Sorry, I posted too quickly - I tried the CVS version, and it seems to work fine! Sorry for the noise, and thanks for the module!

By: Diego Zamboni
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-31 21:43
> /usr/local/include/fuse/fuse_compat.h:68:24: error: sys/statfs.h: No such file or directory

I got the same error, and managed to solve it by commenting out the #include <sys/statfs> in fuse_compat.h. However, when I try to use fusefs, I get the following error:

dyld: NSLinkModule() error
dyld: Symbol not found: _fuse_new_compat22
Referenced from: /Applications/Locomotive2/Bundles/standardRailsFeb2007.locobundle/powerpc/lib/ruby/site_ruby/1.8/powerpc-darwin8.8.0/fusefs_lib.bundle
Expected in: flat namespace

Trace/BPT trap

Any ideas?
Thanks!

By: Jesper Särnesjö
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-16 17:41
Hi again,

Ah, I managed to miss that somehow. Sorry about that.

You stated earlier that you were looking for a Mac OS X shell to do debugging work with. I would very much like for FuseFS to work with MacFUSE in the not-to-distant future (assignment for a programming class... :) ) but my Ruby-Fu is not that strong yet.

I do, however, happen to have a semi-busted PowerBook that I use as a personal server. If you can make do without root access and promise to play nicely, you can have a shell on it. Send me an email if you're interested.

Regards,
Jesper Särnesjö

By: Greg Millam
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-15 15:27
As I stated earlier:

"One issue with MacFUSE is that it *requires* the size. The example filesystems won't work because they don't report the sizes, which works just fine on Linux."

I'll be adding size reporting to the sample filesystems before release.

In Linux, "direct_io" option forces the kernel to read the file even if the size is 0. In MacFUSE, it'll read exactly what the size function returns.

For all the sample files, try adding:

def size(path)
strlen(read_file(path))
end

It's a quick and dirty hack, but it should work.

Hope that helps!

- Greg

By: Jesper Särnesjö
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-15 12:26
Hi,

I'm another Mac hacker with the same problem. :)

I checked out the CVS version (like just an hour ago) and gave it a try. It compiles and installs without problems, but when I try to use it, this is what happens:

~ $ mkdir /tmp/rubyhello
~ $ ruby hello.rb /tmp/rubyhello/ -d
[hangs indefinitely, prints no output]

[meanwhile, in another terminal window...]
~ $ ls -alFG /tmp/rubyhello/
total 8
dr-xr-xr-x 1 sarnesjo sarnesjo 4096 Mar 15 13:15 ./
drwxrwxrwt 7 root wheel 238 Mar 15 13:12 ../
-r--r--r-- 1 sarnesjo sarnesjo 0 Mar 15 13:15 hello.txt
~ $ cat /tmp/rubyhello/hello.txt
~ $

Is hello.txt supposed to be empty or is that a bug?

Also, after I kill ruby with ctrl-c, I have to do "umount /tmp/rubyhello/" manually. Which I guess makes sense. But still.

Regards,
Jesper Särnesjö

By: Greg Millam
RE: setup on Mac OS X with MacFUSE [ reply ]  
2007-03-13 15:03
The CVS Version of OS X works with MacFUSE, but has a minor issue that causes an abort on unmount or termination. I'm not sure what causes it, and I'm trying to obtain an OS X shell to work on it with.

Try the CVS version and let me know if it works?

One issue with MacFUSE is that it *requires* the size. The example filesystems won't work because they don't report the sizes, which works just fine on Linux.

By: Rup
setup on Mac OS X with MacFUSE [ reply ]  
2007-02-15 22:40
$ ruby setup.rb config
---> lib
<--- lib
---> ext
/usr/local/bin/ruby /Users/rupert/Documents/•HOME/Projets/distributions/ruby/fusefs-0.6.0/ext/extconf.rb
checking for main() in -lfuse... yes
creating Makefile
<--- ext


$ ruby setup.rb setup
---> lib
<--- lib
---> ext
env GCC="gcc -D__FreeBSD__=10" make
gcc -fno-common -g -O2 -pipe -fno-common -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin8.5.0 -I/usr/local/lib/ruby/1.8/powerpc-darwin8.5.0 -I/Users/rupert/Documents/•HOME/Projets/distributions/ruby/fusefs-0.6.0/ext -c fusefs_fuse.c
In file included from /usr/local/include/fuse/fuse.h:619,
from /usr/local/include/fuse.h:9,
from fusefs_fuse.c:9:
/usr/local/include/fuse/fuse_compat.h:68:24: error: sys/statfs.h: No such file or directory


Seems to be a problem with defining __FreeBSD__=10 and other stuff : I can't get this stuff passed to the 'ruby setup.rb' compilation tasks ...

Anyone ?