Phalcon php installation error: download failed - homebrew

I'm trying to download and install phalconphp using Homebrew on my Mac (Sierra). I’m getting this error:
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Things I did:
Reinstalled Homebrew
brew update
Tried to download portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz (result: This site can’t be reached)
Any idea what is the problem? :/

Related

brew install specific version of a package fails

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.

Failed to download xcodegen from Homebrew on buddybuild

We have our CI job running on buddybuild successfully for years. Today it failed suddenly with some errors like
==> Downloading https://homebrew.bintray.com/xcodegen-2.20.0.catalina.bottle.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://ghcr.io/v2/homebrew/core/xcodegen-2.20.0.catalina.bottle.tar.gz
==> Downloading from https://github.com/-/v2/packages/container/package/homebrew%2Fcore%2Fxcodegen-2.20.0.catalina.bottle.tar.gz
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "xcodegen"
Download failed: https://ghcr.io/v2/homebrew/core/xcodegen-2.20.0.catalina.bottle.tar.gz
(We use xcodegen to generate the our iOS project/workspace.)
Searching online we found a similar post https://travis-ci.community/t/cannot-install-anything-from-homebrew/11445 but were not sure how to update homebrew on buddybuild. Any ideas will be highly appreciated.

How to manually download brew package for installation?

Being in China means sometimes you just can't upgrade brew packages via brew upgrade it would run into error as such:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku"
Download failed: https://cli-assets.heroku.com/heroku-v7.18.10/heroku-v7.18.10.tar.xz
I used to download these failed packages to ~/Library/Caches/Homebrew and then run the command again but this seems to work no longer after brew changed its cache structure for the better or worse (worse for me apparently).
What can I do now if I want to keep using brew to upgrade all my packages?
After I tried your method, this is the error that pops up:
==> Upgrading heroku/brew/heroku
==> Installing dependencies for heroku/brew/heroku: heroku/brew/heroku-node
==> Installing heroku/brew/heroku dependency: heroku/brew/heroku-node
==> Downloading https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cli-assets.heroku.com:443
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "heroku-node"
Download failed: https://cli-assets.heroku.com/homebrew/node-11.3.0.tar.xz
Also, say if I download go from https://dl.google.com/go/go1.11.4.src.tar.gz and rename it to go--git, which is the output of brew --cache go, but it still failed the installation.
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "go--gotools"
Failure while executing; `git clone --branch release-branch.go1.11 https://go.googlesource.com/tools.git /Users/aero/Library/Caches/Homebrew/go--gotools--git` exited with 128. Here's the output:
Cloning into '/Users/aero/Library/Caches/Homebrew/go--gotools--git'...
fatal: unable to access 'https://go.googlesource.com/tools.git/': Failed to connect to go.googlesource.com port 443: Operation timed out
If I run brew --cache go--gotools, it will say Error: No available formula with the name "go--gotools"
If, for example, you want to upgrade Gradle, you can find the location and the name of the cached file expected by Homebrew with:
brew --cache gradle
You will obtain:
/Users/myself/Library/Caches/Homebrew/downloads/ae76f5a0a19f5c141d5ee602a2ecb45011393fbba2206f3a960599d7bba92b9b--gradle-5.0-all.zip
Extract the url of the zip file from:
brew edit gradle
Download the file and rename it as in the output of brew --cache
You can then upgrade Gradle even offline with:
brew upgrade gradle
Depending on formulas, you will have to manually install all their dependencies.
If you use the -v option of brew upgrade or brew install or whichever command you used that needs to download the file, it will give you the output file where the downloaded file would have gone. You can then download your file manually to this place.

OS X Yosemite : cannot brew install imagemagick on Yosemite : libtool-2.4.6 error?

Trying to install imagemagick ( to be used w PaperClip gem) on my mac ( Yosemite 10.10.5) raising error with 'libtool' what happen with it ?
$ brew update
$ brew install imagemagick
==> Installing dependencies for imagemagick: libtool, jpeg, libpng, libti
==> Installing imagemagick dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bott
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Error: Failed to download resource "libtool"
Download failed: https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Trying a mirror...
==> Downloading https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
Error: Failed to download resource "libtool"
Download failed: https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
Had the same error and https://github.com/Homebrew/homebrew/issues/43154 fixed it for me. You will need to remove SSL_CERT_DIR variable from .bash_profile or .bashrc and you might also need to run unset SSL_CERT_DIR
In my case, the homebrew-directory (~/Library/Caches/Homebrew) had root as owner. So executing
sudo chown -R {myUserName}:staff Homebrew
fixed this issue and Homebrew worked again as expected.

Generated Dart Editor web app not working

I just downloaded the latest version of the dart editor and did the following:
1) Created a new web application. When I try to run, I get the following error:
> Failed to load resource: the server responded with a status of 404
> (Not Found)
> http://127.0.0.1:3030/C:/DartApps/HelloWeb/web/packages/browser/dart.js
2) After some research, I tried the following - thinking I may need some dependencies - Pub install. Now I get the following error:
> Pub install failed, [1] Resolving dependencies... Got socket error
> trying to find package "browser" at https://pub.dartlang.org. OS
> Error: Peer's Certificate issuer is not recognized., errno = -8179
Any ideas what I can do to get past this issue? I'm not getting very far.
Thanks,
Shon
Try running the pub update command first. That should update your dependencies.
http://pub.dartlang.org/doc/pub-update.html

Resources