help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Run previous version of Inkscape that exists in /gnu/store


From: Rodrigo Morales
Subject: Re: Newbie: Run previous version of Inkscape that exists in /gnu/store
Date: Sun, 4 Jun 2023 18:08:10 +0000

> Each /package/ may specify a simple package name, such as guile,
> optionally followed by an at-sign and version number, such as
> guile@3.0.7 or simply guile@3.0. In the latter case, the newest
> version prefixed by 3.0 is selected.


I tried using that notation. However, `guix package -i' was not able to
install it.

,----
| guix package -i 'inkscape@1.1.1'
| echo "--- Exit code: $?"
`----

,----
| guix package: error: inkscape: package not found for version 1.1.1
| --- Exit code: 1
`----


> It comes from the documentation at
> <https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html>[1].
> Admitedly, it is not easy to find if you don’t already know what you
> are looking for.


I read some of the documentation that you shared and I learned that
`guix package -i' can be provided with absolute paths in
`/gnu/store'. By providing the full path of v1.1.1, I was able to
install it.

,----
| guix package -i /gnu/store/qp8msw5js3gdpdlq1r8nxz4frnzc39lh-inkscape-1.1.1
| echo "--- Exit code: $?"
`----

,----
| The following package will be installed:
|    inkscape 1.1.1
|
| --- Exit code: 0
`----

Because `inkscape' was installed using `guix package -i' then the binary
resides in ~/.guix-profile/bin/inkscape. However, I also have installed
`inkscape' using `guix home', so I removed `~/.guix-home' from `$PATH'
to make sure that my shell was not using the `inkscape' that has been
installed through `guix home'. See behavior below.

,----
| echo 'Before'
| which inkscape
| inkscape --version
| export PATH=$(echo $PATH | tr ':' '\n' | grep -v '\.guix-home' |
paste -sd ':')
| echo 'After'
| which inkscape
| inkscape --version
`----

,----
| Before
| /home/rdrg/.guix-home/profile/bin/inkscape
| Inkscape 1.2.1 (9c6d41e410, 2022-07-14)
| After
| /home/rdrg/.guix-profile/bin/inkscape
| Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20)
`----

As you can see above, at this point, the binary `inkscape' is able to
print the version number. However, when I try to run Inkscape with no
arguments, a window with a button "Close" and a message "Inkscape
encountered an internal error and will close now" is opened and some
messages are shown in the terminal where I run the command. See [1] (I'm
not pasting it here because it is 198 lines long).

[1] <http://web.archive.org/web/20230604180504/http://0x0.st/HbgO.txt>

Am I missing something?

On Fri, 2 Jun 2023 at 22:31, Soren Stoutner via <help-guix@gnu.org> wrote:
>
> I think the following is the information you are looking for:
>
> "Each /package/ may specify a simple package name, such as guile, optionally 
> followed by
> an at-sign and version number, such as guile@3.0.7 or simply guile@3.0. In 
> the latter case,
> the newest version prefixed by 3.0 is selected.”
>
> It comes from the documentation at 
> https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html[1].  
> Admitedly, it is not easy to find if you don’t already know what you
> are looking for.
>
> On Friday, June 2, 2023 11:48:45 AM MST Rodrigo Morales wrote:
> > The /gnu/store of my system contains two versions (1.1.1 and 1.2.1) of
> > Inkscape that are already built (see last two lines below)
> >
> > ,----
> >
> > | find /gnu/store -mindepth 1 -maxdepth 1 -name '*inkscape*' -exec du
> >
> > -hs {} + | sort -h
> > `----
> >
> > ,----
> >
> > | 4.0K
> > | /gnu/store/500rmmh2b0m4abmhs3pv5888kfj7jmdh-inkscape-1.2.1.tar.xz.drv
> > | 4.0K
> > | /gnu/store/b4zacwzx5lriwxrpr7y4wi1i3rl22ybx-inkscape-poppler-compat.patch
> > | 4.0K
> > | /gnu/store/g46dzii7g1ffi7iz1mkqydkh5filn93j-inkscape-1.2.1.tar.xz.drv
> > | 4.0K
> > | /gnu/store/jkpfxya83dzkyl42wawd8avvwvh1rjbv-inkscape-1.2.1.tar.xz.drv
> > | 4.0K    /gnu/store/ppnajjk1jmp59hmh5sy805drl5sfnqq1-inkscape.desktop 4.0K
> > |    /gnu/store/szdsqp9f75lf8n223994dgnzq0gynxkn-inkscape-1.1.1.tar.xz.drv
> > | 4.0K
> > | /gnu/store/zzxliczm87l5l692sbja4md3nlm4kn98-inkscape-1.1.1.tar.xz.drv
> > | 8.0K
> > | /gnu/store/0n9gsw2kpbs2affmdz5v8569inic47li-inkscape-1.2.1.tar.xz-builder
> > | 8.0K
> > | /gnu/store/gzczswjnbjwishxdcjb38ff50ryz07y6-inkscape-1.2.1-builder 8.0K
> > |
> > | /gnu/store/ldmc19hvi88gffrksh84clpgj4k35phx-inkscape-1.2.1.tar.xz-builder
> > | 8.0K
> > | /gnu/store/piy8k5xdfy9lpisz3s539ga643f7lxwp-inkscape-1.1.1.tar.xz-builder
> > | 8.0K
> > | /gnu/store/zgr855pyl4nq0wzbgvnls7y62y2hm03g-inkscape-1.2.1-builder 12K
> > | /gnu/store/20051ywrcs9srgmc1yz3n7g39mawwj71-inkscape-1.2.1.drv 12K
> > | /gnu/store/599w24wf1yc77qz98rdny3gl8hbwnk0v-inkscape-1.2.1.drv 12K
> > | /gnu/store/5rm4gq898k7g1m2z8bfdyjlamh4hv94r-inkscape-1.1.1.drv 12K
> > | /gnu/store/75hxh7536csa39ycl3lnfzp72n77640x-inkscape-1.1.1.drv 12K
> > | /gnu/store/9mkpsshqb8f8bvag4dn6fyay83xxi89v-inkscape-1.2.1.drv 12K
> > | /gnu/store/9saq1qq7c7knbpsnyxf2bnq316fzmjc7-inkscape-1.2.1.drv 12K
> > | /gnu/store/bni54rrv8mc1i3i06a5va6kvvv1szkh7-inkscape-1.2.1.drv 12K
> > | /gnu/store/kpxb5da4919c99npg7qpfa2dcb4mqi8h-inkscape-1.2.1.drv 12K
> > | /gnu/store/mmqv80zr7wjh7cys12f4iqkhcmg58i5c-inkscape-1.2.1.drv 12K
> > | /gnu/store/pa7hirai1r6l356xd12ldglgcp7z1x6q-inkscape-1.2.1.drv 12K
> > | /gnu/store/rkkplpgzqri888zq4byznhf1adbrx07l-inkscape-1.2.1.drv 12K
> > | /gnu/store/scqjnhcc1b2fyccy907wavh0maas1afh-inkscape-1.2.1.drv 16K
> > | /gnu/store/fwgd2kvp9g7ag503rx5g1zblxq028wj0-inkscape-1.2.1-builder 16K
> > | /gnu/store/hkhhjy304ma2kzchfr36qnpaf62iq9py-inkscape-1.2.1-builder 16K



reply via email to

[Prev in Thread] Current Thread [Next in Thread]