[GH-ISSUE #24] Install via Homebrew #624

Closed
opened 2026-03-15 03:38:41 +03:00 by kerem · 20 comments
Owner

Originally created by @ku1ik on GitHub (Oct 11, 2012).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/24

Via @hced:

As a feature suggestion, I propose installation/updating via Homebrew for us Mac users.

Originally created by @ku1ik on GitHub (Oct 11, 2012). Original GitHub issue: https://github.com/asciinema/asciinema/issues/24 Via @hced: As a feature suggestion, I propose installation/updating via Homebrew for us Mac users.
kerem closed this issue 2026-03-15 03:38:46 +03:00
Author
Owner

@ku1ik commented on GitHub (Oct 11, 2012):

Can someone try it out?

brew install https://raw.github.com/gist/3875486/asciiio.rb --HEAD
<!-- gh-comment-id:9358028 --> @ku1ik commented on GitHub (Oct 11, 2012): Can someone try it out? ``` brew install https://raw.github.com/gist/3875486/asciiio.rb --HEAD ```
Author
Owner

@ku1ik commented on GitHub (Oct 11, 2012):

Question is: if you can tell bin.install to install asciiio.py as just asciiio.

<!-- gh-comment-id:9358060 --> @ku1ik commented on GitHub (Oct 11, 2012): Question is: if you can tell `bin.install` to install `asciiio.py` as just `asciiio`.
Author
Owner

@hced commented on GitHub (Oct 11, 2012):

Hi, sickill. I tried to install via brew but ran into this (I'm off to bed so I can't reply until tomorrow on this):

brew install https://raw.github.com/gist/3875486/asciiio.rb --HEAD
######################################################################## 100,0%
Error: class "Asciiio" expected but not found in asciiio.rb
Double-check the name of the class in that formula.
Error: No available formula for asciiio

As for the install command, that's a tricky question. I'm afraid I don't have the expertise necessary to answer. I read the man page for install but it said nothing that really pointed to any obvious method of installing a file with a different name.

<!-- gh-comment-id:9358769 --> @hced commented on GitHub (Oct 11, 2012): Hi, sickill. I tried to install via `brew` but ran into this (I'm off to bed so I can't reply until tomorrow on this): brew install https://raw.github.com/gist/3875486/asciiio.rb --HEAD ######################################################################## 100,0% Error: class "Asciiio" expected but not found in asciiio.rb Double-check the name of the class in that formula. Error: No available formula for asciiio As for the `install` command, that's a tricky question. I'm afraid I don't have the expertise necessary to answer. I read the man page for `install` but it said nothing that really pointed to any obvious method of installing a file with a different name.
Author
Owner

@ku1ik commented on GitHub (Oct 11, 2012):

I have updated gist to have a proper class name.

<!-- gh-comment-id:9358882 --> @ku1ik commented on GitHub (Oct 11, 2012): I have updated gist to have a proper class name.
Author
Owner

@hced commented on GitHub (Oct 11, 2012):

Ok now the installation works. Although the executable keeps the .py extension:

$ which asciiio
$ which asciiio.py
/usr/local/bin/asciiio.py
$ ls /usr/local/Cellar/asciiio/HEAD/bin/
asciiio.py

Bedtime emerging :)

<!-- gh-comment-id:9359281 --> @hced commented on GitHub (Oct 11, 2012): Ok now the installation works. Although the executable keeps the .py extension: ``` $ which asciiio $ which asciiio.py /usr/local/bin/asciiio.py $ ls /usr/local/Cellar/asciiio/HEAD/bin/ asciiio.py ``` Bedtime emerging :)
Author
Owner

@ku1ik commented on GitHub (Oct 11, 2012):

Cool. Let's figure out how to install it with a different name and then I'll update installation instructions on the site.

<!-- gh-comment-id:9362328 --> @ku1ik commented on GitHub (Oct 11, 2012): Cool. Let's figure out how to install it with a different name and then I'll update installation instructions on the site.
Author
Owner

@ku1ik commented on GitHub (Oct 11, 2012):

Cool. Let's figure out how to install it with a different name and then I'll update installation instructions on the site.

<!-- gh-comment-id:9362328 --> @ku1ik commented on GitHub (Oct 11, 2012): Cool. Let's figure out how to install it with a different name and then I'll update installation instructions on the site.
Author
Owner

@ku1ik commented on GitHub (Oct 12, 2012):

I'll just rename the file in the repository to be just asciiio.

<!-- gh-comment-id:9379930 --> @ku1ik commented on GitHub (Oct 12, 2012): I'll just rename the file in the repository to be just `asciiio`.
Author
Owner

@ku1ik commented on GitHub (Oct 12, 2012):

I renamed the file to asciiio and updated brew formula.

<!-- gh-comment-id:9380439 --> @ku1ik commented on GitHub (Oct 12, 2012): I renamed the file to `asciiio` and updated brew formula.
Author
Owner

@ku1ik commented on GitHub (Oct 12, 2012):

@ags313 can you try installing with above brew formula on your OSX?

<!-- gh-comment-id:9390326 --> @ku1ik commented on GitHub (Oct 12, 2012): @ags313 can you try installing with above brew formula on your OSX?
Author
Owner

@ags313 commented on GitHub (Oct 12, 2012):

Works 👍 :-)

<!-- gh-comment-id:9390426 --> @ags313 commented on GitHub (Oct 12, 2012): Works :+1: :-)
Author
Owner

@ku1ik commented on GitHub (Oct 12, 2012):

OSIM! I'll update installation instructions on the site the.

<!-- gh-comment-id:9390449 --> @ku1ik commented on GitHub (Oct 12, 2012): OSIM! I'll update installation instructions on the site the.
Author
Owner

@hced commented on GitHub (Oct 13, 2012):

Perhaps a small consideration might be to add asciiio into Homebrew's public package registry? That way people can do brew search asciiio and find it from there. And simply do brew install asciiio to install.

<!-- gh-comment-id:9402441 --> @hced commented on GitHub (Oct 13, 2012): Perhaps a small consideration might be to add `asciiio` into Homebrew's public package registry? That way people can do `brew search asciiio` and find it from there. And simply do `brew install asciiio` to install.
Author
Owner

@hced commented on GitHub (Oct 13, 2012):

FYI, contributing a package is documented here: https://github.com/mxcl/homebrew/wiki

Edit: sorry if this was already done :) I reckon contributing packages (formulae) to Homebrew takes a while as it goes through a pull request process, before it's up there, live.

<!-- gh-comment-id:9402761 --> @hced commented on GitHub (Oct 13, 2012): FYI, contributing a package is documented here: https://github.com/mxcl/homebrew/wiki Edit: sorry if this was already done :) I reckon contributing packages (formulae) to Homebrew takes a while as it goes through a pull request process, before it's up there, live.
Author
Owner

@ku1ik commented on GitHub (Oct 13, 2012):

No it wasn't done yet. I was planning to do this. First step was to have working formula in a gist. Then submit pull-request.

<!-- gh-comment-id:9403925 --> @ku1ik commented on GitHub (Oct 13, 2012): No it wasn't done yet. I was planning to do this. First step was to have working formula in a gist. Then submit pull-request.
Author
Owner

@hced commented on GitHub (Oct 13, 2012):

Ah, please forgive my going ahead of things. No hurry :)

<!-- gh-comment-id:9403956 --> @hced commented on GitHub (Oct 13, 2012): Ah, please forgive my going ahead of things. No hurry :)
Author
Owner

@ku1ik commented on GitHub (Oct 13, 2012):

Pull request already sent ;)

<!-- gh-comment-id:9404086 --> @ku1ik commented on GitHub (Oct 13, 2012): Pull request already sent ;)
Author
Owner

@ku1ik commented on GitHub (Oct 13, 2012):

Pull request already sent ;)

<!-- gh-comment-id:9404086 --> @ku1ik commented on GitHub (Oct 13, 2012): Pull request already sent ;)
Author
Owner

@ku1ik commented on GitHub (Oct 14, 2012):

They rejected my pull reqeust (see https://github.com/mxcl/homebrew/pull/15441). We'll be fine with gist version for now.

<!-- gh-comment-id:9422883 --> @ku1ik commented on GitHub (Oct 14, 2012): They rejected my pull reqeust (see https://github.com/mxcl/homebrew/pull/15441). We'll be fine with gist version for now.
Author
Owner

@hced commented on GitHub (Oct 14, 2012):

I'm fabled why. But, oh well :)

<!-- gh-comment-id:9426367 --> @hced commented on GitHub (Oct 14, 2012): I'm fabled why. But, oh well :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#624
No description provided.