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: installing module in site path Date: Fri, 12 Nov 2021 08:30:22 +0100 Message-ID: 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="3804"; 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:30:59 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 1mlR1W-0000l0-51 for guile-user@m.gmane-mx.org; Fri, 12 Nov 2021 08:30:58 +0100 Original-Received: from localhost ([::1]:43082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mlR1U-0005Tu-7B for guile-user@m.gmane-mx.org; Fri, 12 Nov 2021 02:30:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mlR1A-0005TW-Ic for guile-user@gnu.org; Fri, 12 Nov 2021 02:30:36 -0500 Original-Received: from [2607:f8b0:4864:20::b36] (port=37510 helo=mail-yb1-xb36.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mlR18-0003iT-N6 for guile-user@gnu.org; Fri, 12 Nov 2021 02:30:36 -0500 Original-Received: by mail-yb1-xb36.google.com with SMTP id e136so21458543ybc.4 for ; Thu, 11 Nov 2021 23:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=FjSbpMB0iYuH/DyFd5rPjHaiQ39swRca1CP08L/qH3A=; b=O02YnzOA7iX6EjWo0JV7wtMHE2HKkXG1lX9qpfrF7Pow3B2hgKnaV8VWMsuGGfFJNn J9TxyvoCCbIn0d2OodfB3cpTDi5+Viu4UU0beAOesDMflL+3kBEur2V3vIjv9FDjcs5/ Iwtx2p2IJetAdKRg0rrl4dgl1trUZOzA22vuxp+LQmcpaLw0HBV93jvhz0Pln30Q9O2i qbq/lwq/X0Te3CFp9B/Oz3yaGbU4v9frvM/O7JtxOuWQHDM58FESIG979/zFaESqzYua umdbBU31CR8wyKbiggqJ8eRLkXB502gw3YurxXuFdhIBRHS89jtzZDdY4bwRCt+s8glC wJoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FjSbpMB0iYuH/DyFd5rPjHaiQ39swRca1CP08L/qH3A=; b=k2VmFKPG6QTM7Bpj06oMnkstTOUimr2BhFrX8FGKjv02wvWK1Rr2m91NnOxMd+Y+cH 9Ohy1KzDf5meB2t7n65m+nKHm3R9f9fdMxCaODfVqrZ9KAJ+27V/NN7f8NfwBsYMjcUM 0TtY6pGIqJwcqpxnMx8IOM+v8+RMiF2pzW6KmtA3HM+TaKLZe+PLkMbURkW4LWrvsFT/ s5oooHJtidTY4dKDNELFIr45OFYNx1eS4HqLAHBSuUFsJIIvu+3+1z/jFw7oKYaqS41m KiLbRP+oDxrXiC7P3P2hfpyzJ4fvPBflS8NFaVe+OdepS+2OyruP9HyR9gud954eTB7O RVGQ== X-Gm-Message-State: AOAM531362vtlJRy2gSszhmapfoXZJ67Tuve7RGUVxKcTM5Y2nq4hmQU vk9T54U+boMuWsZwldYHbaB6a0errqZ9DLztmv8eiPuwLPY= X-Google-Smtp-Source: ABdhPJxEe3JA7LHfoT88Ezr6OcTbs47a+7aoNteHLjkVtE9dqaVTH2wbMqBKu/Tk0B68rR08AxHbaRhbilqxJPFx5SI= X-Received: by 2002:a25:d150:: with SMTP id i77mr13445570ybg.246.1636702232783; Thu, 11 Nov 2021 23:30:32 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b36 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=damien.mattei@gmail.com; helo=mail-yb1-xb36.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:17825 Archived-At: 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