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

brew install doesn't support MacOS on M2 #738

Closed
codingCoffee opened this issue May 11, 2023 · 3 comments
Closed

brew install doesn't support MacOS on M2 #738

codingCoffee opened this issue May 11, 2023 · 3 comments
Labels
macOS Apple macOS ("darwin") specific issue

Comments

@codingCoffee
Copy link

  • The quickstart guide recommends installation for MacOS via brew, however, it isn't supported
➜ brew install gocryptfs
gocryptfs: Linux is required for this software.
libfuse: Linux is required for this software.
Error: gocryptfs: Unsatisfied requirements failed this build.

Is there any alternative way to install gocryotfs on a MacOS (macOS 13.3.1, Apple M2 Pro 2023)?

@rfjakob rfjakob added the macOS Apple macOS ("darwin") specific issue label May 14, 2023
@rfjakob rfjakob changed the title brew install doesn't support MacOS brew install doesn't support MacOS on M2 May 16, 2023
@rfjakob
Copy link
Owner

rfjakob commented May 16, 2023

Yeah, brew only works on Intel Macs (or not at all now that MacFuse is closed source?).

Anyway, looking at #556, people seem to be running gocryptfs on M1 Macs, M2 should be no different.

Instructions (stolen from #556 (comment) and slightly edited):

  1. Install Macfuse
  2. Install go
  3. Download / Clone this repository
  4. Run build-without-openssl.bash which will produce the gocryptfs binary.

@rfjakob rfjakob closed this as completed May 16, 2023
rfjakob added a commit to rfjakob/gocryptfs-website that referenced this issue May 16, 2023
@rfjakob
Copy link
Owner

rfjakob commented May 16, 2023

I fixed the instruction on https://nuetzlich.net/gocryptfs/quickstart/ to match https://github.com/rfjakob/gocryptfs/blob/master/README.md#installation .

You should be able to install gocryptfs using macports.

@teohhanhui
Copy link

teohhanhui@Han-MacBook-Air ~ % sudo port install gocryptfs
Password:
--->  Computing dependencies for gocryptfs
The following dependencies will be installed: 
 go
 go-md2man
 libiconv
 macfuse
 pkgconfig
Continue? [Y/n]: 
--->  Fetching archive for go
--->  Attempting to fetch go-1.21.0_0.darwin_22.arm64.tbz2 from https://packages.macports.org/go
--->  Attempting to fetch go-1.21.0_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/go
--->  Installing go @1.21.0_0
--->  Activating go @1.21.0_0
--->  Cleaning go
--->  Fetching archive for go-md2man
--->  Attempting to fetch go-md2man-2.0.2_0.darwin_22.arm64.tbz2 from https://packages.macports.org/go-md2man
--->  Attempting to fetch go-md2man-2.0.2_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/go-md2man
--->  Installing go-md2man @2.0.2_0
--->  Activating go-md2man @2.0.2_0
--->  Cleaning go-md2man
--->  Fetching archive for macfuse
--->  Attempting to fetch macfuse-4.5.0_0.darwin_22.arm64.tbz2 from https://packages.macports.org/macfuse
--->  Attempting to fetch macfuse-4.5.0_0.darwin_22.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/macfuse
--->  Attempting to fetch macfuse-4.5.0_0.darwin_22.arm64.tbz2 from https://kmq.jp.packages.macports.org/macfuse
--->  Fetching distfiles for macfuse
--->  Attempting to fetch macfuse-4.5.0.dmg from https://distfiles.macports.org/macfuse
--->  Verifying checksums for macfuse                                           
--->  Extracting macfuse
--->  Configuring macfuse
--->  Building macfuse
--->  Staging macfuse into destroot
--->  Installing macfuse @4.5.0_0
--->  Activating macfuse @4.5.0_0
--->  Cleaning macfuse
--->  Fetching archive for libiconv
--->  Attempting to fetch libiconv-1.17_0.darwin_22.arm64.tbz2 from https://packages.macports.org/libiconv
--->  Attempting to fetch libiconv-1.17_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/libiconv
--->  Installing libiconv @1.17_0
--->  Activating libiconv @1.17_0
--->  Cleaning libiconv
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_22.arm64.tbz2 from https://packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.29.2_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/pkgconfig
--->  Installing pkgconfig @0.29.2_0
--->  Activating pkgconfig @0.29.2_0
--->  Cleaning pkgconfig
--->  Fetching archive for gocryptfs
--->  Attempting to fetch gocryptfs-2.3.1_0+doc.darwin_22.arm64.tbz2 from https://packages.macports.org/gocryptfs
--->  Attempting to fetch gocryptfs-2.3.1_0+doc.darwin_22.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gocryptfs
--->  Attempting to fetch gocryptfs-2.3.1_0+doc.darwin_22.arm64.tbz2 from https://kmq.jp.packages.macports.org/gocryptfs
--->  Fetching distfiles for gocryptfs
--->  Attempting to fetch gocryptfs-2.3.1.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch go-yaml-yaml-9f266ea9e77c.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch golang-term-a9ba230a4035.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch golang-sys-bc2c85ada10a.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch golang-net-1185a9018129.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch golang-crypto-32db794688a5.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch stretchr-testify-v1.6.1.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch spf13-pflag-v1.0.5.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch sabhiram-go-gitignore-54b8a0bf510f.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch rfjakob-eme-v1.1.2.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch pmezard-go-difflib-v1.0.0.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch pkg-xattr-v0.4.3.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch kylelemons-godebug-d65d576e9348.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch jacobsa-reqtrace-245c9e0234cb.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch jacobsa-ogletest-80d50a735a11.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch jacobsa-oglemock-e94d794d06ff.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch jacobsa-oglematchers-141901ea67cd.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch hanwen-go-fuse-915cf5413cde.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch davecgh-go-spew-v1.1.0.tar.gz from https://distfiles.macports.org/go
--->  Attempting to fetch aperturerobotics-jacobsa-crypto-v1.0.0.tar.gz from https://distfiles.macports.org/go
--->  Verifying checksums for gocryptfs                                         
--->  Extracting gocryptfs
--->  Configuring gocryptfs
--->  Building gocryptfs
Error: Failed to build gocryptfs: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_gocryptfs/gocryptfs/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port gocryptfs failed
--->  Some of the ports you installed have notes:
  macfuse has the following notes:
    Run the following before using macFUSE:
    
        sudo ln -fsn /opt/local/Library/Filesystems/macfuse.fs
    /Library/Filesystems/macfuse.fs

main.log: https://gist.github.com/teohhanhui/6ff1f2f895adafcf5b6c282f08843515

(the log doesn't seem to be helpful... seems like some output formatting is broken?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Apple macOS ("darwin") specific issue
Projects
None yet
Development

No branches or pull requests

3 participants