Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to compile with li command, do not work. #96

Open
MauryLoic opened this issue Jan 27, 2022 · 3 comments
Open

Try to compile with li command, do not work. #96

MauryLoic opened this issue Jan 27, 2022 · 3 comments

Comments

@MauryLoic
Copy link

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 MauryLoic changed the title Try to compile with lein do not work. Try to compile with li do not work. Jan 27, 2022
@MauryLoic MauryLoic changed the title Try to compile with li do not work. Try to compile with li command, do not work. Jan 27, 2022
@matt-42
Copy link
Owner

matt-42 commented Feb 7, 2022

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

@MauryLoic
Copy link
Author

Hi matt-42,

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

@cong1920
Copy link
Contributor

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

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

No branches or pull requests

3 participants