[Openmcl-devel] (require :cocoa) fails with ccl 1.2rc1 in write-protected directory

Rudi Schlatte rudi at constantly.at
Thu May 1 12:43:48 PDT 2008


Hi Gary,

Hmm, I'm quite sure that's not the explanation, but I nuked
com.clozure.Clozure\ CL.plist just in case.  From what I can see, the
call to ensure-directories-exist (frame 0 in the backtrace) is quite
determined to write into the ccl directory, so (require :cocoa) is
bound to fail when ccl is installed in a read-only directory.

~$ ccl64
Welcome to Clozure Common Lisp Version 1.2-r9226-RC1  (DarwinX8664)!
? (require :cocoa)
> Error: Can't create directory "/usr/local/lib/ccl/temp bundle.app/".
> While executing: ENSURE-DIRECTORIES-EXIST, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > (:b :count 5)
 (659FF8) : 0 (ENSURE-DIRECTORIES-EXIST #P"ccl:temp bundle.app;Contents;" [...]) 997
 (65A070) : 1 (RECURSIVE-COPY-DIRECTORY #P"ccl:cocoa-ide;ide-contents;" #P"ccl:temp bundle.app;Contents;" [...]) 837
 (65A0E8) : 2 (CREATE-IDE-BUNDLE "ccl:temp bundle.app;" [...]) 453
 (65A178) : 3 (CALL-CHECK-REGS 'CREATE-IDE-BUNDLE [...]) 229
 (65A1B0) : 4 (FUNCALL #'#<(:INTERNAL PROGN-IN-ENV CHEAP-EVAL-IN-ENVIRONMENT)> '(# # #) #<LEXICAL-ENVIRONMENT  #x300040E10A4D> #<LEXICAL-ENVIRONMENT  #x300040E2077D>) 229
1 > 

(I'm trying to get the cocoa mcclim backend to its former state of
"only crashes after displaying a window, not before", but I'm a
unix-head and like to install things under /usr/local ...)

Cheers,

Rudi

Gary Byers <gb at clozure.com> writes:
> See the small thread starting with:
>
> <http://clozure.com/pipermail/openmcl-devel/2008-April/008130.html>
>
> (It's picking up a stale "cclDirectory" preference from
> ~/Library/Preferences/com.clozure.Clozure\ CL.plist", and getting
> itself all confused.)
>
> On Thu, 1 May 2008, Rudi Schlatte wrote:
>
>> Greetings,
>>
>> I installed ccl under /usr/local/lib/ccl, with the appropriate shell
>> script in /usr/local/bin.  Unfortunately, ccl sometimes wants to
>> reside in a directory writable by the current user:
>>
>> ~$ ccl64
>> Welcome to Clozure Common Lisp Version 1.2-r9226-RC1  (DarwinX8664)!
>> ? (require :cocoa)
>>> Error: Can't create directory "/usr/local/lib/ccl/temp bundle.app/".
>>> While executing: ENSURE-DIRECTORIES-EXIST, in process listener(1).
>>> Type :POP to abort, :R for a list of available restarts.
>>> Type :? for other options.
>> 1 >
>>
>> I'll work around that for now by installing below my home directory,
>> adding to $PATH, etc., but I'd sure love to have something like a
>> ccl-tmp: logical host pointing to /tmp that would be used by
>> create-ide-bundle.  I'm also satisfied, of course, with the usual
>> one-line answer that points out how it'll all work if I don't do
>> $mistake.  :-)
>>
>> Cheers,
>>
>> Rudi
>>
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>>
>>




More information about the Openmcl-devel mailing list