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

Can't Install on MacOS 12 (Monterey) #8347

Closed
3 tasks done
TheDiscordian opened this issue Aug 17, 2021 · 5 comments · Fixed by #8934
Closed
3 tasks done

Can't Install on MacOS 12 (Monterey) #8347

TheDiscordian opened this issue Aug 17, 2021 · 5 comments · Fixed by #8934
Assignees
Labels
effort/hours Estimated to take one or several hours kind/bug A bug in existing code (including security flaws) kind/maintenance Work required to avoid breaking changes or harm to project's status quo P1 High: Likely tackled by core team if no one steps up topic/macos MacOS specific

Comments

@TheDiscordian
Copy link
Member

TheDiscordian commented Aug 17, 2021

Checklist

Installation method

GitHub releases page

Version

v0.9.1 darwin arm64

Config

No response

Description

On MacOS 12 /usr/local/bin doesn't exist it seems, so I can't run install.sh.

disco@smol go-ipfs % sudo ./install.sh
mv: rename ./ipfs to /usr/local/bin/ipfs: No such file or directory
mv: fastcopy: open() failed (to): /usr/bin/ipfs: Operation not permitted
We cannot install ./ipfs in one of the directories /usr/local/bin /usr/bin
It seems that we do not have the necessary write permissions.
Perhaps try running this script as a privileged user:

    sudo ./install.sh

disco@smol go-ipfs % ls /usr/local/bin
ls: /usr/local/bin: No such file or directory

P.S. The new Github submission form made writing this harder.

@TheDiscordian TheDiscordian added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Aug 17, 2021
@lidel
Copy link
Member

lidel commented Apr 25, 2022

I'm bumping this in priority – @johnnymatthews hit the same problem.
We need to fix this before go-ipfs 0.13 ships, as we ask users to run the script in https://docs.ipfs.io/install/command-line/#macos

The script source is https://github.com/ipfs/go-ipfs/blob/master/cmd/ipfs/dist/install.sh – someone needs to update it to properly handle missing /usr/local/bin

@lidel lidel added P1 High: Likely tackled by core team if no one steps up effort/hours Estimated to take one or several hours topic/macos MacOS specific kind/maintenance Work required to avoid breaking changes or harm to project's status quo and removed need/triage Needs initial labeling and prioritization labels Apr 25, 2022
@SgtPooki
Copy link
Member

SgtPooki commented Apr 25, 2022

Anecdotal, but go-ipfs daemon installed fine for me on Monterey:

image

╰─ ✔ ❯ ipfs daemon                                                                                                                5.82   30.7G   15%   100%  ─╯
Initializing daemon...
go-ipfs version: 0.12.0-06191dfef
Repo version: 12
System version: arm64/darwin
Golang version: go1.17.6
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/127.0.0.1/udp/4001/quic
Swarm listening on /ip4/192.168.1.227/tcp/4001
Swarm listening on /ip4/192.168.1.227/udp/4001/quic
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /ip6/::1/udp/4001/quic
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/127.0.0.1/udp/4001/quic
Swarm announcing /ip4/192.168.1.227/tcp/4001
Swarm announcing /ip4/192.168.1.227/udp/4001/quic
Swarm announcing /ip4/97.113.157.124/udp/4001/quic
Swarm announcing /ip6/::1/tcp/4001
Swarm announcing /ip6/::1/udp/4001/quic
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready

@SgtPooki
Copy link
Member

SgtPooki commented Apr 25, 2022

@TheDiscordian hey, does the brew formula work? it also installs from source: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/ipfs.rb

try brew install ipfs

That formula is using commit 7b096d6f28b2c338b27ae4bc89e2d5d948f70530ec03aef8d623b5162bf3f33c

@ajnavarro
Copy link
Member

I was not able to reproduce the problem on a virtual machine, so I rented a Scaleway native M1 computer: https://www.scaleway.com/en/hello-m1/ and I got the error.

Tentative fix here: #8934

After creating directories using the install.sh script, everything worked as expected.

@TheDiscordian
Copy link
Member Author

@SgtPooki Sorry for late response, forgot I opened this issue. Does that homebrew run the install.sh script?

@ajnavarro #8934 lgtm, that's exactly the type of fix I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/hours Estimated to take one or several hours kind/bug A bug in existing code (including security flaws) kind/maintenance Work required to avoid breaking changes or harm to project's status quo P1 High: Likely tackled by core team if no one steps up topic/macos MacOS specific
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants