From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.lisp.guile.user Subject: SLIB and ice-9 slib module Date: Wed, 19 Mar 2008 01:30:51 +0200 Message-ID: <87eja74nkk.fsf@moley.moleskin.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205883146 4965 80.91.229.12 (18 Mar 2008 23:32:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 23:32:26 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 19 00:32:55 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JblII-0000WD-QA for guile-user@m.gmane.org; Wed, 19 Mar 2008 00:32:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JblHi-0003ej-HA for guile-user@m.gmane.org; Tue, 18 Mar 2008 19:31:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JblGv-0002vU-M3 for guile-user@gnu.org; Tue, 18 Mar 2008 19:31:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JblGr-0002tP-7y for guile-user@gnu.org; Tue, 18 Mar 2008 19:31:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JblGr-0002tM-36 for guile-user@gnu.org; Tue, 18 Mar 2008 19:31:05 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JblGr-0004ZS-3s for guile-user@gnu.org; Tue, 18 Mar 2008 19:31:05 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JblGm-0004u2-9q for guile-user@gnu.org; Tue, 18 Mar 2008 23:31:00 +0000 Original-Received: from 85.105.17.65 ([85.105.17.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2008 23:31:00 +0000 Original-Received: from sebyte by 85.105.17.65 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2008 23:31:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.105.17.65 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:hawbX4mju4M4esiXmcdRqfwrIpY= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6477 Archived-At: Hi all, A Debian box with an apt-installed guile-1.8: /usr/share/guile/1.8 An apt-installed slib: /usr/share/slib Created symlink: /usr/share/guile/1.8/slib -> /usr/share/slib Set environment variables: export GUILE_IMPLEMENTATION_PATH="/usr/share/guile/1.8/" export SCHEME_LIBRARY_PATH="/usr/share/slib/" (also tried not setting SCHEME_LIBRARY_PATH, and setting it to /usr/share/guile/1.8/slib) but I get this every time: guile> (use-modules (ice-9 slib)) ERROR: Unbound variable: slib:features ABORT: (unbound-variable) SLIB works fine with: $ slib guile or $ guile -l /usr/share/slib/guile.init Upon inspection, ice-9's documentation is wrong in saying: 2. Define the `SCHEME_LIBRARY_PATH' environment variable: $ SCHEME_LIBRARY_PATH=/usr/local/lib/slib $ export SCHEME_LIBRARY_PATH -> Alternatively, you can create a symlink in the Guile directory to SLIB, e.g.: ln -s /usr/local/lib/slib /usr/local/share/guile/1.8/slib because the function slib-parent-dir (upon which slib's 'vicinities' are based) searches the %load-path and uses substring, in which case only a symlink will do. (define slib-parent-dir (let* ((path (%search-load-path "slib/require.scm"))) (if path (substring path 0 (- (string-length path) 17)) (error "Could not find slib/require.scm in " %load-path)))) Having said that, even with the symlink it still fails, so I give up. Sebastian