guile-user
[Top][All Lists]
Advanced

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

installing module in site path


From: Damien Mattei
Subject: installing module in site path
Date: Fri, 12 Nov 2021 08:30:22 +0100

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


reply via email to

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