Skip to content

flutter run failed with permission denied (copy to /usr/local/) why? #70

@sgon00

Description

@sgon00
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions