Unable to install jenkins in mac - macos

I am trying to install the Homebrew throwgh following command in Terminal:
brew install jenkins-lts
but the result is: -bash: brew: command not found
what is your recommendation

Sounds like you havent got brew installed, please run the following in a terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
There is further install guidance here: https://docs.brew.sh/Installation if required

Related

mac install ruby failed. Error running '__rvm_make -j4'

when I executed "rvm install 2.7.2" in the terminal, I got the Error running '__rvm_make -j4',If anyone can help, I would appreciate it
using macOS BigSur had the same problem, this worked for me:
CFLAGS="-Wno-error=implicit-function-declaration" rvm install x.x.x
This helped for me: https://github.com/rvm/rvm/issues/5043#issuecomment-967000943
Copy below:
Right click Terminal from the Application/Utilities folder, Get Info, tick the "Open using Rosetta" box.
Uninstall Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
rm -rf /opt/homebrew/*
sudo rm -rf /opt/homebrew
Reinstall Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Restart terminal
Check Homebrew is working fine: brew doctor
Reinstall openssl: brew install openssl
Install Ruby: rvm install 2.7 Or any version

Unable to install homebrew in macos

I am trying to install homebrew using command /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" on my mac but I am getting this error:
HEAD is now at aa937b902 Merge pull request #11474 from cho-m/fix-tar-validation.
I'm using zsh and already installed the Xcode using the command xcode-select --install
What can I do to solve the error? Any help is appreciated.

how to uninstall homebrew using an arm based Mac?

I installed homebrew today. And I did something wrong so that my homebrew can't work now. Since I use an arm based mac, I am hard to find solution to uninstall my homebrew which installed in /opt/homebrew/.
To uninstall Homebrew, run the uninstall script from the Homebrew/install repository.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Download the uninstall script and run /bin/bash uninstall.sh --help to view more uninstall options.
Make sure your homebrew path is correct and then run the script:
echo $HOMEBREW_PREFIX #=> /opt/homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
See: https://github.com/homebrew/install#uninstall-homebrew

Error when trying to install rsync with Brew on macOS High Sierra

Im trying to install rsync on macOS high sierra using Brew :
brew install rsync
But i got this error :
Error: Could not create /usr/local/Cellar <br>
Check you have permission to write to /usr/local
You need just to uninstall and reinstall brew on your mac:
Before that execute to below command:
brew bundle dump
After that execute
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Mac - Can’t install Homebrew

I tried to install Homebrew like this:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
It didn’t install correctly so I closed Terminal and tried again. Now it displays me the following message:
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
I tried to do that but without success. The following message is displayed:
brew: command not found
So, the problem is that Homebrew is installed but actually it is not installed. Any suggestions how to solve this problem? Thank you!
This seems to have resolved the issue for me
rm -rf /usr/local/Cellar /usr/local/.git
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Afterward, I can now
brew doctor
You may also find the gist linked to at the following page of use:
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md
The URL contained in the command you are using is not correct. Ruby will dump out lines of HTML and then fail. Use this command instead:
ruby -e "$(curl -fsSkL raw.github.com/Homebrew/homebrew/go/install)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
this is work for me!
This worked for me:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
I removed the folder /usr/local/.git and homebrew installed just fine afterwards.
What was the message given when it didn't install correctly the first time? Is the brew binary present in /usr/local/bin ? If so, you probably just need to add it to your path, see: Error Installing Homebrew - Brew Command Not Found
Attempting to resolve the same issue, I found out that I had mistyped while making changes to my PATH. I did not have /usr/local/bin. I would then recommend running
$ echo $PATH
in terminal to see if you have the correct directories.You can also run
$ vi ~/.bash_profile
to see it and make changes if neccessary
If you cannot install by using curl try to open the install script from your browser, save it in a file called i.e brew_install.rb somewhere on your disk and run the script locally
ruby brew_install.rb
This worked for me.
Follow these steps
1 ==> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2 ==> sudo rm -rf /usr/local/Homebrew/
sudo rm -rf /usr/bin/Homebrew/
3 ==> install brew
1 -- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 -- sudo chown -R $(whoami) /usr/local/var/homebrew
If get these error try below command
Error: Failed to link all completions, docs and manpages:
sudo chown -R $(whoami) /usr/local/*
then follow these commands
/usr/local/bin/brew update --force
This is the most recent one that works for me.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I found it here in case it is updated later. https://brew.sh/

Resources