lithium icon indicating copy to clipboard operation
lithium copied to clipboard

Try to compile with li command, do not work.

Open MauryLoic opened this issue 3 years ago • 3 comments

Bonjour,

I'am following the instruction from lithium, with the hello_world example. However, when I run li run ./main.cc it return :

--network host CMake Error in CMakeLists.txt: cmListFileCache: error can not open file.

-- Configuring incomplete, errors occurred! CMake Error: Cannot open file for write: /build/CMakeCache.txt.tmp CMake Error: : System Error: Permission denied CMake Error: Unable to open cache file for save. /build/CMakeCache.txt CMake Error: : System Error: Permission denied

When I run the command with sudo, I have the same issue.

I'am on Fedora Linux 35 (Workstation Edition) x86_64, with Linux kernel 5.15.16-200.fc35.x86_64

What can I do ?

Thank you

Loïc

MauryLoic avatar Jan 27 '22 13:01 MauryLoic

Hi @MauryLoic Can you post the whole output ./li run main.cc ? Just to check if the tmp build dir has been created. On my machine I have: Building in /tmp/lithium_build_b1d09ff0c615a197eaa036303c92db34

You can also run ./li upgrade just to make sure you have the last version of lithium

matt-42 avatar Feb 07 '22 15:02 matt-42

Hi matt-42,

On my machine the tmp has been created : /tmp/lithium_build_27462103da99261cd20880aaab0ce95b/ with one file inside : CMakeLists.txt

MauryLoic avatar Feb 14 '22 14:02 MauryLoic

Hi @MauryLoic can you make sure you have access or proper permission to path /build/?

cong1920 avatar Feb 26 '22 09:02 cong1920