On Thu, 31 Mar 2016 16:08:56 -0700 (PDT), Alex Harsanyi
<alexharsa...@gmail.com> wrote:

>Hi,
>
>I'm getting an error when trying to create an executable for a program that 
>uses the math/statistics module.  The simplest example that reproduces the 
>issue is:
>
>  #lang racket
>  (require math/statistics)
>
>  (let* ([s  empty-statistics]
>         [s  (update-statistics s 1)]
>         [s  (update-statistics s 2)]
>         [s  (update-statistics s 3)]
>         [s  (update-statistics s 4 2)])
>    (values (statistics-mean s)
>            (statistics-stddev s #:bias #t)))
>
>The above program runs fine in DrRacket, but when I try to create an 
>stand-alone executable (from the "Racket/Create executable..." DrRacket menu 
>option), I get a "Racket internal error" message:
>
>require: unknown module
>module name: #<resolved-module-path:(submod "C:\Program 
>Files\Racket\share\pkgs\math-lib\math\private\distributions\dist-struct.rkt" 
>#%contract-defs #%contract-defs)>
>
>The file referenced in the error message exists and can be read.
>
>I'm using Racket 6.4 64Bit on Windows 7.
>
>Any advice on how to get this to work?
>
>Thanks,
>Alex.

I'm not up to date on the changes in v6.4, but the option to create an
executable from within DrRacket was broken for a long time.  It may
still be.

Try using "raco exe ..." from the command line.
https://docs.racket-lang.org/raco/exe.html?q=raco%20exe

George

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to