skip to Main Content

I have to install redis, but it is not working to install redis anymore using brew. Getting the following error when trying to install this way:

Warning: No available formula with the name "redis".
==> Searching for similarly named formulae and casks...
==> Casks
another-redis-desktop-manager ✔          redis-pro
jpadilla-redis                           redisinsight
medis

To install another-redis-desktop-manager ✔, run:
  brew install --cask another-redis-desktop-manager ✔

Tried the command brew install --cask another-redis-desktop-manager.
This also didn’t work.

2

Answers


  1. Chosen as BEST ANSWER

    Actually found the answer. Basically the reason for the failure in installation was because the core homebrew packages were not correctly configured. Identified the issue with brew doctor The solution was

    rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
    brew tap homebrew/core
    

  2. ARM Homebrew must be installed in the /opt/homebrew directory. Earlier, you need to manually create directories and run commands. However, you do not need to manually run commands to use the latest scripts.

    Direct execution:

    /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
    

    PS: terminal type Run the echo $SHELL command. The command output is as follows:

    /bin/bash => bash => .bash_profile
    /bin/zsh => zsh => .zprofile
    If you encounter invalid environment variables, you are advised to check the terminal type before setting the correct environment variables.

    Starting with macOS Catalina(10.15.x), Macs use zsh as the default Shell, using.zprofile, so the corresponding command:

    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
    

    If you have macOS Mojave or later and have not configured zsh yourself, use.bash_profile:

    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
    eval "$(/opt/homebrew/bin/brew shellenv)"
    

    Hope this can help you

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search