Greetings,
I have some trouble installing ipfs on my macbook air. I’ve followed the steps but it seems my mac does not have certain write permissions. How can I move forward?
Ive tried deleting go-ipfs/ folder and unzipping again and trying to install again. i also tried sudo bash install but no luck.
See attachments and thank you!
Jorropo
November 14, 2021, 1:02am
2
You need root permisions to install IPFS like that (if you want there are ways to run IPFS without but it’s not what ./install.sh
is able to do).
Perhaps try running this script as a privilged user:
sudo ./install.sh
Have you tried that, does that work ?
Jorropo:
sudo ./install.sh
Same error.
It suggests i run sudo ./install.sh instead (which is the same code i ran)
Jorropo
November 14, 2021, 4:07am
4
That very weird, with root permission you should be able to do anything.
Can you pls show the result of this :
sudo whoami
cat install.sh
file ipfs
Jorropo
November 14, 2021, 5:08am
6
I’m surprised it seems your root user is not allowed to access /usr/bin
Can you show
ls -dl /usr/bin/
ls -dl /usr/local/bin/
pls ?
BTW are you running an M1 mac ?
Jorropo
November 14, 2021, 5:48am
8
Honnestly I don’t really know why.
The root user is allowed to write to /usr/bin
, it should work.
I see you have used the x86_64 binary, I know it should work because of apple’s emulation layer but for performance reason always use the non emulated native (here ARM64) version :
http://dist.ipfs.io/go-ipfs/v0.10.0/go-ipfs_v0.10.0_darwin-arm64.tar.gz
Appart from that I don’t really know, it should work.
You can just use IPFS in “portable mode” just use it with ./ipfs
.
i tried using the arm64 version but no luck…
how would i go about starting ipfs in portable mode?
Jorropo
November 15, 2021, 3:17pm
10
Just extract and do ./ipfs