alperakcan / fuse-ext2

Fuse-ext2 is a multi OS FUSE module to mount ext2, ext3 and ext4 file system devices and/or images with read write support.
GNU General Public License v2.0
808 stars 130 forks source link

OS X - configure: error: Can't find libfuse, please install it #23

Open mvmn opened 8 years ago

mvmn commented 8 years ago

I'm trying to build on OS X 10.11.3, but get error on configure configure: error: Can't find libfuse, please install it

Fuse is installed from osxfuse-2.8.3.dmg from sourceforge as linked from http://osxfuse.github.io https://sourceforge.net/projects/osxfuse/files/osxfuse-2.8.3/osxfuse-2.8.3.dmg/download

During installation all components checkboxes (Core, Pref Pane and Compatibility Layer) were checked.

Any idea what's missing?

mvmn commented 8 years ago

UPD: Found it in one of the issues - sbindir should be passed when running configure: CFLAGS="-idirafter/usr/local/Cellar/e2fsprogs/1.42.13/include -idirafter/usr/local/include/osxfuse/" LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/e2fsprogs/1.42.13/lib" ./configure --sbindir=/usr/local/sbin

mvmn commented 8 years ago

There were more errors regarding /System/Library being protected and that sort of thing, so I forked the repo and replaced some paths - https://github.com/mvmn/fuse-ext2

The intrusion is somewhat brutal, but end result works in OS X when run via: sudo fuse-ext2 /dev/disk<X>s<Y> <destdir> [-o force] (doesn't work without sudo BTW).

Note:

The mount -t fuse-ext2 /dev/disk<X>s<Y> <destdir> still has some path issue - spews this error: mount: exec /Library/Filesystems/fuse-ext2.fs/Contents/Resources/mount_fuse-ext2 for /Volumes/sdlin: No such file or directory.

And even if I link the existing file /Library/Filesystems/fuse-ext2.fs/mount_fuse-ext2 to /Library/Filesystems/fuse-ext2.fs/Contents/Resources/mount_fuse-ext2, mount -t doesn't seem to mount anything (without sudo it produces exit code 252, with sudo simply nothing happens).

vbauerster commented 8 years ago

Same issue on OS X 10.11.4. Any update, how to fix?

vbauerster commented 8 years ago

I've tried with both 'Compatibility Layer' option on and off. It fails at step: CFLAGS="-idirafter/$(brew --prefix e2fsprogs)/include -idirafter/usr/local/include/osxfuse" LDFLAGS="-L$(brew --prefix e2fsprogs)/lib" ./configure

muthusuba commented 7 years ago

Use something like: (ref: https://github.com/alperakcan/fuse-ext2/issues/23#issuecomment-183484007) CFLAGS="-idirafter/usr/local/Cellar/e2fsprogs/1.43.4/include -idirafter/usr/local/include/osxfuse/" LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/e2fsprogs/1.43.4/lib" ./configure --sbindir=/usr/local/sbin

Make sure the folders e2fsprogs/1.43.4/ is the version you have...

succeeds for me.