[plt-scheme] plt scheme 4.01 (linux) - Can't create a gui executable; mzc unable to locate MrEd

From: mikes80 (mfearon80 at googlemail.com)
Date: Fri Jul 4 04:37:00 EDT 2008

Hey all,

version 4.01
Linux (Ubuntu) Installed using the install script from the PLT website

I'm trying to create an executable from some sample source code I
found on the web.

The command I am using is as follows:

mzc --gui-exe hello hello.scm

This produces the following error:

create-embedding-executable: can't find MrEd executable for variant 3m
 === context ===
/usr/lib/plt/collects/compiler/embed-unit.ss:65:4: find-exe
core

Similar errors revealed when searching for an answer suggested this
was a bug with no work around (though these where a couple of years
old and for different platforms). Is this the case here?

The following is the code I am trying to compile.

;;;begin hello.scm
(module hello ; the module name
  mzscheme ; initial syntax and variable bindings
  (require (lib "mred.ss" "mred")
      (lib "class.ss"))

  ;;Make a frame by instantiating
  ;;the frame% class
  (define frame
       (instantiate frame% ("Hello world")))

  ;;Make a static text message in the frame
  (define msg
       (instantiate message%
         ("No events so far..." frame)))

  ;; Make a button in the frame
  ;;(using keyword-based arguments)
  (instantiate button% ()
    (label "Click Me")
    (parent frame)
    ;; Callback procedure for a button click
    (callback (lambda (button event)
       (send msg set-label "Button click"))))

  ;; Show the frame by calling its show method
  (send frame show #t))
;;;end

Thanks for you time :)


Posted on the users mailing list.