This question already has answers here:
Cannot install CMake for Mac OS X 10.8 [closed]
(1 answer)
Installing cmake with home-brew
(3 answers)
Closed 3 years ago.
I'm following this video: https://www.youtube.com/watch?v=7vJJMU2gMn4
but when I tried to run cmake using the command "cmake ." on Mac (which is around 2:02 in video), the results on my Mac show that the command cmake is not found. May I ask some help to run cmake on Mac, please?
If you have homebrew, just type:
brew install cmake
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
And then cmake
brew install cmake
Related
This question already has answers here:
Error installing cocoapods : Failed to build gem native extension
(2 answers)
Closed 3 months ago.
When I try to install Cocoapods using sudo gem install cocoapods, I get the follow error output:
This is happening on a MacBook Pro with an M1 chip.
Do this, with M1 chipset you need to use home brew instead gem
sudo gem uninstall cocoapods
brew install cocoapods
I am trying to install Cocoa Pods on my new MacBook Pro with the M1 Chip.
There are some solutions that found from December. Since is February those solutions may be a little outdated.
I cannot find any instructions on CocoaPods website. Would anyone be able to help me with that matter? I want to do it right and, sadly, I have little knowledge about that topic.
Many thanks for help.
These are the steps I followed :
Install HomeBrew in M1 Mac, open the Rosetta Terminal and run the following command :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After Homebrew installation is done, run this command in the terminal :
brew install cocoapods
I have mac Pro M1, Try to run on x86_64 architecture:
sudo arch -x86_64 gem install ffi
Then at the root of your project
arch -x86_64 pod install
For me was the solution through the Homebrew.
Install Homebrew natively on M1
https://docs.brew.sh/Installation#alternative-installs
Then install Cocoapods
https://formulae.brew.sh/formula/cocoapods
I'm using qwebengine in my Qt5 program.
I use this command to install qt on my travis-ci env:
HOMEBREW_NO_AUTO_UPDATE=1 brew install qt5 qt5-qtwebengine --verbose; fi
However it tells me: Error: No available formula with the name "qt5-qtwebengine"
How to instaall qtwebengine properly by brew?
The fix was patched in two weeks ago and you will need to brew update before you brew install qt
This question already has answers here:
How to remove RVM (Ruby Version Manager) from my system
(13 answers)
Closed 8 years ago.
I installed RVM using:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
and now want to remove it from my system. How can I delete the installation or undo this action?
Just a guess from reading: https://github.com/wayneeseguin/rvm/
sudo rvm uninstall
For more info this might help:
rvm help uninstall
This question already has answers here:
Installing Homebrew on macOS
(24 answers)
Closed 2 years ago.
I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed).
I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image).
As you can see I used the following to instal Homebrew:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"
While there was a "warning" it seemed as though the installation worked:
Warning: /usr/local/bin is not in your PATH.
==> Installation successful!
Despite that, when I try to run "brew doctor" I received the following:
-bash: brew: command not found
Again, I'm trying to install homebrew, so i can instal the latest version of ruby -- I'm looking to learn to code in ruby, but kind of screwed if I can even get a development environment running! :)
The warning is telling you what is wrong. The problem is that brew is kept in /usr/local/bin
So, you can try /usr/local/bin/brew doctor
To fix it permanently alter your bash profile (.bashrc or .profile in your home directory) and add the following line:
export PATH=/usr/local/bin:$PATH
On Apple silicone it's
export PATH=/opt/homebrew/bin/:$PATH
Check XCode is installed or not.
gcc --version
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
http://techsharehub.blogspot.com/2013/08/brew-command-not-found.html "click here for exact instruction updates"
nano ~/.profile
add these lines:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
save the file:
Ctrl + X then Y then Enter
then render the changes:
source ~/.profile
This was just happening to me, but none of the suggestions above worked. I changed directories ("cd ~/tmp") and suddenly the command
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
worked for me. Prior to changing directories I had been in a directory that is a Git repository. Perhaps that was interfering with the ruby and Git commands in the Brew install script.
You can run in terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
then install https://github.com/robbyrussell/oh-my-zsh.
When those complate run i.e pico editor pico .zshrc and past those lines:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
remember use brew doctor :)
try this
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/linuxbrew/go/install)"
You can use this:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
to install homebrew.