[error] No Homebrew installation found!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[error] No Homebrew installation found!

2,537 Views
zhuijun
Contributor I

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.  

0 Kudos
Reply
10 Replies

2,519 Views
cristiantepus
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,508 Views
Edge30
Contributor I

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

0 Kudos
Reply

2,351 Views
lorena_lazar
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,488 Views
zhuijun
Contributor I

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.

 

0 Kudos
Reply

2,349 Views
lorena_lazar
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,395 Views
koenraadvds
Contributor I

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

0 Kudos
Reply

2,348 Views
lorena_lazar
NXP Employee
NXP Employee

Hi @koenraadvds,

Could you please run one of these commands from the terminal and let us know the result?

arch -arm64 /opt/homebrew/bin/brew --version - on arm M1
arch -x86_64 /usr/local/bin/brew --version - on Intel
 
Also, could you please attach here the log file? (right corner from Installer -> Open log folder)
 
Regards,
Lorena
 
 
 
 
0 Kudos
Reply

2,336 Views
koenraadvds
Contributor I

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

0 Kudos
Reply

2,334 Views
lorena_lazar
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,330 Views
koenraadvds
Contributor I

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

 

0 Kudos
Reply