How to install language on htdp / bsl in REPL

I have the following program htdp/bslsaved as example.rkt:

#lang htdp/bsl
(+ 1 1)

When the above is done with racket example.rkt, the output will be as expected (i.e. 2).

However, when I try to run REPL with htdp/bslas the language ( racket -I htdp/bsl), the following error appears:

Welcome to Racket v6.3.
 default-load-handler: cannot open module file
  module path: (lib "htdp/bsl")
  path: /usr/share/racket/pkgs/htdp-lib/htdp/bsl.rkt
  system error: No such file or directory; errno=2
  context...:

This error does not appear if the selected language typed/racket, for example.

Why does error c occur htdp/bsland how to correctly run REPL c htdp/bslas a language?

+4
source share
2 answers

@soegaard, htdp DrRacket, . , REPL DrRacket (, script), ,enter, BSL. , BSL homework1.rkt, :

#lang htdp/bsl
"I'm a rebel"

, , Racket . - :

$ racket
> ,enter "homework1.bsl"
"I'm a rebel"
homework1.bsl>

BSL, DrRacket.

+2

racket -I htpd/bsl/lang example.rkt

( Racket 6.3.0.1).

Racket ( 6.10).

+1

Source: https://habr.com/ru/post/1685051/


All Articles