[Trisquel-devel] Installing dependencies for latest emacs and gcc releases

David Lecompte trisquel at metani.fr
Fri May 30 15:04:26 UTC 2025


Le vendredi 30 mai 2025 à 16:58 +0200, David Lecompte a écrit :
> > 
> > Have run 'guix install emacs' which installed 'emacs 27.2'.
> > 
> > Finally guix gave the hint below 
> > 
> > hint: Consider setting the necessary environment variables by running:
> > 
> >      GUIX_PROFILE="/home/hagbard/.guix-profile"
> >      . "$GUIX_PROFILE/etc/profile"
> > 
> > 
> > How would the hint be implemented in my .bashrc file?
> > 
> > Like so:
> > 
> > GUIX_PROFILE="/home/hagbard/.guix-profile"
> > 
> > ## 
> > ## source "$GUIX_PROFILE/etc/profile" # or the command K2
> > . "$GUIX_PROFILE/etc/profile"  # K2
> > 
> > 
> 
> If you use Trisquel with MATE, all the necessary variables are set at
> login,
> there is no need to follow these advices. So you can simply log out and
> log
> in and they will be set properly, or you can run "bash -l" as advised in
> the
> wiki (-l stands for login, so that files in /etc/profile.d are sourced,
> including /etc/profile.d/guix.sh) to run the guix pull and guix install.
> 
> Don't forget to set $XDG_DATA_DIRS as adviced in the Trisquel wiki before
> loging out of the session, or the next opening of MATE session will fail.
> If
> it happens, you can still log in to a text session and do the settings as
> explained in the wiki, then log out and log in again.
> 

I fogot to add:

- if you have doubts whether the variables are set properly or not, check
"which guix". If it says it is ~/.config/guix/current/bin/guix, then
everything should be ok. If it is /usr/bin/guix, the variables are not set
properly, log out and log in again and recheck.
- if you did not run "guix pull" (without sudo) before installing emacs (or
other packages), all what you will install are versions from the times the
guix Trisquel package was made. If you did that, run "guix pull" and then
"guix upgrade", then you should have the latest emacs.


-- 
David Lecompte <trisquel at metani.fr>


More information about the Trisquel-devel mailing list