[GH-ISSUE #106] Install instructions for OS X fail. #697

Closed
opened 2026-03-15 08:54:58 +03:00 by kerem · 13 comments
Owner

Originally created by @redpola on GitHub (Jun 21, 2015).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/106

bash$ curl -sL https://asciinema.org/install | sh
Downloading asciinema v1.1.1 for darwin-amd64...

################################################################## 100.0%

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Warning: you may be asked for administrator password to save the file in /usr/local/bin directory
Installing to /usr/local/bin/asciinema...
Password:
cp: /var/folders/_f/p07k11_529g22zg7rmnmg_yh0000gn/T/asciinema-tmp.oCXU9G3a/asciinema*/asciinema: No such file or directory
Error: couldn't copy asciinema to /usr/local/bin/asciinema

Originally created by @redpola on GitHub (Jun 21, 2015). Original GitHub issue: https://github.com/asciinema/asciinema/issues/106 bash$ curl -sL https://asciinema.org/install | sh Downloading asciinema v1.1.1 for darwin-amd64... ###### ################################################################## 100.0% curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. Warning: you may be asked for administrator password to save the file in /usr/local/bin directory Installing to /usr/local/bin/asciinema... Password: cp: /var/folders/_f/p07k11_529g22zg7rmnmg_yh0000gn/T/asciinema-tmp.oCXU9G3a/asciinema*/asciinema: No such file or directory Error: couldn't copy asciinema to /usr/local/bin/asciinema
kerem closed this issue 2026-03-15 08:55:03 +03:00
Author
Owner

@redpola commented on GitHub (Jun 21, 2015):

Ok, so the problem here is that curl is failing because of the certificate problem. Adding the -k flag to the curl call fixes the problem. I'll leave it here for the maintainers to decide what to do.

<!-- gh-comment-id:113957308 --> @redpola commented on GitHub (Jun 21, 2015): Ok, so the problem here is that curl is failing because of the certificate problem. Adding the -k flag to the curl call fixes the problem. I'll leave it here for the maintainers to decide what to do.
Author
Owner

@ku1ik commented on GitHub (Jun 22, 2015):

Is this issue with asciinema.org certificate or github.com one?

<!-- gh-comment-id:114201539 --> @ku1ik commented on GitHub (Jun 22, 2015): Is this issue with asciinema.org certificate or github.com one?
Author
Owner

@redpola commented on GitHub (Jun 22, 2015):

I have no idea. What does the script attempt to connect to?

<!-- gh-comment-id:114251260 --> @redpola commented on GitHub (Jun 22, 2015): I have no idea. What does the script attempt to connect to?
Author
Owner

@ku1ik commented on GitHub (Jun 22, 2015):

Script connects to github. You can download it first, then ran with verbose output like this:

bash -x install
<!-- gh-comment-id:114260274 --> @ku1ik commented on GitHub (Jun 22, 2015): Script connects to github. You can download it first, then ran with verbose output like this: ``` bash -x install ```
Author
Owner

@svalleru commented on GitHub (Jun 22, 2015):

I am hitting same issue even with -k/--insecure flag:

My OS: Darwin foo.local.com 14.4.0 Darwin Kernel Version 14.4.0: Sun Apr 19 20:30:19 PDT 2015; root:xnu-2782.30.2~2/RELEASE_X86_64 x86_64

<!-- gh-comment-id:114262538 --> @svalleru commented on GitHub (Jun 22, 2015): I am hitting same issue even with -k/--insecure flag: My OS: Darwin foo.local.com 14.4.0 Darwin Kernel Version 14.4.0: Sun Apr 19 20:30:19 PDT 2015; root:xnu-2782.30.2~2/RELEASE_X86_64 x86_64
Author
Owner

@ku1ik commented on GitHub (Jun 23, 2015):

Does this command trigger certificate error for you?

curl -sL https://asciinema.org/install
<!-- gh-comment-id:114393401 --> @ku1ik commented on GitHub (Jun 23, 2015): Does this command trigger certificate error for you? ``` curl -sL https://asciinema.org/install ```
Author
Owner

@redpola commented on GitHub (Jun 23, 2015):

I think I created some confusion. When I added the -k flag to the curl invocation in the install script the problem was solved for me. I did not need the flag on the command line.

<!-- gh-comment-id:114427742 --> @redpola commented on GitHub (Jun 23, 2015): I think I created some confusion. When I added the -k flag **to the curl invocation in the install script** the problem was solved for me. I did not need the flag on the command line.
Author
Owner

@ku1ik commented on GitHub (Jun 23, 2015):

Then it's a problem with github.com certificate, or your OS (as I actually expect github to have the cert right).

Anyway, there's homebrew package so you can brew install asciinema instead of doing curl/sh thing.

<!-- gh-comment-id:114429376 --> @ku1ik commented on GitHub (Jun 23, 2015): Then it's a problem with github.com certificate, or your OS (as I actually expect github to have the cert right). Anyway, there's homebrew package so you can `brew install asciinema` instead of doing `curl/sh` thing.
Author
Owner

@redpola commented on GitHub (Jun 23, 2015):

OS X certainly seems to be more paranoid than whatever OS you're using.

Is there a macports version? I don't use brew.

Either way, this does not fix the problem as stated. The documentation needs updating or the problem otherwise resolving.

<!-- gh-comment-id:114568431 --> @redpola commented on GitHub (Jun 23, 2015): OS X certainly seems to be more paranoid than whatever OS you're using. Is there a macports version? I don't use brew. Either way, this does not fix the problem as stated. The documentation needs updating or the problem otherwise resolving.
Author
Owner

@svalleru commented on GitHub (Jun 23, 2015):

Installing via homebrew works fine; you might wanna be more thorough with your install script.

<!-- gh-comment-id:114574060 --> @svalleru commented on GitHub (Jun 23, 2015): Installing via `homebrew` works fine; you might wanna be more thorough with your install script.
Author
Owner

@ku1ik commented on GitHub (Jun 23, 2015):

Ok, great. I'll try to detect OS X and display homebrew snippet as the recommended one.

<!-- gh-comment-id:114579230 --> @ku1ik commented on GitHub (Jun 23, 2015): Ok, great. I'll try to detect OS X and display homebrew snippet as the recommended one.
Author
Owner

@ku1ik commented on GitHub (Jun 23, 2015):

@redpola there's macports version, yeah: https://asciinema.org/docs/installation

<!-- gh-comment-id:114579668 --> @ku1ik commented on GitHub (Jun 23, 2015): @redpola there's macports version, yeah: https://asciinema.org/docs/installation
Author
Owner

@redpola commented on GitHub (Jun 24, 2015):

Great stuff. Thanks very much!

<!-- gh-comment-id:114828162 --> @redpola commented on GitHub (Jun 24, 2015): Great stuff. Thanks very much!
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#697
No description provided.