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

How to use on macos? #111

Closed
brett-anderson opened this issue May 16, 2022 · 10 comments
Closed

How to use on macos? #111

brett-anderson opened this issue May 16, 2022 · 10 comments
Labels
bug Something isn't working question Further information is requested

Comments

@brett-anderson
Copy link

hello! I was wondering the best way to use this on macos. From the docs, I used brew to install:

brew install replibyte

but when I restart my terminal and run replibyte, I get:

zsh: command not found: replibyte

Brew info:

✗ brew info replibyte
qovery/replibyte/replibyte: stable 0.6.3
Seed Your Development Database With Real Data ⚡️
https://github.com/Qovery/replibyte
/usr/local/Cellar/replibyte/0.6.3 (49 files, 275.3KB) *
  Built from source on 2022-05-16 at 10:56:08
From: https://github.com/Qovery/homebrew-replibyte/blob/HEAD/Formula/replibyte.rb
License: MIT

brew --cellar replibyte

✗ brew --cellar replibyte
/usr/local/Cellar/replibyte

Is there a step that I'm missing with brew?

@evoxmusic
Copy link
Contributor

Do you have /usr/local/Cellar in your local path? Maybe something is missing in the formulae 🤔

Any idea @fabriceclementz ?

@evoxmusic evoxmusic added the question Further information is requested label May 16, 2022
@eswarty
Copy link

eswarty commented May 16, 2022

My Cellar is in /opt/homebrew/Cellar and I tried adding a few different things to my path to get it to work but still got command not found:
/opt/homebrew/Cellar
/opt/homebrew/Cellar/replibyte/0.6.0/bin
/opt/homebrew/Cellar/replibyte
/opt/homebrew/Cellar/replibyte/0.6.0

@fabriceclementz
Copy link
Contributor

Hi,
I just installed it from homebrew. It was successfully downloaded to /usr/local/Cellar/replibyte/0.6.3.

Howewer, I think we need to change this URL https://github.com/Qovery/homebrew-replibyte/blob/main/Formula/replibyte.rb#L5 because it only contains the source code and not the binary of replibyte which is what we want.

I had set up a test repo and the URL I was using was as follows: https://github.com/Qovery/replibyte/releases/download/v#{version}/replibyte_v#{version}_x86_64-apple-darwin.zip

I just downloaded manually https://github.com/Qovery/replibyte/releases/download/v0.6.3/replibyte_v0.6.3_x86_64-apple-darwin.zip and it contains the binary.

@evoxmusic can you try to change this URL in https://github.com/Qovery/homebrew-replibyte ?

@evoxmusic
Copy link
Contributor

@fabriceclementz you are right, I've changed the URL you shared, the only issue is that the binary does not have the correct name. I'm looking at our homebrew GithubActions

@fabriceclementz
Copy link
Contributor

I've just try it with my repo and I've the same error as you cause the binary name is not correct

Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory - replibyte

@evoxmusic
Copy link
Contributor

I've found the issue, I am giving it a try now. I keep you posted

@evoxmusic evoxmusic added the bug Something isn't working label May 16, 2022
@fabriceclementz
Copy link
Contributor

I think it's these lines which needs to be modified https://github.com/Qovery/Replibyte/blob/main/.github/workflows/on-release.yml#L117-L118

@evoxmusic
Copy link
Contributor

@fabriceclementz can you try now?

@eswarty
Copy link

eswarty commented May 16, 2022

It worked for me! Thanks so much!

@brett-anderson
Copy link
Author

Worked for me as well. Thanks for the quick turn-around, I'm eager to test this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants