all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "--pure" won't work
@ 2016-10-04 20:42 Catonano
  2016-10-04 20:44 ` Thompson, David
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Catonano @ 2016-10-04 20:42 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]

In exploring Culturia, here

https://github.com/amirouche/Culturia/

I reach this line


guix environment --ad-hoc --pure guile-next


what happens is this (I'm not on Fedora anymore but rather on Ubuntu 16.04)


Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in
the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the
PATH environment variable.
dircolors: command not found
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH
environment variable.
ls: command not found



Without the "--pure" it works like a charm

Is this normal ? Or is there anything wrong ?

Am I supposed to put ls, dircolors and lesspipe in the --ad-hoc clause ?

I ask this because in order to have Geiser with all its features in
Culturia, gesier-next is needed (because guile-next is used)

But because the plain vanilla geiser is installed in my profile, I guess I
can't have guile-next in an environment and guile in the profile, unless
the environment is pure

Am I right here ?

[-- Attachment #2: Type: text/html, Size: 1619 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "--pure" won't work
  2016-10-04 20:42 "--pure" won't work Catonano
@ 2016-10-04 20:44 ` Thompson, David
  2016-10-04 21:07 ` Amirouche Boubekki
  2016-10-05 11:42 ` Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Thompson, David @ 2016-10-04 20:44 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Tue, Oct 4, 2016 at 4:42 PM, Catonano <catonano@gmail.com> wrote:
> In exploring Culturia, here
>
> https://github.com/amirouche/Culturia/
>
> I reach this line
>
>
> guix environment --ad-hoc --pure guile-next
>
>
> what happens is this (I'm not on Fedora anymore but rather on Ubuntu 16.04)
>
>
> Command 'lesspipe' is available in the following places
>  * /bin/lesspipe
>  * /usr/bin/lesspipe
> The command could not be located because '/usr/bin:/bin' is not included in
> the PATH environment variable.
> lesspipe: command not found
> Command 'dircolors' is available in '/usr/bin/dircolors'
> The command could not be located because '/usr/bin' is not included in the
> PATH environment variable.
> dircolors: command not found
> Command 'ls' is available in '/bin/ls'
> The command could not be located because '/bin' is not included in the PATH
> environment variable.
> ls: command not found
>
>
>
> Without the "--pure" it works like a charm
>
> Is this normal ? Or is there anything wrong ?

Guix isn't doing any of this, your shell is.  Check your .bashrc or
the equivalent file for whatever shell you use.

- Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "--pure" won't work
  2016-10-04 20:42 "--pure" won't work Catonano
  2016-10-04 20:44 ` Thompson, David
@ 2016-10-04 21:07 ` Amirouche Boubekki
  2016-10-04 21:33   ` Catonano
  2016-10-05 11:42 ` Ludovic Courtès
  2 siblings, 1 reply; 6+ messages in thread
From: Amirouche Boubekki @ 2016-10-04 21:07 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix, Help-Guix

On 2016-10-04 22:42, Catonano wrote:
> In exploring Culturia, here
> 
> https://github.com/amirouche/Culturia/ [1]
> 
> I reach this line
> 
> guix environment --ad-hoc --pure guile-next
> 

Both with and without --pure works on my side. I don't remember why I've
put --pure in the README.

I use ubuntu 16.04.1, I have this in my ~/.zshrc

export PATH="/home/amirouche/.guix-profile/bin":$PATH
export GUIX_LOCPATH=~/.guix-profile/lib/locale
export 
GUILE_LOAD_PATH="/home/amirouche/.guix-profile/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export 
GUILE_LOAD_COMPILED_PATH="/home/amirouche/.guix-profile/share/guile/site/2.2${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
export 
INFOPATH="/home/amirouche/.guix-profile/share/info${INFOPATH:+:}$INFOPATH"

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "--pure" won't work
  2016-10-04 21:07 ` Amirouche Boubekki
@ 2016-10-04 21:33   ` Catonano
  0 siblings, 0 replies; 6+ messages in thread
From: Catonano @ 2016-10-04 21:33 UTC (permalink / raw)
  To: Amirouche Boubekki; +Cc: help-guix, Help-Guix

[-- Attachment #1: Type: text/plain, Size: 1863 bytes --]

Amirouche, David,

2016-10-04 23:07 GMT+02:00 Amirouche Boubekki <amirouche@hypermove.net>:

> On 2016-10-04 22:42, Catonano wrote:
>
>> In exploring Culturia, here
>>
>> https://github.com/amirouche/Culturia/ [1]
>>
>> I reach this line
>>
>> guix environment --ad-hoc --pure guile-next
>>
>>
> Both with and without --pure works on my side. I don't remember why I've
> put --pure in the README.
>
> I use ubuntu 16.04.1, I have this in my ~/.zshrc
>
> export PATH="/home/amirouche/.guix-profile/bin":$PATH
> export GUIX_LOCPATH=~/.guix-profile/lib/locale
> export GUILE_LOAD_PATH="/home/amirouche/.guix-profile/share/guile/
> site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
> export GUILE_LOAD_COMPILED_PATH="/home/amirouche/.guix-profile/shar
> e/guile/site/2.2${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
> export INFOPATH="/home/amirouche/.guix-profile/share/info${INFOPATH
> :+:}$INFOPATH"
>
>
Thanks to the both of you

David's answer was a bit terse althought straight to the point

Just to widen the discussion a bit, yes, in order to have basic commands in
a "pure" environment, even ls, they need to be explicitly included (either
with the --ad-hoc clause or because they're dependencies of some of the
packages you're creating the env for)

In fact

guix environment --pure --ad-hoc guile-next --search-paths

will show the "bin" that'll be included in the environment path. Just ls
that bin folder and you'll find nothing more than the guile-next
dependencies. No ls, no lesspipe, no dircolors

On this, David's was assuming that I had read the manual already ;-)

Now, as for the reason why ls, lesspipe and dircolors get called, David is
right: the default .bashrc is full of stuff, it's a page long.

So those "errors" are harmless. The resulting environment will be perfectly
functional for Culturia to be explored ;-)

Thanks again !

[-- Attachment #2: Type: text/html, Size: 3038 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "--pure" won't work
  2016-10-04 20:42 "--pure" won't work Catonano
  2016-10-04 20:44 ` Thompson, David
  2016-10-04 21:07 ` Amirouche Boubekki
@ 2016-10-05 11:42 ` Ludovic Courtès
  2016-10-05 14:03   ` Catonano
  2 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2016-10-05 11:42 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

Catonano <catonano@gmail.com> skribis:

> guix environment --ad-hoc --pure guile-next

This command drops you in a shell where only Guile is in $PATH—no
Coreutils, sed, grep, etc.  Maybe this isn’t intended?

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "--pure" won't work
  2016-10-05 11:42 ` Ludovic Courtès
@ 2016-10-05 14:03   ` Catonano
  0 siblings, 0 replies; 6+ messages in thread
From: Catonano @ 2016-10-05 14:03 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]

2016-10-05 13:42 GMT+02:00 Ludovic Courtès <ludo@gnu.org>:

> Catonano <catonano@gmail.com> skribis:
>
> > guix environment --ad-hoc --pure guile-next
>
> This command drops you in a shell where only Guile is in $PATH—no
> Coreutils, sed, grep, etc.  Maybe this isn’t intended?
>
> Ludo’.
>


Exactly, Ludo. No Coreutils, sed, grep, not even ls

I don't know wether this was intended or not. I was following the
instructions

AND I had misunderstood the effect of "--pure" myself.

It's all right now. I understood better, Amirouche declared that he doesn't
remember why he chose "--pure" and he didn't run into this because he uses
zsh, not bash (so the ubuntu .bashrc didn't affect him)

Thank you very much for chiming in !

[-- Attachment #2: Type: text/html, Size: 1348 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-05 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-04 20:42 "--pure" won't work Catonano
2016-10-04 20:44 ` Thompson, David
2016-10-04 21:07 ` Amirouche Boubekki
2016-10-04 21:33   ` Catonano
2016-10-05 11:42 ` Ludovic Courtès
2016-10-05 14:03   ` Catonano

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.