Home > Enterprise >  Flutter Command not found in linux
Flutter Command not found in linux

Time:02-19

I am installing flutter in my Linux, it is Kali Linux... so I downloaded flutter file, I extracted it , then I edited the .bashrc file and added the path of my flutter folder where I extracted that, now when I type flutter in terminal it shows me flutter command not found, I have tried almost everything but nothing happened ,

CodePudding user response:

i have not use flutter in kali linux but flutter can install with homebrew you can useing

brew install --cask flutter

CodePudding user response:

  • Do you have run the command source .bashrc to take effect the environment variable PATH changed by yourself?
  • Use ls -lh [path to flutter] to check if it have executable permission and use chmod x [path to flutter]/flutter to add executable permission.

CodePudding user response:

Try to add your environment variable in .bash_profile.

 nano ~/.bash_profile
 add export FLUTTER="[flutter dir]/bin"
 append FLUTTER in your PATH variable. 
 source ~/.bash_profile
 flutter --version

You can also use snapd for flutter installation.

sudo apt update
sudo apt install snapd
sudo snap install flutter --classic
flutter --version
  • Related