[racket] Does anyone know how to use launcher/launcher?

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Tue Jun 14 15:51:30 EDT 2011

I've been trying to use the launcher/launcher library:

    http://docs.racket-lang.org/raco/exe.html#(mod-path._launcher/launcher)

in order to make nice, executable links.  However, I'm running into
some difficulty.


I have a program in the current directory:

$ cat hello.rkt
#lang racket/base
(printf "this is sayonara\n")



When I try using the library in Racket 5.1.1, I'm seeing the following error:

######################################################################
fermi ~/work/whalesong $ racket
Welcome to Racket v5.1.1.
> (require launcher/launcher)
> (make-racket-launcher (list "hello.rkt") "hi")
with-output-to-file: cannot open output file:
"/home/dyoo/work/whalesong/hi" (Permission denied; errno=13)

 === context ===
/research/plt/software/racket/5.1.1/std/collects/racket/private/misc.rkt:85:7
######################################################################



I can see that an empty file has been constructed:

####################################
fermi ~/work/whalesong $ ls -l hi
-r-xr-xr-x 1 dyoo nogroup 0 Jun 14 15:49 hi*
####################################


At the very least, the executable bit is set.  I'm about to start
looking through the source to launcher/launcher to figure out what's
going on, but want to double check: am I misusing the library?


Posted on the users mailing list.