How can I fix my problem "homebrew cannot working on a new terminal" on Manjaro - homebrew

Can't use brew on an other konsole (terminal) page.
Hi I'm here to ask for a help from you guys
I installed home brew so well. And it worked in the same konsole which I have done installation. But then, when I wanted to use it on an other terminal (new terminal page) I got error like zsh: correct 'brew' to 'free' [nyae]? and also zsh: command not found: brew . I don't know what to do, I tried a lot of things but still nothing changed than before.

Related

Phraseapp: Command not found

I'm new to using phraseApp and fastlane. I was trying to pull the latest changes in Phraseapp using fastlane. After calling "phraseapp_all" I get an error message Exit status of command 'cd ../Project/Resources && phraseapp pull' was 127 instead of 0. sh: phraseapp: command not found.
I tried reinstalling phrase but no luck. Any idea on how to fix this?
Use brew install phraseApp instead of phrase only.
I thought that phraseApp was just renamed to phrase. They were somewhat different.
This worked for me.
brew tap phrase/brewed
Install phraseapp client:
brew install phrase/brewed/phraseapp

Not able to install homebrew on my m1 macbook

I am trying to install homebrew on m1 MacBook but I am getting this error message every time when I try to run this command.
Please anyone help me to fix this.
How to install HomeBrew on new MacBook: macOS Big Sur
install HomeBrew from terminal Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, we need to change path
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!
To change path, follow Next steps: - Add Homebrew to your PATH in /Users/username/.zprofile As mentioned in terminal:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/username/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
All done ready to use brew, check HomeBrew version:
brew --version
Output
Homebrew 3.1.5
Homebrew/homebrew-core (git revision 5741ae3fec; last commit 2021-05-08)
Ok, I managed to figure this out after being pointed in the right direction. Full details can be found here: https://github.com/Homebrew/homebrew-cask/issues/100633
In summary, my ISPs (Virgin Media) Web Safe Settings were on, and this resulted in some issue with connecting to github (ping GitHub.com via terminal and search the IP to see where its pointing to), so had to turn off the web settings, rebooted my router just in case and used a new terminal window to ping github.com again and noticed a change in the IP address. Tried reinstalling Homebrew again and it worked!!
in my case, i fix the problem open the terminal as rosseta.
finder - application - utility - terminal - right mouse button - 'bring the imformation (i'm not sure, i'm korean user)' - check the 'open with the rosseta' - and try install homebrew again ! !
(copy-paste Homebrew with the terminal)
and...
==> Installation successful!
But, you will get a warning " /opt/homebrew/bin is not in your PATH". Then, follow the Next steps guide showed in terminal to finish add Homebrew to your PATH.
To end, type "brew -v" to check installed brew version.

Error when installing PHP70 with Homebrew

When I try to install PHP7 with Homebrew I get this error
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /usr/sbin/apxs follows:
apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.
configure: error: Aborting
And the command I've used to install it is :
brew install homebrew/php/php70
Here's a screenshot of my terminal:
Terminal Screen shot
Does any one have a solution for this, knowing that I've searching the web for a solution without any luck
Try this if you're upgrading:
brew reinstall php70 --without-apache
otherwise if you're installing php70 for the first time, try the following::
brew install home-brew/php/php70 --without-apache
Faced a similar issue, found it under this GitHub issue: https://github.com/Homebrew/homebrew-php/issues/3283

reset $PATH homebrew

I'm very new to coding and I was beginning to set up my development environment according to a Mackenzie Child youtube video. After downloading iTerm and installing homebrew, I was having trouble with updating the Ruby 2.0.0 version to 2.2.2. In the video Mackenzie changes his ~/.bash_profile and restarts iTerm to resolve the problem. I did the same thing except now iTerm doesn't recognize any commands. I can't access bash_profile or run any commands.
I believe the problem occurred when I changed my bash_profile except I can't access/find it anywhere. The command line doesn't let me access it either.I can't find any solutions to my specific problem online so I'm grateful if anyone can help.
Screenshot of iTerm
Thanks!
If restarting iTerm didn't fix your problem, then:
Open iterm.
Run export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin .
Run open -a TextEdit ~/.bash_profile . Paste what's in that file here.

GeoIP install failure, advice needed

Several hours of frustration here and looking to see if anyone has any advice.
I'm trying to install GeoIP vie Homebrew and receive the following error just prior to the install finishing:
"Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link geoip'"
brew link geoip returned this error:
"Error: Could not symlink file: /usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf.default
/usr/local/etc is not writable. You should change its permissions."
I also tried "sudo link geoip" and recieved this error:
"Cowardly refusing to `sudo brew link'"
I'm not entirely familiar with permissions and such and was wondering what I needed to do from the command line to get this to link properly. Any help greatly appreciated.
I think I found the answer. This script fixes the permissions issue:
ruby -e "$(curl -fsSL https://gist.github.com/raw/768518/fix_homebrew.rb)"

Resources