help-guix
[Top][All Lists]
Advanced

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

Re: No Guile development packages were found.


From: mbcladwell
Subject: Re: No Guile development packages were found.
Date: Mon, 27 Jul 2020 13:29:28 -0500
User-agent: Horde Application Framework 5


Quoting Efraim Flashner <efraim@flashner.co.il>:

On Mon, Jul 27, 2020 at 06:52:52AM -0500, mbcladwell@stihie.net wrote:

Hi,
I would like to upgrade guile-json in my local store.
I start with
$guix pull
$guix package -u  (didn't do anything)

[...]
Builds occur in a chrooted environment, so only the packages added in
the package definition are there. Try adding

(inputs
 `(("guile" ,guile)))

to the package definition after the build-system line. and (gnu packages
guile) to the top with the other use-modules.

My guile-json now looks like:

(use-modules (guix packages)
             (guix download)
             (guix build-system gnu)
             (guix licenses)
             (gnu packages guile) )

(package
  (name "guile-json")
  (version "4.3.2")
  (source (origin
            (method url-fetch)
(uri (string-append "https://download.savannah.gnu.org/releases/guile-json/guile-json-"; version ".tar.gz"))
            (sha256
             (base32
              "0255c7f053z4p9mqzhpxwbfx3y47j9nfvlgnm8xasdclyzmjl9y2"))))
  (build-system gnu-build-system)
 (inputs
 `(("guile" ,guile)))
  (synopsis "Hello, Guix world: An example custom Guix package")
  (description
   "GNU Hello prints the message \"Hello, world!\" and then exits.  It
serves as an example of standard GNU coding practices.  As such, it supports
command-line arguments, multiple languages, and so on.")
  (home-page "https://www.gnu.org/software/hello/";)
  (license gpl3+))


The results:

mbc@xps:~$ guix package --install-from-file=./Downloads/guile-json/guile-json.scm
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following package will be upgraded:
   guile-json 3.2.0 → 4.3.2

Backtrace:
           1 (primitive-load "/usr/local/bin/guix")
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
error: guile: unbound variable

Why doesn't the "Defining Packages" help (https://guix.gnu.org/manual/en/html_node/Defining-Packages.html) mention guile as an input?

Are guile-2.0-dev packages needed in the Guix Store?

From the error:
Backtrace:
           1 (primitive-load "/usr/local/bin/guix")

"/usr/local/bin/guix", not ~/.config/guix/current/bin/guix as mentioned by Julien Lepiller. Is this my problem?

Thanks
Mortimer




reply via email to

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