From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: Re: installing module in site path
Date: Fri, 12 Nov 2021 08:51:29 +0100 [thread overview]
Message-ID: <CADEOade=NQGztfLsBT7XpsG=3FWCUvA4y_z+ACx=g9LqmSav0A@mail.gmail.com> (raw)
In-Reply-To: <CADEOadedUhF=nX7v3W2tHaT7XZog-KfQ_sSTdfAb=9gxGUJPMg@mail.gmail.com>
well, i find myself a quick solution:
the problem was with include that needs an absolute path, worked well
locally, but not in a site context so i changed my include in code with
*include-from-path.*
*see:
https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html
<https://www.gnu.org/software/guile/manual/html_node/Local-Inclusion.html>*
and all compiles well now.
Damien
On Fri, Nov 12, 2021 at 8:30 AM Damien Mattei <damien.mattei@gmail.com>
wrote:
>
> hello,
> i'm trying to install module in the site path, it works in local but does
> not compile from site path (i'm under mac os monterey with guile 3.0.7)
>
> here is the output and variables:
> mattei@macbook-pro-touch-bar library-FunctProg % echo $GUILE_LOAD_PATH
> /opt/homebrew/share/guile/site/3.0
>
> mattei@macbook-pro-touch-bar library-FunctProg % zd $GUILE_LOAD_PATH
> total 8384
> (note :zd is an alias for ls -la)
> drwxr-xr-x 27 mattei admin 864 12 nov 07:58 .
> drwxr-xr-x 3 mattei admin 96 27 jul 13:57 ..
> -rw-r--r--@ 1 mattei admin 35149 12 nov 07:58 LICENSE
> -rw-r--r--@ 1 mattei admin 102434 12 nov 07:58 README.md
> -rw-r--r--@ 1 mattei admin 109269 12 nov 07:58 Scheme+.html
> -rw-r--r--@ 1 mattei admin 18359 12 nov 07:58 Scheme+.png
> -rw-r--r--@ 1 mattei admin 1666 12 nov 07:58 Scheme+.scm
> -rw-r--r--@ 1 mattei admin 12460 12 nov 07:58 SssDyna.scm
> -rw-r--r--@ 1 mattei admin 143 12 nov 07:58 _config.yml
> -rw-r--r--@ 1 mattei admin 1666 12 nov 07:58
> array-square-brackets.scm
> -rw-r--r--@ 1 mattei admin 4688 12 nov 07:58 assignment.scm
> -rw-r--r--@ 1 mattei admin 1331 12 nov 07:58 block.scm
> -rw-r--r--@ 1 mattei admin 2128 12 nov 07:58 condx.scm
> -rw-r--r--@ 1 mattei admin 3074 12 nov 07:58 debug.scm
> -rw-r--r--@ 1 mattei admin 621 12 nov 07:58 declare.scm
> -rw-r--r--@ 1 mattei admin 1439 12 nov 07:58 def.scm
> -rw-r--r--@ 1 mattei admin 1373 12 nov 07:58 fibonacci.scm
> -rw-r--r--@ 1 mattei admin 214 12 nov 07:58 first-and-rest.scm
> -rw-r--r--@ 1 mattei admin 2980 12 nov 07:58 for-next-step.scm
> -rw-r--r--@ 1 mattei admin 8563 12 nov 07:58 growable-vector.scm
> -rw-r--r--@ 1 mattei admin 4060 12 nov 07:58 guile-logo.png
> -rw-r--r--@ 1 mattei admin 217 12 nov 07:58 increment.scm
> -rw-r--r--@ 1 mattei admin 3909169 12 nov 07:58
> intersection-Guagno-Soccia.JPG
> -rw-r--r--@ 1 mattei admin 189 12 nov 07:58 not-equal.scm
> -rw-r--r--@ 1 mattei admin 364 12 nov 07:58 number.scm
> -rw-r--r--@ 1 mattei admin 1008 12 nov 07:58 pair.scm
> -rw-r--r--@ 1 mattei admin 61 12 nov 07:58 rest.scm
>
> mattei@macbook-pro-touch-bar library-FunctProg % guile
> GNU Guile 3.0.7
> Copyright (C) 1995-2021 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (load "SssDyna.scm")
> ;;; note: source file
> /Users/mattei/Dropbox/git/library-FunctProg/SssDyna.scm
> ;;; newer than compiled
> /Users/mattei/.cache/guile/ccache/3.0-LE-8-4.5/Users/mattei/Dropbox/git/library-FunctProg/SssDyna.scm.go
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-auto-compile argument to disable.
> ;;; compiling /Users/mattei/Dropbox/git/library-FunctProg/SssDyna.scm
> ;;; compiling /opt/homebrew/share/guile/site/3.0/Scheme+.scm
> ;;; compiling /opt/homebrew/share/guile/site/3.0/growable-vector.scm
> ;;; compiled
> /Users/mattei/.cache/guile/ccache/3.0-LE-8-4.5/opt/homebrew/Cellar/guile/3.0.7/share/guile/site/3.0/growable-vector.scm.go
> ;;; WARNING: compilation of /opt/homebrew/share/guile/site/3.0/Scheme+.scm
> failed:
> ;;; In procedure open-file: No such file or directory:
> "./array-square-brackets.scm"
> ;;; WARNING: compilation of
> /Users/mattei/Dropbox/git/library-FunctProg/SssDyna.scm failed:
> ;;; In procedure open-file: No such file or directory:
> "./array-square-brackets.scm"
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Unbound variable: declare
>
> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
>
> i do not understand the error message:
> ;;; WARNING: compilation of /opt/homebrew/share/guile/site/3.0/Scheme+.scm
> failed:
> ;;; In procedure open-file: No such file or directory:
> "./array-square-brackets.scm"
> because the file ./array-square-brackets.scm exist in
> /opt/homebrew/share/guile/site/3.0/
>
> if i set myself in a directory where both the code and module are ,all
> compile well.
> here is my .guile for info:
> mattei@macbook-pro-touch-bar Scheme-PLUS-for-Guile % cat
> /Volumes/Macintosh\ HD/Users/mattei/.guile
> ;; Guile config file
>
> ;; history
> (use-modules (ice-9 readline)
> (ice-9 history)
> (srfi srfi-43) ;; vector
> ;; guile object oriented programming system
> (oop goops)
> (oop goops describe))
>
> (activate-readline)
> ;;(disable-value-history!)
>
> ;; curly infix as in srfi-105
> (read-enable 'curly-infix)
>
> ;; set current path in load path
> (set! %load-path (reverse (cons "." (reverse %load-path))))
> ;; other solution is to put this in shell:
> ;; export GUILE_LOAD_PATH="...:."
>
> Damien
>
>
prev parent reply other threads:[~2021-11-12 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 7:30 installing module in site path Damien Mattei
2021-11-12 7:51 ` Damien Mattei [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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADEOade=NQGztfLsBT7XpsG=3FWCUvA4y_z+ACx=g9LqmSav0A@mail.gmail.com' \
--to=damien.mattei@gmail.com \
--cc=guile-user@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).