First I tried downloading from the website, ngrok-stable-darwin-amd64.zip. When I try unzipping via Terminal, I get:
Archive: /Users/User/Downloads/ngrok-stable-darwin-amd64.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/User/Downloads/ngrok-stable-darwin-amd64.zip or
/Users/User/Downloads/ngrok-stable-darwin-amd64.zip.zip, and cannot find /Users/User/Downloads/ngrok-stable-darwin-amd64.zip.ZIP, period.
Unzipping with Unarchiver responds with:
There was a problem while reading the contents of the file
"ngrok-stable-darwin-amd64.zip": Data is corrupted
Tried the homebrew route, brew cask install ngrok, to no avail:
==> Downloading https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.z
##### 7.0%
curl: (56) SSLRead() return error -9806
Error: Download failed on Cask 'ngrok' with message: Download failed: https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.zip
The incomplete download is cached at /Users/User/Library/Caches/Homebrew/Cask/ngrok--2.1.3,4VmDzA7iaHb.zip.incomplete
I'm trying to enable Vagrant share. Why can't I install ngrok, or more importantly, how can I?
Please & thanks.
You can install ngrok as a global npm package. Try this:
npm install ngrok -g
For more information visit check this page.
Related
I was trying to install gtk via Homebrew, and one of the steps was to install glib. Due to the poor internet environment, the files cannot be accessed by Homebrew. As told in https://docs.brew.sh/Tips-N%27-Tricks#pre-downloading-a-file-for-a-formula, I downloaded glib-2.62.3.tar.xz manually, and renamed it to /Users/username/Library/Caches/Homebrew/downloads/1ceb5460421ff37cf2c270573cd81d23a3fc0629114ebe78eee705acbd80c9e7--glib-2.62.3.tar.xz, which is the output of brew --cache -s glib.
However, as I run brew install glib again, the message was:
==> Downloading https://download.gnome.org/sources/glib/2.62/glib-2.62.3.tar.xz
Already downloaded: /Users/xwm/Library/Caches/Homebrew/downloads/1ceb5460421ff37cf2c270573cd81d23a3fc0629114ebe78eee705acbd80c9e7--glib-2.62.3.tar.xz
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/61642
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "glib--patch"
Download failed: https://raw.githubusercontent.com/Homebrew/formula-patches/6164294a7/glib/hardcoded-paths.diff
Although this file can be retrived manually, by this time I have no idea how to reaname it so as to be recongnized by Homebrew. How should I proceed?
Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard.
bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version>
However, I am able to install Search Guard successfully on a different network by running the above command.
Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation.
/usr/share/elasticsearch# bin/elasticsearch-plugin install file:///home/xxxx/xxxx/search-guard-5-5.2.0-10-sgadmin-standalone.zip
This one is failing with the below error.
-> Downloading file:///home/xxx/xxxx/search-guard-5-5.2.0-10- sgadmin-standalone.zip
[=================================================] 100%
ERROR: `elasticsearch` directory is missing in the plugin zip
I downloaded zip/tar.gz from this maven repository of search gaurd.
Is anyone also facing the same issue. If not, kindly help in solving this one.
Download this file from maven to /home/xxxx:
https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.0-11/search-guard-5-5.2.0-11.zip
Install it:
bin/elasticsearch-plugin install -b file:///home/xxxx/search-guard-5-5.2.0-11.zip
Other releases are available here: https://oss.sonatype.org/content/repositories/releases/com/floragunn/
A while back I had nix installed but I have removed it, however now when I try to install threadscope I get the follwowing error:
Henriks-MBP:trial henke$ brew install homebrew/gui/Threadscope
==> Installing threadscope from homebrew/gui
==> Installing dependencies for homebrew/gui/threadscope: libpng, freetype, fontconfig, pixman, gettext, libffi, glib, cairo, ghc, jpeg, libtiff, gobject-introspection, gdk-p
==> Installing homebrew/gui/threadscope dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.21.el_capitan.bottle.tar.gz
curl: (77) SSL: can't load CA certificate file /Users/henke/.nix-profile/etc/ssl/certs/ca-bundle.crt
Error: Failed to download resource "libpng"
Download failed: https://homebrew.bintray.com/bottles/libpng-1.6.21.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.21.tar.xz
curl: (19) Given file does not exist
Trying a mirror...
==> Downloading https://dl.bintray.com/homebrew/mirror/libpng-1.6.21.tar.xz
curl: (77) SSL: can't load CA certificate file /Users/henke/.nix-profile/etc/ssl/certs/ca-bundle.crt
Error: Failed to download resource "libpng"
Download failed: https://dl.bintray.com/homebrew/mirror/libpng-1.6.21.tar.xz
Now why is homebrew trying to find things in .nix-profile and what can I do to install threadscopes dependencies?
This isn't homebrew specifically looking into the .nix-profile directory. This is a fragment of having nix installed.
When you installed nix, it installed its own CA certs. Check the value of SSL_CERT_FILE. in my case:
$ echo $SSL_CERT_FILE
/Users/my-user/.nix-profile/etc/ssl/certs/ca-bundle.crt
I have have had issues with this cert when attempting to use curl with https, which is what homebrew is doing.
I'm assuming you just recently removed nix and still have that variable set in your shell. If you just close any currently open shells and open brand new ones, this should be fixed.
You could also try unset SSL_CERT_FILE in any open shells instead of closing / opening them all.
I have tried the online and offline instructions for installing marvel and sense, but nothing works. I have ES 2.2.1 and Kibana 4.4.2
I tried
plugin install marvel-agent
but i get
Installing marvel-agent...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.2.0/marvel-agent-2.2.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
same error for
bin/plugin install license
bin/kibana plugin --install elasticsearch/marvel/latest
so then i tried downloading the files and follow instructions on
https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#offline-installation
i tried
plugin install file:///C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip
but i get
-> Installing from file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip...
Trying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip ...
Downloading ..DONE
Verifying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
same for
plugin install file:///C:/Users/xyz/ElasticSearch/zips/license-2.2.0.zip
and finally for
kibana plugin --install marvel --url file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
i get
Installing marvel
Attempting to transfer from file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
Error: ENOTFOUND
Plugin installation was unsuccessful due to error "No valid url specified."
Please point out what i am doing wrong.
For me, the last installation instruction required a different format for the url.
file://c:/Temp/ElasticSearch/marvel-2.2.1.tar.gz. Basically, remove one of the forward slashes.
download the Sense tar file from the following link: https://download.elasticsearch.org/elastic/sense/sense-latest.tar.gz
open cmd form kibana\bin location
then you can install Sense using the following command:
kibana plugin -i sense -u file:PATH_TO_SENSE_TAR_FILE
brew install php55
==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 60e14c255f2a461a7a26639b84a2fc448cc2f91c8dead0e9fd00cd8ba27a2e96
Actual: 0d9438c2557db5809f4232148ca1567516e7ece9bf8726853ceac4a111cb8690
Archive: /Library/Caches/Homebrew/php55-5.5.11
To retry an incomplete download, remove the file above.
I tried
brew cleanup && brew update
but not worked
I had the same problem with MongoDb. I was able to fix it first I changed the permission to admin.
Then I ran
brew cleanup && brew update
After that I ran
brew install mongodb
and it worked like a charm
I also tried brew cleanup and brew update but still got the same issue so i did this
brew edit <application>
and replaced sha256 value with actual value shown in error msg.
and this worked out for me, hope it helps you too.
Error: libvirt: SHA256 mismatch
Expected: ac06a7b7a74cf83e953f50e33455df97fc87880ebdac4f1dca89a62331375b1a
Actual: 3346ebf9df9fc4dd37b4c0a5bf1ce80a577b97a7a48dac3febf22aa857be9a98
File: /Users/mek/Library/Caches/Homebrew/downloads/6287efc2ec4d5147e8389b97caeb20dd0d4acec390b5910b2454a4dd018654c1--libiscsi--1.19.0.big_sur.bottle.tar.gz
To retry an incomplete download, remove the file above.
To resolve above error run below commands:
rm "filename"
brew install "package" -f
I had the same problem with watchman.
brew install watchman
response for :
==> Installing dependencies for watchman: automake, pcre
==> Installing watchman dependency: automake
==> Downloading https://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.xz Already
downloaded:
/Users/piccolo/Library/Caches/Homebrew/automake-1.16.1.tar.xz
==> Downloading https://git.savannah.gnu.org/cgit/automake.git/patch/?id=a348d83
Already downloaded:
/Users/piccolo/Library/Caches/Homebrew/automake--patch-7a57ca2b91f7f3c0b168cf5ffbc8a1b2168f3886bcadcc15412281472dace3ce.git
Error: SHA256 mismatch Expected:
7a57ca2b91f7f3c0b168cf5ffbc8a1b2168f3886bcadcc15412281472dace3ce
Actual:
c048ce853eef073a5dfce34fcf9af786e8525e384e01dbbf4e6066623985d4c7
Archive:
/Users/piccolo/Library/Caches/Homebrew/automake--patch-7a57ca2b91f7f3c0b168cf5ffbc8a1b2168f3886bcadcc15412281472dace3ce.git
To retry an incomplete download, remove the file above.
then I did this:
brew uninstall automake
brew cleanup
brew update
brew install watchman
Then it worked.
Some one face the same issue.
https://github.com/Homebrew/homebrew-php/issues/875
"I checked the downloaded file, and it's the html download page rather than the tarball.
It looks like php now wants the URLs to be in the form of http://www.php.net/get/php-5.4.22.tar.bz2/from/a/mirror instead of http://www.php.net/get/php-5.4.22.tar.bz2/from/this/mirror
EDIT: I'm totally mistaken with this. from/this/mirror is the correct one, but it's borked on php's side."
I got fix, using steps wrote by MoOx:
cd /Library/Caches/Homebrew/downloads/
and delete manually the package and run againbrew upgrade works fine!
Sometimes, you may have a package that have a new SHA (eg: github updated the way it compress tar.gz), so best thing to do is to fix the original formula (you can try locally and also push your change upstream).
This can happen if a corporate security policy intercepts the request to the cask and responds with an Access Blocked page instead. You can tell by seeing the file's URL rewritten and its content being HTML. In that case you have to ask them to relax the policy or you're out of luck.