On 2025-03-07 19:19, Daniil Rozanov wrote:
Hello

I'm currently developing some application using the ncurses library, so
I gave it a try.

```
guix shell ncurses
```

So, as stated in the documentation, a new variable $GUIX_ENVIRONMENT has
been added to environment, and $PATH has been changed. But neither
$LIBRARY_PATH nor $C_INCLUDE_PATH have been modified, so I need to run

```
LIBRARY_PATH=$LIBRARY_PATH:$GUIX_ENVIRONMENT/lib clang win_example.cpp 
-I$GUIX_ENVIRONMENT/include -lncurses
```

to compile my win_example.cpp.

I expect that I will have
C_INCLUDE_PATH=$GUIX_ENVIRONMENT/include:$C_INCLUDE_PATH and so on so
that I can just run

```
clang win_example.cpp -lncurses
```

How should I do this?


Daniil Rozanov


I think that's because it doesn't know what do you want to do with ncurses.

If you do something like:

```
guix shell ncurses gcc-toolchain
```

(or clang-toolchain)

It should know that you want to compile things, and add the compilers will have access to courses.

Same thing happens with the man pages. If you don't add `man-db` to the shell, you cannot use the manual for the tools you installed in the shell.

Hope this helps. Give it a try and let me know.

Best,
Ekaitz

Reply via email to