From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.user Subject: Re: Managing Guile and extensions versions Date: Sun, 09 Oct 2005 11:53:02 +1000 Message-ID: <87psqfe9s1.fsf@zip.com.au> References: <6efab235050925145055ba774c@mail.gmail.com> <6efab235050927101826b2da7d@mail.gmail.com> <87d5mtis5l.fsf_-_@laas.fr> <87y85fpl60.fsf@zip.com.au> <87ll1frnni.fsf@laas.fr> <87d5mou19o.fsf@zip.com.au> <6efab2350510020425j76899e29hec6ea7e3dcce6c3@mail.gmail.com> <87fyrj8ipf.fsf@zip.com.au> <6efab2350510040406o10b238a2m54543ea373cdd7f5@mail.gmail.com> <87k6gs7s35.fsf@zip.com.au> <6efab2350510050718v130d983amc3e8226d2a52c1f6@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128822839 10618 80.91.229.2 (9 Oct 2005 01:53:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2005 01:53:59 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Oct 09 03:53:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOQNP-0001oj-HH for guile-user@m.gmane.org; Sun, 09 Oct 2005 03:53:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOQNO-0001Kz-PP for guile-user@m.gmane.org; Sat, 08 Oct 2005 21:53:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOQNL-0001Kr-8F for guile-user@gnu.org; Sat, 08 Oct 2005 21:53:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOQNJ-0001Kb-Bb for guile-user@gnu.org; Sat, 08 Oct 2005 21:53:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOQNJ-0001KY-7L for guile-user@gnu.org; Sat, 08 Oct 2005 21:53:17 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOQNI-0003Mf-VR for guile-user@gnu.org; Sat, 08 Oct 2005 21:53:17 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j991r7V7017126; Sun, 9 Oct 2005 11:53:07 +1000 Original-Received: from localhost (ppp2CF7.dyn.pacific.net.au [61.8.44.247]) by mailproxy1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j991r6YJ024909; Sun, 9 Oct 2005 11:53:06 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1EOQN4-0004rv-00; Sun, 09 Oct 2005 11:53:02 +1000 Original-To: Vorfeed Canal Mail-Copies-To: never In-Reply-To: <6efab2350510050718v130d983amc3e8226d2a52c1f6@mail.gmail.com> (Vorfeed Canal's message of "Wed, 5 Oct 2005 18:18:07 +0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) 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:4814 Archived-At: Vorfeed Canal writes: > >> GUILE=/myexperiments/guile/bin/guile \ >> GUILE_CONFIG=/myexperiments/guile/bin/guile-config \ >> GUILE_TOOLS=/myexperiments/guile/bin/guile-tools \ I would set the PATH, this probably works though. > $ /myexperiments/guile/bin/guile -c '(use myextension modulename) ...' The short answer is: nothing special. To run guile from a non-default location (anywhere except /usr I think), I believe you need to put the new libdir into LTDL_LIBRARY_PATH. This is so guile can find its own C code modules. Having set that it will find extensions like yours too. The alternative, as I said, is to have your scm know the libdir you were configured with. This has the advantage of working if the user installs your code to a different prefix than guile. (Which may be unlikely, but is quite possible.) (Indicentally, I think guile should know its own libdir and know to look there. But a non-standard location is just that, ie. non-standard, so it's not totally unreasonable to have to tell the linking process about it.) _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user