I recently changed from windows to mac air m1 and I have been having problems with the installation of brew.
I followed the steps that are displayed on the website, I ran the two commands after the next steps section and it works, but after I close the terminal it displays:
zsh: command not found: brew
I do the installation process again and it works but I don't want to do it every time I open the terminal(iterm), any solutions?
Related
I installed iterm2 and oh my zsh on my new macbook pro M1. Now I can not use the internal vscode terminal or mac terminal.
What I have tried:
I have updated my mac, vscode, iterm2, brew, and oh my zsh.
I am using zsh.
I checked my system preferences/users & groups/unlock/advanced options/login shell: /usr/local/bin/zsh. Which seems correct?
In iterm2 I checked echo $SHELL. (see image)
In iterm2 I checked echo $PATH. (see image)
I ran brew doctor. No issues there.
Checked that I had oh my zsh installed and updated.
iterm2-shell/path/brew/ohMyZsh
In vscode I have looked at code/preferences/settings/[typed]terminal
checked terminal>integrated>shell: Osx
checked that json file. I don't know what Im looking for there.
vscode-settings.json
Need Help With:
In vscode the terminal window does not open now and I get a error message.
vscode internal terminal error message
Now that I have iterm2, am I no longer able to use the internal mac terminal? When I go to open the internal mac terminal it is stuck on the following screen.
Internal mac terminal
Any help or guidance would be much appreciated. I am new to the terminal and command line.
Thanks in advance.
Before updating to macOS Mojave, OpenCobolIDE was working fine, but ever since I updated, every time I try to open the application, it just closes a second after I pressed the icon. This I probably compatibility issues with the now OS, but is there any methods to fix it without downgrading my OS?
Thanks in advance
I had problems with OpenCobolIDE 4.7.4 on Mac after upgrade to Mojave - the program gets stalled with spinning wheel. Instead of using the download on https://launchpad.net/cobcide/+download, I have installed it with pip3:
In a terminal window I ran the command : sudo pip3 install OpenCobolIDE --upgrade
For more info see https://gist.github.com/ejlp12/4f59bd35cbfe4c5ffcf7955d5680a298
It installs OpenCobolIDE 4.7.6 and it runs smoothly after installation. The executable can be found in /usr/local/bin
I am installing homebrew on macOS High Sierra 10.13. I have already installed the Command Line Tools for Xcode which is a requirement for homebrew. When installation of homebrew starts I am forced to install command line tools (or abort). When I do this the installation process hangs. I don't understand why this hangs but more importantly I don't understand why it is trying to install CLT when I can show that they are already available on my machine.
Right click the link below and save it as homebrew-install.sh
https://raw.githubusercontent.com/Homebrew/install/master/install.sh
Open homebrew-install.sh with a text editor and change the definition of the method should_install_command_line_tools to return 1
Make homebrew-install.sh executable (by running chmod u+x homebrew-install.sh) and then run ./homebrew-install.sh
In my case the xcode command line tools can be installed.
My environment is mac os.
In the terminal please enter
xcode-select --install
And it takes a little time to install
Check out macOS requirements in this article [https://docs.brew.sh/Installation]
good luck.
I'm trying to install vNext on my Macbook but when I run source kvm.sh the terminal just hangs.
My setup:
OSX 10.9.5 (Mavericks)
Mono 3.10.0
My problem:
I followed the instructions for installing vNext on OS X from the GitHub repo:
https://github.com/aspnet/Home
Essentially:
brew tap aspnet/k
brew install kvm
source kvm.sh
Everything seems to go fine until the step where I run source kvm.sh, which hangs the terminal with a message "[Process completed]".
Adding source kvm.sh to ~/.zshrc file starts the terminal and immediately hangs it once that runs.
What I've tried:
I uninstalled kvm (brew uninstall kvm) and aspnet/k (brew untap aspnet/k) and deleted the directory ~/.kre, then tried reinstalling it all again.
No luck.
Any ideas? Here's a screenshot:
The kvm currently not working in ZSH, Running it under /bin/bash should work quite well.
Also, make sure you remove anything to do with kvm from your .zshrc file and you should be good to go again.
according to https://github.com/aspnet/kvm/issues/83 , you can replace the kvm.sh file with the version from dev branch, which can be found under https://github.com/aspnet/kvm/blob/dev/src/kvm.sh , and zsh should be happy with it afterwards.
Worked for me.
Recently I uninstalled and reinstalled Homebrew entirely on my macbook (OSX 10.9.5) because there was some problem with my Python. Then I reinstalled all the programs in Homebrew and everything worked fine except for Emacs. When I tried to link emacs
$ brew link emacs
Linking /Users/myname/homebrew/Cellar/emacs/24.3... 21 symlinks created
I expected it to create a shortcut in Applications and I open the Emacs GUI from there, but Emacs is not showing up there and I don't know how I can open the GUI. What did I do wrong and how can I link my Emacs?
Try running it from the command line to see what's wrong:
emacs --debug-init
The program is likely not able to find some elc files or something among those lines.
If all fails, try using the master branch (I update my emacs frequently, such as today).
brew install emacs --HEAD --use-git-head --cocoa --srgb --with-xml2 && brew linkapps