jmeter is not downloading using brew in mac osx - macos

I tried to install jmeter by following this question but I fail and got below error
$ brew install jmeter
==> Downloading http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/apache-jmeter-2.11.tgz
==> Best Mirror http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz
curl: (22) The requested URL returned error: 404 Not Found
Error:Failed to download resource "jmeter" Download failed:
http://mirror.cogentco.com/pub/apache/jmeter/binaries/apache-jmeter-2.11.tgz
Why is this? Is the link broken and how to replace it?

Try to first update brew:
brew update
Then retry it again, as it should download jmeter 2.12 not 2.11.
Also if you want to download jmeter-plugins with it, you can use:
brew install jmeter --with-plugins

Related

Tell homebrew never build from source

During package installation via homebrew on macOS, if my network is not stable and one download fails, homebrew will download the source and start building from source. This will take a long time and high CPU usage, which is unwanted. How can I tell homebrew retry or just stop when downloading fails?
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.27.1.mojave.bottle.tar.gz
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to homebrew.bintray.com:443
Error: Failed to download resource "sqlite"
Download failed: https://homebrew.bintray.com/bottles/sqlite-3.27.1.mojave.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://sqlite.org/2019/sqlite-autoconf-3270100.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/sqlite/3.27.1 --enable-dynamic-extensions --enable-readline --disable-editline
^C
Late answer but another way to make it fail without building from source is setting the HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK environment variable explained in the man page, e.g. export HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK=1.
I haven't tested it yet, as I found the solution after I needed it.
You can brew fetch --retry <formula> to retry the fetching if it fails. Once the bottle is fetched, you can brew install it.
Combine both commands with:
brew fetch --retry <formula> && brew install <formula>

brew install bash failing

Trying to get a more recent version of bash installed on my Mac using brew.
brew is installed and working fine. When I try to run:
brew install bash
however I get the following error:
==> Downloading https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2a
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "readline--patch"
Download failed: https://gist.githubusercontent.com/jacknagel/d886531fb6623b60b2af/raw/746fc543e56bc37a26ccf05d2946a45176b0894e/readline-6.3.8.diff
And indeed, there's nothing at:
https://gist.githubusercontent.com/jacknagel
Update your Homebrew formulae and try again: brew update.

Installing ant on macos with brew gone wrong?

nma-2:test nikolaialeksandrenko$ brew install ant
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
==> Best Mirror http://apache.igor.onlinedirect.bg/ant/binaries/apache-ant-1.9.0-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
I'm trying to install ant on my mac with brew ...
I'm i doing something wrong?
You should first try to make an update of brew:
brew update
If this does not work, have a look here for alternative installation: https://superuser.com/questions/610157/how-do-i-install-ant-on-os-x-mavericks

Error installing hadoop with homebrew

I'm trying to get hadoop setup locally on my Mac, but am getting the following error when trying to brew install hadoop:
$ brew install hadoop
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
==> Best Mirror http://apache.mirrors.pair.com/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
curl: (22) The requested URL returned error: 404
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz
Any ideas what I should do?
You have to do a brew update first. It was pointing to the wrong version, but that seems to be fixed now.
It seems that Homebrew formula for Hadoop is outdated, it points to 1.1.2 instead of 1.2.1. Until the guys from Homebrew fix the bug you can do the following steps in order to install Hadoop 1.1.2:
Download manually version 1.1.2 from http://archive.apache.org/dist/hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.gz to any folder in your computer
Then move the file hadoop-1.1.2.tar.gz to homebrew's temporary folder, if you have not changed it before, it should be located in /Library/Caches/Homebrew
Finally you can install Hadoop using Homebrew, now brew will find that the file has already been downloaded and will proceed with installation as follows:
$ brew install hadoop
==> Downloading http://www.apache.org/dyn/closer.cgi?path=hadoop/core/hadoop-1.1.2/hadoop-1.1.2.tar.
Already downloaded: /Library/Caches/Homebrew/hadoop-1.1.2.tar.gz
==> Caveats
In Hadoop's config file:
/usr/local/Cellar/hadoop/1.1.2/libexec/conf/hadoop-env.sh
$JAVA_HOME has been set to be the output of:
/usr/libexec/java_home
==> Summary
/usr/local/Cellar/hadoop/1.1.2: 271 files, 78M, built in 2 seconds

Could not install Ruby 2.0 because Openssl.org down?

I tried to install ruby-2.0.0-p0 on Macintosh at several times. But I never success. I tried brew install openssl or rvm pkg install openssl but progress bar is always 0% and I never access to www.openssl.org. There are no way to install them without openssl. Is this only my probrem? I found any similar resources but there are not help for me... Am I banned from Openssl? Or it is not only my problem? Could you someone tell me any good advice?
EDIT
Thanks #fmendez, But I hit same error again... Full trace on Gist
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Error: Download failed: http://openssl.org/source/openssl-1.0.1e.tar.gz
$ brew install openssl
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
0.0%
curl: (7) couldn't connect to host
Error: Download failed: http://openssl.org/source/openssl-1.0.1e.tar.gz
EDIT
Finally I've connected openssl.org. I didn't know what was the problem :\
Sorry for any attentions. I will delete this.
The url pointed to by the latest openssl brew formula is: http://openssl.org/source/openssl-1.0.1e.tar.gz and it is working fine. Try doing a brew update, then the following:
rvm get head
rvm pkg remove
rvm requirements run
rvm reinstall 2.0.0
Note
After running the rvm requirements make sure you install any library hinted by homebrew if any.

Resources