all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Lirzin <mthl@gnu.org>
To: Alex Vong <alexvong1995@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] website: Add support for Haunt.
Date: Tue, 17 Nov 2015 00:45:45 +0100	[thread overview]
Message-ID: <87mvudpkye.fsf@gnu.org> (raw)
In-Reply-To: <CADrxHD8C2uHZJBY+icFKXGoDwcgJeMm5c4n0SnqjfgEHudAX=Q@mail.gmail.com> (Alex Vong's message of "Wed, 11 Nov 2015 13:14:09 +0800")

Hi,

Sorry for my late answer.

Alex Vong <alexvong1995@gmail.com> writes:

> I have followed your instruction but there is still a problem. After I
> run `guix build -f guix.scm`, I try to run:
>
> alexvong1995@debian:~$
> /gnu/store/n8r3jj2jhs5xvpcf2d4crqk706089sxa-haunt-0.1/bin/haunt --help
> Backtrace:
> In ice-9/boot-9.scm:
>  157: 17 [catch #t #<catch-closure 2147840> ...]
> In unknown file:
>    ?: 16 [apply-smob/1 #<catch-closure 2147840>]
> In ice-9/boot-9.scm:
>   63: 15 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
>  432: 14 [eval # #]
> In ice-9/boot-9.scm:
> 2401: 13 [save-module-excursion #<procedure 2164940 at
> ice-9/boot-9.scm:4045:3 ()>]
> 4050: 12 [#<procedure 2164940 at ice-9/boot-9.scm:4045:3 ()>]
> 1724: 11 [%start-stack load-stack ...]
> 1729: 10 [#<procedure 217aea0 ()>]
> In unknown file:
>    ?: 9 [primitive-load
> "/gnu/store/n8r3jj2jhs5xvpcf2d4crqk706089sxa-haunt-0.1/bin/haunt"]
> In ice-9/eval.scm:
>  505: 8 [#<procedure 20186a0 at ice-9/eval.scm:499:4 (exp)> (use-modules #)]
> In ice-9/psyntax.scm:
> 1106: 7 [expand-top-sequence ((use-modules (haunt ui))) () ...]
>  989: 6 [scan ((use-modules (haunt ui))) () ...]
>  279: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
> In ice-9/boot-9.scm:
> 3597: 4 [process-use-modules (((haunt ui)))]
>  702: 3 [map #<procedure 20d9d00 at ice-9/boot-9.scm:3597:25 (mif-args)> ((#))]
> 3598: 2 [#<procedure 20d9d00 at ice-9/boot-9.scm:3597:25 (mif-args)>
> ((haunt ui))]
> 2867: 1 [resolve-interface (haunt ui) #:select ...]
> In unknown file:
>    ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (haunt ui)) #f]
>
> ERROR: In procedure scm-error:
> ERROR: no code for module (haunt ui)
>
> Thanks for your help!
>
> Cheers,
> Alex

The problem is that your guile related environment variables are not
correctly set to find random guile modules in /gnu/store.  Since you
have (correctly) defined:

  GUIX_PROFILE="$HOME/.guix-profile" \
    source "$HOME/.guix-profile/etc/profile"

It is required to install the package in your profile with:

  guix package -i $(guix build -f guix.scm)

As a result ~/.guix-profile/share/guile/site/2.0/haunt will be created
and GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH will be able to find
the (haunt ...) modules when XXX/bin/haunt is executed.

Does it makes sense?

--
Mathieu Lirzin

      reply	other threads:[~2015-11-16 23:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-03 21:26 [PATCH] website: Add support for Haunt Mathieu Lirzin
2015-11-03 23:21 ` Thompson, David
2015-11-04  0:21 ` Daniel Pimentel
2015-11-05 21:25 ` Ludovic Courtès
2015-11-05 21:48   ` Thompson, David
2015-11-05 23:50     ` Mathieu Lirzin
2015-11-06 14:28       ` Thompson, David
2015-11-06 15:11         ` Luis Felipe López Acevedo
2015-11-06 20:47     ` Ludovic Courtès
2015-11-06 20:58       ` Thompson, David
2015-11-07 11:04         ` Ludovic Courtès
2015-11-09 19:09           ` Thompson, David
2015-11-10 12:17 ` Alex Vong
2015-11-10 16:37   ` Mathieu Lirzin
2015-11-11  5:14     ` Alex Vong
2015-11-16 23:45       ` Mathieu Lirzin [this message]

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

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

  git send-email \
    --in-reply-to=87mvudpkye.fsf@gnu.org \
    --to=mthl@gnu.org \
    --cc=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /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.
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.