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

System not supported: darwin/arm64 #572

Open
Frederic-Zhou opened this issue Oct 26, 2021 · 10 comments
Open

System not supported: darwin/arm64 #572

Frederic-Zhou opened this issue Oct 26, 2021 · 10 comments

Comments

@Frederic-Zhou
Copy link

When I install on MacOSX M1 with command line

curl -s https://www.getdnote.com/install | sh

System not supported: darwin/arm64
Please compile manually from https://github.com/dnote/dnote
A problem occurred while installing Dnote. Please report it on https://github.com/dnote/dnote/issues so that we can help you.
@sungwoncho
Copy link
Member

Hi @Frederic-Zhou, it looks like we need to add darwin/arm64 in the official distribution.

In the meantime, would you be able to try to install with brew?

brew tap dnote/dnote
brew install dnote

@yostos
Copy link

yostos commented Nov 15, 2021

On my new MacBook Pro(Apple M1 Pro), following commands does not work right. The command was stuck and could not be terminated.

brew tap dnote/dnote

@sungwoncho
Copy link
Member

sungwoncho commented Dec 8, 2021

I am sorry, I was wrong to suggest using brew to install for M1. Currently, Dnote is only distributed for darwin/amd64. I need to do a bit of research to compile for M1. So using brew will not help.

@yostos is this issue blocking you in any way?

@yostos
Copy link

yostos commented Dec 9, 2021

@sungwoncho Thank you for your reply. I forgot how I install dnote app, but I can use it now.

@Frederic-Zhou
Copy link
Author

@sungwoncho thx!this is a great project!

@sungwoncho
Copy link
Member

sungwoncho commented Feb 5, 2023

Reopening because there is still not support for darwin/arm64 (#606) for CLI.

@sungwoncho
Copy link
Member

#623 suggests that darwin/arm64 binary works (I couldn't verify myself due to lack of access to a mac). Therefore, created #642 to include it in the installation script.

Would someone with an access to a mac with M1 chip test whether the script works?

@suzuki-shunsuke
Copy link

I tried dnote on darwin/arm64.

❌ pre built binary for darwin/arm64
❌ Homebrew
❌ install script
⭕ pre built binary for darwin/amd64 (Rosetta2)

pre built binary for darwin/arm64

Downloaded pre built binary from GitHub Releases.

https://github.com/dnote/dnote/releases/tag/cli-v0.14.0

$ dnote --help
zsh: killed     dnote --help

Homebrew

$ brew tap dnote/dnote
$ brew install dnote
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################## 100.0%
==> Fetching dnote/dnote/dnote
==> Downloading https://github.com/dnote/dnote/releases/download/cli-v0.14.0/dnote_0.14.0_darwin_amd64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/86756976/55f93fbf-a47c-4870-a2a4
######################################################################## 100.0%
Error: dnote: SHA256 mismatch
Expected: c34dfd5a7a47e5452a421fe0790d3aa9be5aa1307b95f7e2cff8ca21dee17576 
  Actual: 264af0c4726cea5b5ffd48fc50f0a6c09f644f2b053c9266f7c08717deb7c733
    File: /Users/shunsukesuzuki/Library/Caches/Homebrew/downloads/e1615eadfab931302da9bc98e4c7996bae37df3dff7329fdfa310bd7b38b92ba--dnote_0.14.0_darwin_amd64.tar.gz
To retry an incomplete download, remove the file above.

install script

$ curl -s https://raw.githubusercontent.com/dnote/dnote/d062447f64d9f1c892da060f0367577ed766f1d7/install.sh | sh
You need a root privilege to install Dnote binary to /usr/local/bin
Password:
sh: line 170: echo: write error: Broken pipe
Latest release version is v0.14.0.
Downloading https://github.com/dnote/cli/releases/download/cli-v0.14.0/dnote_0.14.0_darwin_arm64.tar.gz.
######################################################################## 100.0%
Downloading the checksum file for v0.14.0
######################################################################## 100.0%
Comparing checksums for binaries.
Inflating the binary.
dnote v0.14.0 was successfully installed in /usr/local/bin.
$ /usr/local/bin/dnote --help
zsh: killed     /usr/local/bin/dnote --help

pre built binary for darwin/amd64 (Rosetta2)

Downloaded pre built binary from GitHub Releases.

https://github.com/dnote/dnote/releases/tag/cli-v0.14.0

$ dnote --help
Dnote - a simple command line notebook

Usage:
  dnote [command]

Available Commands:
  add         Add a new note
  edit        Edit a note or a book
  find        Find notes by keywords
  help        Help about any command
  login       Login to dnote server
  logout      Logout from the server
  remove      Remove a note or a book
  sync        Sync data with the server
  version     Print the version number of Dnote
  view        List books, notes or view a content

Flags:
  -h, --help   help for dnote

Use "dnote [command] --help" for more information about a command.

suzuki-shunsuke added a commit to CrystalMethod/aqua-registry that referenced this issue Mar 12, 2023
@sungwoncho
Copy link
Member

Thanks for the findings. Based on the them, I am recalling darwin/arm64 in #644.

@Jason-Terry
Copy link

Jason-Terry commented Dec 30, 2023

Any hope on getting this bumped / solved? I am also facing this issue on my new mac and can no longer use Dnote D:

Apple M3 Max

EDIT:

After removing denote via brew

brew uninstall dnote brew untap dnote/dnote

and installing rosette

I was able to install and use dnote via typical brew install instructions.

Could someone else double check this for themselves?

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

No branches or pull requests

5 participants