Open nomelif opened 5 years ago
export CHEZSCHEMELIBDIRS=.:lib:/usr/local/lib && export CHEZSCHEMELIBEXTS=.chezscheme.sls::.chezscheme.so:.ss::.so:.sls::.so:.scm::.so:.sch::.so:.sc::.so
or
(library-directories `(("./lib" . "./lib"))) (library-extensions (cons (cons ".sc" ".so") (library-extensions)))
Thanks, this solves the extension question. I still get this error:
[shadoko@poppisrausku libertest]$ scheme
Chez Scheme Version 9.5.3
Copyright 1984-2019 Cisco Systems, Inc.
> (library-directories `(("./lib" . "./lib")))
> (library-extensions (cons (cons ".sc" ".so") (library-extensions)))
> (import (liber liber))
Exception: multiple definitions for div and meta in body (library (liber liber) (export !-- bcstr cstr HTML HEAD ...) (import (scheme)) (define !-- list) (define bcstr (lambda (...) (...))) ...) at line 1, char 1 of ./lib/liber/liber.sc
Type (debug) to enter the debugger.
>
Am I still doing something wrong?
the first problem because you don't run it with " raven run", witch auto-modify the library's path.
for the second one
run with "scheme --script"
or
if you want run with --program
try delete: (import (scheme)) in 71 and 72 lines of source liber.sc
Hello. I am very much new to the world of Schemes. I apologize in advance if I am missing something obvious. I tried to install liber via raven as follows:
Trying to import it fails:
I tried to rename the source files from
.sc
to.scm
as I had seen that extension before. This caused chez to recognize the library but throw another error:This looks a lot like an internal error, but perhaps my unguided brain surgery caused it. My point here is that my paths are correct as renaming the file shows.
I assume that changing extensions isn't the right way to go. How should I get chez to detect the library?
Here is some info about my device:
Thanks in advance for your help.