Search code examples
cocoacommon-lispccl

Fail to `(require "COCOA")` with Mac ports Clozure Common Lisp


I have installed the package ccl with Mac ports. Now I want to use the Cocoa bridge.

Welcome to Clozure Common Lisp Version 1.8  (DarwinX8664)!
? (require "COCOA")
> Error: Permission denied : #P"/opt/local/share/ccl/1.8/temp bundle64.app/Contents/252752233492590994.tem"
> While executing: %CREATE-FILE, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.

If I start ccl64 with sudo it works all right. But I would like to be able to do this as a normal user. How should I do it?


Solution

  • If you are on a Mac, the easiest way to run Clozure CL is to load it from Apple's Mac App Store.

    https://itunes.apple.com/de/app/clozure-cl/id489900618?mt=12

    That way it gets installed in the Applications folder and running the Cocoa-App is no problem, since it is provided. But then you would run the Cocoa-based IDE version of CCL.

    If you install CCL from MacPorts, I guess that the App is not existing. You would need to have the rights for the directory to create the necessary files.

    Otherwise I would just install a fresh CCL from Clozure's repository:

    http://ccl.clozure.com/download.html