Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on MacOS #986

Open
GuillaumeDesforges opened this issue Nov 29, 2022 · 6 comments
Open

Build on MacOS #986

GuillaumeDesforges opened this issue Nov 29, 2022 · 6 comments

Comments

@GuillaumeDesforges
Copy link

I'm trying to build blobfuse2 on MacOS.

I'm hitting an error:

In file included from component/libfuse/libfuse_handler.go:43:
./libfuse_wrapper.h:42:10: fatal error: 'linux/fs.h' file not found
#include <linux/fs.h>
         ^~~~~~~~~~~~
1 error generated.

It seems to come from this line:
https://github.com/Azure/azure-storage-fuse/blob/04107526750a10018ac8b1ec15f6aa5945198200/component/libfuse/libfuse_wrapper.h

Would it be possible to make blobfuse2 build on MacOS?

@vibhansa-msft
Copy link
Member

As of now we do not support blobfuse on MacOS.
One possible way to do this is to use docker container. Refer this if you are interested in that.

@GuillaumeDesforges
Copy link
Author

FYI there is https://osxfuse.github.io/. I haven't tried it though.

@vibhansa-msft
Copy link
Member

Yes I am aware of OsxFuse but integration with that and making rest of the code compile on MacOS will need some changes in the code base. As of now we do not have enough resources to make that effort. We have this item in our backlog though.

@GuillaumeDesforges
Copy link
Author

Thanks a lot, will look forward to it. 💯

@AvivAvital2
Copy link

AvivAvital2 commented Dec 3, 2022

As of now we do not support blobfuse on MacOS. One possible way to do this is to use docker container. Refer this if you are interested in that.

In Linux, you would eventually use the /dev/fuse descriptor, while in Mac it is not enough.
I tried using -privileged -dt --device /dev/fuse, running on a root user, installing osxfuse and other solutions.
To the best of my knowledge, blobfuse simply does not work on Mac without building it from scratch.

@vibhansa-msft
Copy link
Member

We also publish a Ubn-22 based container for blobfuse2, may be you can try that if that solves your problem.
For native support on Mac team has to investigate and invest some time on it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants