unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Mohamed Amine LEGHERABA <mlegheraba@protonmail.com>
Cc: help-guix@gnu.org
Subject: Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications
Date: Sun, 23 Oct 2022 23:48:00 +0200	[thread overview]
Message-ID: <87a65mb489.fsf@elephly.net> (raw)
In-Reply-To: <S_dBiYlEPHgb2ZBUaeeyEDbi7GR5pZIrddSIwUZy-cAfJA0_u3LkKhmgF0GgridpDkB3zuOHgouuLFkvm5AybkPGg8Q4y0EGlCIkfAcDIJw=@protonmail.com>


Mohamed Amine LEGHERABA via <help-guix@gnu.org> writes:

> When I do "echo $C_INCLUDE_PATH" in my bash prompt (either my account or root), I have nothing.
>
> When I run a custom guix shell (with gcc-toolchain) and I run "echo $C_INCLUDE_PATH",
> I have "/gnu/store/1p21dbv408cb45zcc15v7wj0q7x99rz2-profile/include"
>
> Without this env variable, C programs can't use "linux/limits.h" or
> other kernel related libraries. Any idea how to solve this problem ?

You say that “guix shell” sets the variable as expected.  Its value
depends on the packages you add to the “guix shell” invocation.

You can also augment it manually to add whatever include directories you
need.

-- 
Ricardo


  reply	other threads:[~2022-10-24  7:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22 11:07 no C_INCLUDE_PATH env variable defined : I can't compile C applications Mohamed Amine LEGHERABA via
2022-10-23 21:48 ` Ricardo Wurmus [this message]
2022-10-24  1:42   ` Re : " Mohamed Amine LEGHERABA
2022-10-24  6:57     ` 宋文武
2022-10-24  8:17       ` Efraim Flashner
2022-10-29 12:24         ` Re : " Mohamed Amine LEGHERABA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a65mb489.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=mlegheraba@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).