You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ flutter run -d linux
Launching lib/main.dart on Linux in debug mode...
CMake Error at cmake_install.cmake:66 (file):
file INSTALL cannot copy file
"/home/user/flutter-folio/build/linux/x64/debug/intermediates_do_not_run/flutter_folio"
to "/usr/local/flutter_folio": Permission denied.
Building Linux application...
Exception: Build process failed
This problem is really weird to me. I am not installing anything. I just want to run the project to see a demo app. Why does it try to install something to my /usr/local/ directory?
First, I don't think it should install anything when I run flutter run -d linux.
Second, even if it has to install something, it should install to a local path instead of system path. /usr/local/ is owned by root.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
I figured out the problem can be fixed by executing flutter clean,
and then flutter run -d linux again.
But I have no ideas why the clean command will make flutter not copy the executable file to anywhere.
for me, i just removed linux directory in flutter-folio root directory
and then generate new one from other directory (create new directory) and exec flutter create --platforms=linux .
and then copy linux directory from that folder to flutter-folio
and executing flutter run -d linux
This problem is really weird to me. I am not installing anything. I just want to run the project to see a demo app. Why does it try to install something to my
/usr/local/
directory?First, I don't think it should install anything when I run
flutter run -d linux
.Second, even if it has to install something, it should install to a local path instead of system path.
/usr/local/
is owned byroot
.Thanks a lot.
The text was updated successfully, but these errors were encountered: