I upgraded to Mavericks shortly after the release but did not have occasion to use terminal until yesterday and found that nothing worked. So I installed xcode 5 but 'whereis MacVim' returns nothing. This may provide clues:
**10:24:36 502 ~/work>echo $PATH
/Developer/Tools:/Developer/Applications:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/jimslager/bin::
**10:24:56 503 ~/work>MacVim
-bash: MacVim: command not found
Related
I recently bought MacBook Pro (13-inch, 2020 i5) and downloaded expo globally, now the problem which i am facing is it keeps saying expo command not found despite it being installed.
I have tried various soultions such as:
https://forums.expo.io/t/expo-cli-looks-installed-but-expo-command-not-found/14535
(NOTE: The newer version of macOS does not have .bash_profile anymore and has .zprofile instead)
https://www.youtube.com/watch?v=gkqsLRDnqlA
But none of the solution works.
However, to check if it actually works, I cloned one of my projects from work and just changed the script from package.json and runned it from NPM SCRIPT and it does fire up (so it's just the command line that shows command not found and doesn't allow me to init the project and none of the solutions works from the google somehow.
I installed homebrew 3.0.0 on my M1 MBA.
However, every session including iterm2 terminal and tmux shows this error message:
/Users/jinrae/.zprofile:1: no such file or directory: opt/homebrew/bin/brew
In my case, it does not harm functionality at least in my usage pattern.
Anyhow, how can I get rid of this message?
I got this error because I installed brew on the Rosetta version of terminal to install packages, that are not yet M1 compatible.
To get rid of this message i opened my .zprofile with nano .zprofile.
The first line was
eval "$(/opt/homebrew/bin/brew shellenv)"
And i simply put a # before this line to comment it out and the message was gone.
To #sedavidw, /opt/homebrew/bin contains .keepme without contents:
/Users/jinrae/.zprofile:1: no such file or directory: opt/homebrew/bin/brew
➜ bin pwd
/opt/homebrew/bin
➜ bin la
total 0
-rw-r--r-- 1 jinrae admin 0B Feb 9 11:04 .keepme
EDIT: I read an article saying that homebrew is installed in /opt/homebrew/bin in M1 Mac whereas it is installed in /usr/local in Intel Mac. I'm trying to reinstall homebrew for M1 Mac now.
EDIT2: I solved the problem. It was due to for what homebrew is installed. As I heard, homebrew is installed in /usr/local for Intel Mac and /opt/homebrew/bin for M1 Mac.
I reinstalled homebrew with
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa/raw/48f48f7fef21abb308e129a80b3214c2538fc611/homebrew_m1.sh)"
which is slightly different from that in the official site (at least to me).
Anyhow, newly installed homebrew is located in /opt/homebrew/bin and the problem has been solved.
If you are using an Intel Mac, as mentioned above, Homebrew gets installed on /usr/local. Therefore, modify your .zprofile file (located in users/<username>) to use the correct path. Here is content of .zprofile:
eval "$(/usr/local/Homebrew/bin/brew shellenv)"
I have the M1 Mac and it was installed in /opt/homebrew/...
I opened /Users/~username~/.zprofile and it had two lines.
First line was:
eval "$opt/homebrew/bin/brew shellenv"
Second like was:
eval "$(/opt/homebrew/bin/brew shellenv)"
I just commented out the first line which doesn't actually have the </opt/> in the address. It's asking for a $opt, and then the address. So commenting out that line removed the location error and just read the correct line. So it doesn't show the error anymore when opening the terminal.
To Fix Type
nano .zprofile
then delete all of the stuff
then do ⌃X
then press return
Getting the following error and not 100% sure why. Currently getting this issue when I run my app in ios simulator
I've tried to do npm install watchman, But I just saw the latest update on the npm packages and it seems like it's been depreciated.
events.js:292
throw er; // Unhandled 'error' event
^
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:127:28)
Emitted 'error' event on NodeWatcher instance at:
at NodeWatcher.checkedEmitError
at FSWatcher.emit (events.js:315:20)
at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:133:12) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}
This error was caused by watchman.
You should run brew install watchman in the terminal.
If watchman fails to install, you should change the ownership of these directories to your user by
sudo chown -R $(whoami) /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/var/log
please refer to the tips in your terminal.
Finally you run brew install watchman. The problem should be solved.
For people with Mac M1 who are running into this problem, I tried the above brew install and upgrade watchman but they didnt work. My specific problem was that react-native project would build on the simulator fine through 'npm run ios' but when archiving or building through xcode I would get this error. After hours upon hours this is what did:
Go into your Security in your System Preferences of your Mac and give full disk access to watchman
The project you are building for some reason (Probably because Apple restricts access) does not work when in your Desktop or your Documents location. Once I moved it to under /Users/myname/ it finally built and archived in xcode.
Hopefully this will save someone else the 6 hours I spent debugging and trying to figure out this.
EDIT: THIS BROKE AGAIN SO HAD TO FOLLOW THIS NEXT TO FIX IT:
This error is because of a bug in module fsevents for mac m1 silicon. See the thread: https://github.com/facebook/metro/issues/668
It got fixed with new version of watchman. Upgrade your watchman through brew. Delete your project and download from git and rebuild everything along with pod install and then it should archive no problem.
I'm trying to install homebrew on my mac verison 10.7.5, error msg comes up: The requested URL returned error: 404 Error: Failed to download resource "openssl" Download failed: https://raw.githubusercontent.com/DomT4/LibreMirror/master/Open help! how do i fix?
Try update your brew
brew update
I have encountered the same issue on my mac (10.11 El Captian)
It's seems OpenSSL want to force users and package management softwares to update by removing their previous version.
I agree with #Webb Lu on this one.
Try brew update a few times. If this isn't working then try the command brew doctor to correct any errors.
If this fixes the issue, you may want to then run brew upgrade to upgrade anything that is out of date. For some reason I had to reinstall Xcode last night to run the upgrade command. Not sure what happened there, but it seemed to work for me.
I don't know if this is the solution for your issue, but I figured I'd throw my hat in the ring ha ha.
Best of luck!
I keep on getting this error after updating to osx yosemite:
/Users/marwan/development/Tagthis/Tagthis/Tag.xcdatamodeld: Compilation failed for data model at path '/Users/marwan/Library/Developer/Xcode/DerivedData/Tag-bowkjsbadldfleczpwolpimvwvjg/Build/Products/Debug-iphonesimulator/Tag.app/Tag.momd/Tag3.mom'
I tried all the solutions suggested on stack over flow but nothing worked