Skip to content

fix(linux): Force local installation prefix to avoid permission denied error#326

Closed
BluewhaleYF wants to merge 4 commits into
Solsynth:v3from
BluewhaleYF:v3
Closed

fix(linux): Force local installation prefix to avoid permission denied error#326
BluewhaleYF wants to merge 4 commits into
Solsynth:v3from
BluewhaleYF:v3

Conversation

@BluewhaleYF
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@LittleSheep2Code LittleSheep2Code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need more information

Comment thread linux/CMakeLists.txt
cmake_minimum_required(VERSION 3.13)
project(runner LANGUAGES CXX)
# force local installation prefix to avoid permission error
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Installation prefix" FORCE)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How

@BluewhaleYF
Copy link
Copy Markdown
Contributor Author

BluewhaleYF commented Apr 18, 2026

I need more information

根据日志,原先的 CMakelists 会在执行

flutter run -d linux

的时候,会尝试把 Solian 安装到

/usr/local/island

但这需要 sudo 权限,所以会报错
所以我采取了改 CMakeLists 文件的方式,改安装路径为

./build/linux/x64/debug/install/

这样就不需要 sudo 权限了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants