when I install mcuxpresso for viscode on Mac, I mcuxpressoinstaller prompt a error:
[error] No Homebrew installation found!
The installer cannot install it automatically, so please manually install
Homebrew from https://brew.sh and restart the installer.
*** Installation cancelled ***
I installed Homebrew manually, but,the Mcuxpressoinstaller still give the same error message.
Hi,
Did you restart the MCUXpresso installer after brew install?
If yes, could you please try from the console:
arch -arm64 /opt/homebrew/bin/brew --version (or arch -x86_64 /usr/local/bin/brew --version)
Does it show any version? Or an error?
Then, if still not working, could you please check if a logout + login will fix the problem?
Regards,
Cristian
sorry for pigtailing on this issue but I'm having the same problem.
I'm following the guidelines in https://github.com/nxp-mcuxpresso/vscode-for-mcux/wiki/Dependency-Installation to install the MCUXpresso tools for vscode and the installer shows this issue.
Important: I'm using a Macbook Pro M1 (arm chip). As it is known, homebrew is on a different location in this machine (/opt/homebrew) vs the usual (/usr/local/homebrew). So I wonder if maybe the installer in that page is just not designed for M1?
In response to the last question in the thread:
@mbp:armgcc%arch -arm64 /opt/homebrew/bin/brew --version
arch: /opt/homebrew/bin/brew isn't executable
Since the homebrew installation on M1 is known to have issues, I have it installed under my user, and this setup as worked ok with all the many tools I have installed before.
@mbp:armgcc%arch -arm64 ~/homebrew/bin/brew --version
Homebrew 4.0.22
Homebrew/homebrew-core (git revision e6fefa8f263; last commit 2023-06-16)
Login off, rebooting, using another M1 laptop the issue still happens always.
Thanks
Hi @Edge30 ,
MCUXpresso Installer tries to check the brew version from the default installation path, which is /opt/homebrew/bin/brew on arm M1 and /usr/local/bin/brew on Intel.
Just for testing, please try adding the homebrew installation to this location /opt/homebrew/bin/brew. Perhaps you can create a symlink to avoid installing the homebrew again:
ln -s ~/homebrew/bin/brew /opt/homebrew/bin
Then, the below command should work from both the terminal and the installer:
arch -arm64 /opt/homebrew/bin/brew --version
If you still have issues, please send us the last log file (from the right corner -> Open log folder).
Regards,
Lorena
Hi
Thank you for your help, I try the method you mentioned,
arch -x86_64 /usr/local/bin/brew --version,
the result is Homebrew 4.1.7, there is no error.
but when I try logout and login ,and then run the mcuxpressoinstalller, there is the error.
Hi @zhuijun,
Could you please send us the log files (from the right corner -> Open log folder)? We have logged an issue, but unfortunately we cannot reproduce it. Perhaps the log files will help us to identify the root cause.
Regards,
Lorena
Hi,
I have exactly the same. Cannot install anything. Always the same complain:
Installing categories: MCUXpresso SDK Developer, SEGGER J-Link, Arm GNU Toolchain, CMSIS Toolbox
Starting category
[info] Checking macOS prerequisites
[error] No Homebrew installation found!
The installer cannot install it automatically, so please manually install
Homebrew from https://brew.sh and restart the installer.
*** Installation cancelled ***
I'm on MacOS Catalina and have homebrew 4.1.10 installed.
Any solution?
Regards,
Koenraad
Hi @koenraadvds,
Could you please run one of these commands from the terminal and let us know the result?
Hi Lorena,
Thanks for the response. The output of the command you mentioned is:
Homebrew 4.1.10
Homebrew/homebrew-core (git revision 66d94fba2a2; last commit 2023-09-07)
Homebrew/homebrew-cask (git revision 189beccbdf; last commit 2023-09-07)
But in the meantime i made some progress. The homebrew error is misleading since the reason for the error is the missing ~/.zprofile file.
So i tried a quick fix by creating this empty file -> touch ~/.zprofile. After doing so, the installation starts! No homebrew complains anymore.
But unfortunately, the installation ends with error while installing ninja
I think i have to update my mac os to a newer version than the current catalina and then try again...
Koenraad
Hi @koenraadvds ,
Thank you for letting us know the root cause of your issue - it looks like we need to improve something in this area, so we'll have a look.
Regarding the issues you are having with ninja, could you please send us the log file? It will help us identify the problem and found out if there is anything that we can improve.
Regards,
Lorena
Hi Lorena,
I did the instal sdk again and ik succeeded the 2-the time. Mentioning that ninja is already installed.
So i opened the logs to copy the part with the failure but these logs are gone... very strange...
Koenraad