From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: Re: installing module in site path Date: Fri, 12 Nov 2021 08:51:29 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23609"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Nov 12 08:59:28 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mlRT5-0005xN-UE for guile-user@m.gmane-mx.org; Fri, 12 Nov 2021 08:59:28 +0100 Original-Received: from localhost ([::1]:57514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlRT4-0000dh-Sd for guile-user@m.gmane-mx.org; Fri, 12 Nov 2021 02:59:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlRSt-0000dI-9n for guile-user@gnu.org; Fri, 12 Nov 2021 02:59:15 -0500 Original-Received: from [2607:f8b0:4864:20::334] (port=39653 helo=mail-ot1-x334.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlRSr-0007Uf-38 for guile-user@gnu.org; Fri, 12 Nov 2021 02:59:15 -0500 Original-Received: by mail-ot1-x334.google.com with SMTP id r10-20020a056830080a00b0055c8fd2cebdso12736653ots.6 for ; Thu, 11 Nov 2021 23:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=o5l1l4Q1IYdbMYVwHptqrgq7/lLcUI2cgtLVMLd4C/0=; b=M94IMzkz4JUWT+1r7pcvjh8JTVCuUq9uCqyfzyIFiPQu9LmnuqDNDWBjCTVWvdzhhM /8A1ju6k50d25/9y94H66heQnPA1Ymbk7kDs/LBq5r05c/6JmkFjO2wPlkPGWJOsF0xf p5RLBHRf4LeW8vHIZZiJSGZe4Iw1llV++Q/UyP/JnZoeyma+r8T1tCGI874cp7zqVJjb 10NJ0DgQnZ/US8gh3h5fzDdh/4m1Z9iWTWigID8e75PLJFXJWptXsnIzydSWJixMnBaq 4ahc3dTpXnMxWu6SoAlbIh+3LaFLP7PEMIjX1qVhDHuP76lIMWBt7PF2gGveyq0IKN3h kPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=o5l1l4Q1IYdbMYVwHptqrgq7/lLcUI2cgtLVMLd4C/0=; b=wQOyC6Cz2RU23UYM3x4HCTwikjzmU6VbsN97MhgvT4TFYjGNA1+frPP5V+D8FgFcPt pECBm8JmLs4TYjoiaHTmmPMPixfGxjgIQtTmlcCEDWp/12FHw/nJ/2Or0V0ifxLgL0Bj 26UHKRhQwznn9Kc5F+Bu6BFWY6xFcPEjRvqdxIIrfLofpLG3DPo1OfsOOhJshcDI/URB 2PLKI+2jVOIzf/+BrhVH8fWxlposseHWB2KjCUY2nlIkfIE+D9wW4EaLNC9dHkyEazhZ 7lDk3hrrcNYmyqeR3CPTAg1FvVaC5OszQMpVRuFRsasRH6zg1qAV857YsCPfrvJA3ifJ qByw== X-Gm-Message-State: AOAM5314zxbn5XKv4F90wOTn9DcK1L44I6rnqjYyouWLyL7W4wNNlZVo f9wCCsJVb9h9nkovN5zCVB4hURCXvOfopmQ+r3+mPVo6xcg= X-Google-Smtp-Source: ABdhPJxmZvoim6H/ZA03PNjL76s9zkgSltVoanYSQbR2yYzZ9bnTHgVgbnAHXeGybNCWZjv0PoRJ7NDvBxhE6VNiXzw= X-Received: by 2002:a25:48c9:: with SMTP id v192mr15258152yba.50.1636703500555; Thu, 11 Nov 2021 23:51:40 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::334 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=damien.mattei@gmail.com; helo=mail-ot1-x334.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17826 Archived-At: 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 * and all compiles well now. Damien On Fri, Nov 12, 2021 at 8:30 AM Damien Mattei 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 > >