Skip to content

Commit 7fe3655

Browse files
committed
build from source doc without sudo
1 parent 761a55c commit 7fe3655

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/src/quick_start.md

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ Note that `symusic` is built with `C++20`, and it does need some modern features
3232
* clang: : `>=15`
3333
* msvc: Not tested, but it's recommended to use `Visual Studio 2022`
3434

35+
On Linux, if you don't have the `sudo` permission, you could install a `gcc` compiler from `conda`:
36+
```bash
37+
conda install conda-forge::gcc conda-forge::gxx
38+
```
39+
And then set the `CC` and `CXX` environment variables to the path of the `gcc` and `g++`:
40+
```bash
41+
CC=/path_to_conda_root/envs/env_name/bin/gcc CXX=/path_to_conda_root/envs/env_name/bin/g++ pip install --no-binary symusic symusic
42+
```
43+
3544
## Load
3645

3746
If you pass a file path (str or pathlib.Path) to the `Score` constructor,

0 commit comments

Comments
 (0)