Ubuntuã¸SLIBãå°å ¥
http://practical-scheme.net/wiliki/wiliki.cgi?Gauche%3aFAQ#H-1wd28wz
âãåèã«ãã¾ããã
ã¾ãã¯ãapt-getã
apt-get install slib
Gaucheã®ã©ã¤ãã©ãªã®ãã¹ã確èªã
gauche-config --syslibdir
念ã®ããããã¯ã¢ãã
cp slib.scm slib.scm.default
slib.scmãç·¨é
chmod u+w slib.scm sudo emacs slib.scm
å¤æ´ç®æã¯ä»¥ä¸ã®ã¨ããã
(define library-vicinity (let ((library-path (or ;; Use this getenv if your implementation supports it. (sys-getenv "SCHEME_LIBRARY_PATH") ;; Use this path if your scheme does not support GETENV ;; or if SCHEME_LIBRARY_PATH is not set. (case (software-type) ((unix) "/usr/share/slib/") ; â å¤æ´ ((unix) "/usr/local/slib/") ((vms) "lib$scheme:") ((ms-dos) "C:\\SLIB\\") (else ""))))) (lambda () library-path)))
gaucheãrootã§èµ·åãã¦
(gauche-library-directoryã«æ¸ãè¾¼ã¿ã§ãã権éã®ããã¦ã¼ã¶ã§ããã°rootã§ãªãã¦ãããããã§ãã)
gosh> (use slib) gosh> (require 'logical) gosh> (exit)
ããã§ããã¾ãã