unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* request for help with module build/install
@ 2015-07-02  0:56 Matt Wette
  2015-07-02  3:12 ` Nala Ginrut
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Matt Wette @ 2015-07-02  0:56 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

Hi Folks,

I have developed a set of guile modules.   I'd like to be able to generate a package hosted on, say, github.com (or any other recommended site).   Is there a document providing guidance for this task?   For example, looking at "%load-path" in guile I'm guessing I want the code to be installed in .../share/guile/2.0/site or .../share/guile/site.  Is the "site-dir" available as a variable?

Once installed, I'm guessing I can just use guild to compile and that will install the .go files in the right place (e.g.,  .../lib/guile/ccache/2.0).

Matt

[-- Attachment #2: Type: text/html, Size: 865 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-02  0:56 request for help with module build/install Matt Wette
@ 2015-07-02  3:12 ` Nala Ginrut
  2015-07-05  2:19   ` Matt Wette
  2015-07-02  7:01 ` Jan Wedekind
  2015-07-02  8:04 ` Chaos Eternal
  2 siblings, 1 reply; 9+ messages in thread
From: Nala Ginrut @ 2015-07-02  3:12 UTC (permalink / raw)
  To: Matt Wette; +Cc: guile-user

hi Matt!
For .scm files, you may put it to (%site-dir)
MOD_PATH := $(shell guile -c "(display (%site-dir))")

For compiled .go, you may put it to (%site-ccache-dir) here:
COMPILED_MOD := $(shell guile -c "(display (%site-ccache-dir))")

And it won't be compiled again when you load it.

Happy hacking!

On Wed, 2015-07-01 at 17:56 -0700, Matt Wette wrote:
> Hi Folks,
> 
> I have developed a set of guile modules.   I'd like to be able to generate a package hosted on, say, github.com (or any other recommended site).   Is there a document providing guidance for this task?   For example, looking at "%load-path" in guile I'm guessing I want the code to be installed in .../share/guile/2.0/site or .../share/guile/site.  Is the "site-dir" available as a variable?
> 
> Once installed, I'm guessing I can just use guild to compile and that will install the .go files in the right place (e.g.,  .../lib/guile/ccache/2.0).
> 
> Matt





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-02  0:56 request for help with module build/install Matt Wette
  2015-07-02  3:12 ` Nala Ginrut
@ 2015-07-02  7:01 ` Jan Wedekind
  2015-07-02  8:04 ` Chaos Eternal
  2 siblings, 0 replies; 9+ messages in thread
From: Jan Wedekind @ 2015-07-02  7:01 UTC (permalink / raw)
  To: Matt Wette, guile-user

Hi,
My project AIscm [1] uses autotools to build and install Guile binaries (.go) if that is of use to you.

Jan

[1] http://github.com/wedesoft/aiscm

On July 2, 2015 1:56:00 AM GMT+01:00, Matt Wette <mwette@alumni.caltech.edu> wrote:
>Hi Folks,
>
>I have developed a set of guile modules.   I'd like to be able to
>generate a package hosted on, say, github.com (or any other recommended
>site).   Is there a document providing guidance for this task?   For
>example, looking at "%load-path" in guile I'm guessing I want the code
>to be installed in .../share/guile/2.0/site or .../share/guile/site. 
>Is the "site-dir" available as a variable?
>
>Once installed, I'm guessing I can just use guild to compile and that
>will install the .go files in the right place (e.g., 
>.../lib/guile/ccache/2.0).
>
>Matt

-- 
Jan Wedekind
http://www.wedesoft.de/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-02  0:56 request for help with module build/install Matt Wette
  2015-07-02  3:12 ` Nala Ginrut
  2015-07-02  7:01 ` Jan Wedekind
@ 2015-07-02  8:04 ` Chaos Eternal
  2015-07-02 13:08   ` Matt Wette
  2 siblings, 1 reply; 9+ messages in thread
From: Chaos Eternal @ 2015-07-02  8:04 UTC (permalink / raw)
  To: Matt Wette; +Cc: guile-user

Hi,

The project guile-scsh has a simple install script, hope that helps.

https://github.com/ChaosEternal/guile-scsh

On Thu, Jul 2, 2015 at 8:56 AM, Matt Wette <mwette@alumni.caltech.edu> wrote:
> Hi Folks,
>
> I have developed a set of guile modules.   I'd like to be able to generate a
> package hosted on, say, github.com (or any other recommended site).   Is
> there a document providing guidance for this task?   For example, looking at
> "%load-path" in guile I'm guessing I want the code to be installed in
> .../share/guile/2.0/site or .../share/guile/site.  Is the "site-dir"
> available as a variable?
>
> Once installed, I'm guessing I can just use guild to compile and that will
> install the .go files in the right place (e.g.,  .../lib/guile/ccache/2.0).
>
> Matt



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-02  8:04 ` Chaos Eternal
@ 2015-07-02 13:08   ` Matt Wette
  0 siblings, 0 replies; 9+ messages in thread
From: Matt Wette @ 2015-07-02 13:08 UTC (permalink / raw)
  To: guile-user

Thanks all.  I think I can find a solution now.

On Jul 2, 2015, at 1:04 AM, Chaos Eternal <chaoseternal@shlug.org> wrote:

> Hi,
> 
> The project guile-scsh has a simple install script, hope that helps.
> 
> https://github.com/ChaosEternal/guile-scsh
> 
> On Thu, Jul 2, 2015 at 8:56 AM, Matt Wette <mwette@alumni.caltech.edu> wrote:
>> Hi Folks,
>> 
>> I have developed a set of guile modules.   I'd like to be able to generate a
>> package hosted on, say, github.com (or any other recommended site).   Is
>> there a document providing guidance for this task?   For example, looking at
>> "%load-path" in guile I'm guessing I want the code to be installed in
>> .../share/guile/2.0/site or .../share/guile/site.  Is the "site-dir"
>> available as a variable?
>> 
>> Once installed, I'm guessing I can just use guild to compile and that will
>> install the .go files in the right place (e.g.,  .../lib/guile/ccache/2.0).
>> 
>> Matt




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-02  3:12 ` Nala Ginrut
@ 2015-07-05  2:19   ` Matt Wette
  2015-07-05  8:42     ` Jan Wedekind
  0 siblings, 1 reply; 9+ messages in thread
From: Matt Wette @ 2015-07-05  2:19 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]

On Jul 1, 2015, at 8:12 PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
> For .scm files, you may put it to (%site-dir)
> MOD_PATH := $(shell guile -c "(display (%site-dir))")
> 
> For compiled .go, you may put it to (%site-ccache-dir) here:
> COMPILED_MOD := $(shell guile -c "(display (%site-ccache-dir))")
> 
> And it won't be compiled again when you load it.

This is not working for me (guile 2.0.11).  See below.  In addition I have tried other items.
(In addition, when I "sudo -s" to install under /opt/local, I end up with guild support modules owned by root in my ~/.cache dir.)

mwette$ cd /opt/local
mwette$ ls -l share/guile/site/2.0/nyacc/
total 184
-rw-r--r--  1 root  admin  69804 Jul  4 18:51 lalr.scm
-rw-r--r--  1 root  admin  13564 Jul  4 18:51 lex.scm
-rw-r--r--  1 root  admin   4041 Jul  4 18:51 util.scm

mwette$ ls -l lib/guile/2.0/site-ccache/nyacc/
total 272
-rw-r--r--  1 root  admin  111444 Jul  4 18:53 lalr.scm.go
-rw-r--r--  1 root  admin   15367 Jul  4 18:53 lex.scm.go
-rw-r--r--  1 root  admin    5470 Jul  4 18:53 util.scm.go

mwette$ GUILE_LOAD_PATH= guile calc.scm 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm
;;; compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm
;;; compiling /opt/local/share/guile/site/2.0/nyacc/util.scm
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/util.scm.go
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lalr.scm.go
;;; compiling /opt/local/share/guile/site/2.0/nyacc/lex.scm
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lex.scm.go
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm.go
2
mwette$ 


[-- Attachment #2: Type: text/html, Size: 3855 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-05  2:19   ` Matt Wette
@ 2015-07-05  8:42     ` Jan Wedekind
  2015-07-05 13:05       ` Matt Wette
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Wedekind @ 2015-07-05  8:42 UTC (permalink / raw)
  To: Matt Wette, guile-user

I think the file names should be *.go (not *.scm.go).

On July 5, 2015 3:19:47 AM GMT+01:00, Matt Wette <mwette@alumni.caltech.edu> wrote:
>On Jul 1, 2015, at 8:12 PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
>> For .scm files, you may put it to (%site-dir)
>> MOD_PATH := $(shell guile -c "(display (%site-dir))")
>> 
>> For compiled .go, you may put it to (%site-ccache-dir) here:
>> COMPILED_MOD := $(shell guile -c "(display (%site-ccache-dir))")
>> 
>> And it won't be compiled again when you load it.
>
>This is not working for me (guile 2.0.11).  See below.  In addition I
>have tried other items.
>(In addition, when I "sudo -s" to install under /opt/local, I end up
>with guild support modules owned by root in my ~/.cache dir.)
>
>mwette$ cd /opt/local
>mwette$ ls -l share/guile/site/2.0/nyacc/
>total 184
>-rw-r--r--  1 root  admin  69804 Jul  4 18:51 lalr.scm
>-rw-r--r--  1 root  admin  13564 Jul  4 18:51 lex.scm
>-rw-r--r--  1 root  admin   4041 Jul  4 18:51 util.scm
>
>mwette$ ls -l lib/guile/2.0/site-ccache/nyacc/
>total 272
>-rw-r--r--  1 root  admin  111444 Jul  4 18:53 lalr.scm.go
>-rw-r--r--  1 root  admin   15367 Jul  4 18:53 lex.scm.go
>-rw-r--r--  1 root  admin    5470 Jul  4 18:53 util.scm.go
>
>mwette$ GUILE_LOAD_PATH= guile calc.scm 
>;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
>;;;       or pass the --no-auto-compile argument to disable.
>;;; compiling
>/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm
>;;; compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm
>;;; compiling /opt/local/share/guile/site/2.0/nyacc/util.scm
>;;; compiled
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/util.scm.go
>;;; compiled
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lalr.scm.go
>;;; compiling /opt/local/share/guile/site/2.0/nyacc/lex.scm
>;;; compiled
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lex.scm.go
>;;; compiled
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm.go
>2
>mwette$ 

-- 
Jan Wedekind
http://www.wedesoft.de/



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-05  8:42     ` Jan Wedekind
@ 2015-07-05 13:05       ` Matt Wette
  2015-07-05 13:44         ` Jan Wedekind
  0 siblings, 1 reply; 9+ messages in thread
From: Matt Wette @ 2015-07-05 13:05 UTC (permalink / raw)
  To: Jan Wedekind; +Cc: guile-user

Ah, thanks.  The cached files under the user directory are .scm.go, but the ones in the global are .go.

On Jul 5, 2015, at 1:42 AM, Jan Wedekind <jan@wedesoft.de> wrote:

> I think the file names should be *.go (not *.scm.go).
> 
> On July 5, 2015 3:19:47 AM GMT+01:00, Matt Wette <mwette@alumni.caltech.edu> wrote:
>> On Jul 1, 2015, at 8:12 PM, Nala Ginrut <nalaginrut@gmail.com> wrote:
>>> For .scm files, you may put it to (%site-dir)
>>> MOD_PATH := $(shell guile -c "(display (%site-dir))")
>>> 
>>> For compiled .go, you may put it to (%site-ccache-dir) here:
>>> COMPILED_MOD := $(shell guile -c "(display (%site-ccache-dir))")
>>> 
>>> And it won't be compiled again when you load it.
>> 
>> This is not working for me (guile 2.0.11).  See below.  In addition I
>> have tried other items.
>> (In addition, when I "sudo -s" to install under /opt/local, I end up
>> with guild support modules owned by root in my ~/.cache dir.)
>> 
>> mwette$ cd /opt/local
>> mwette$ ls -l share/guile/site/2.0/nyacc/
>> total 184
>> -rw-r--r--  1 root  admin  69804 Jul  4 18:51 lalr.scm
>> -rw-r--r--  1 root  admin  13564 Jul  4 18:51 lex.scm
>> -rw-r--r--  1 root  admin   4041 Jul  4 18:51 util.scm
>> 
>> mwette$ ls -l lib/guile/2.0/site-ccache/nyacc/
>> total 272
>> -rw-r--r--  1 root  admin  111444 Jul  4 18:53 lalr.scm.go
>> -rw-r--r--  1 root  admin   15367 Jul  4 18:53 lex.scm.go
>> -rw-r--r--  1 root  admin    5470 Jul  4 18:53 util.scm.go
>> 
>> mwette$ GUILE_LOAD_PATH= guile calc.scm 
>> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
>> ;;;       or pass the --no-auto-compile argument to disable.
>> ;;; compiling
>> /Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm
>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm
>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/util.scm
>> ;;; compiled
>> /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/util.scm.go
>> ;;; compiled
>> /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lalr.scm.go
>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lex.scm
>> ;;; compiled
>> /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lex.scm.go
>> ;;; compiled
>> /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm.go
>> 2
>> mwette$ 
> 
> -- 
> Jan Wedekind
> http://www.wedesoft.de/




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: request for help with module build/install
  2015-07-05 13:05       ` Matt Wette
@ 2015-07-05 13:44         ` Jan Wedekind
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Wedekind @ 2015-07-05 13:44 UTC (permalink / raw)
  To: Matt Wette; +Cc: guile-user

Hmm ok. Also the timestamp of the *.go file needs to be more recent than the *.scm source. But that looked ok in the "ls" output you posted.

On July 5, 2015 2:05:33 PM GMT+01:00, Matt Wette <mwette@alumni.caltech.edu> wrote:
>Ah, thanks.  The cached files under the user directory are .scm.go, but
>the ones in the global are .go.
>
>On Jul 5, 2015, at 1:42 AM, Jan Wedekind <jan@wedesoft.de> wrote:
>
>> I think the file names should be *.go (not *.scm.go).
>> 
>> On July 5, 2015 3:19:47 AM GMT+01:00, Matt Wette
><mwette@alumni.caltech.edu> wrote:
>>> On Jul 1, 2015, at 8:12 PM, Nala Ginrut <nalaginrut@gmail.com>
>wrote:
>>>> For .scm files, you may put it to (%site-dir)
>>>> MOD_PATH := $(shell guile -c "(display (%site-dir))")
>>>> 
>>>> For compiled .go, you may put it to (%site-ccache-dir) here:
>>>> COMPILED_MOD := $(shell guile -c "(display (%site-ccache-dir))")
>>>> 
>>>> And it won't be compiled again when you load it.
>>> 
>>> This is not working for me (guile 2.0.11).  See below.  In addition
>I
>>> have tried other items.
>>> (In addition, when I "sudo -s" to install under /opt/local, I end up
>>> with guild support modules owned by root in my ~/.cache dir.)
>>> 
>>> mwette$ cd /opt/local
>>> mwette$ ls -l share/guile/site/2.0/nyacc/
>>> total 184
>>> -rw-r--r--  1 root  admin  69804 Jul  4 18:51 lalr.scm
>>> -rw-r--r--  1 root  admin  13564 Jul  4 18:51 lex.scm
>>> -rw-r--r--  1 root  admin   4041 Jul  4 18:51 util.scm
>>> 
>>> mwette$ ls -l lib/guile/2.0/site-ccache/nyacc/
>>> total 272
>>> -rw-r--r--  1 root  admin  111444 Jul  4 18:53 lalr.scm.go
>>> -rw-r--r--  1 root  admin   15367 Jul  4 18:53 lex.scm.go
>>> -rw-r--r--  1 root  admin    5470 Jul  4 18:53 util.scm.go
>>> 
>>> mwette$ GUILE_LOAD_PATH= guile calc.scm 
>>> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
>>> ;;;       or pass the --no-auto-compile argument to disable.
>>> ;;; compiling
>>>
>/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm
>>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm
>>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/util.scm
>>> ;;; compiled
>>>
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/util.scm.go
>>> ;;; compiled
>>>
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lalr.scm.go
>>> ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lex.scm
>>> ;;; compiled
>>>
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/2.0/nyacc/lex.scm.go
>>> ;;; compiled
>>>
>/Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm.go
>>> 2
>>> mwette$ 
>> 
>> -- 
>> Jan Wedekind
>> http://www.wedesoft.de/

-- 
Jan Wedekind
http://www.wedesoft.de/



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-05 13:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02  0:56 request for help with module build/install Matt Wette
2015-07-02  3:12 ` Nala Ginrut
2015-07-05  2:19   ` Matt Wette
2015-07-05  8:42     ` Jan Wedekind
2015-07-05 13:05       ` Matt Wette
2015-07-05 13:44         ` Jan Wedekind
2015-07-02  7:01 ` Jan Wedekind
2015-07-02  8:04 ` Chaos Eternal
2015-07-02 13:08   ` Matt Wette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).