From: cametan
Subject: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <872dadbd-cc0f-4692-8ff4-f9356ca9ae4b@33g2000yqm.googlegroups.com>
Hello.

Finally I found that Clozure CL 1.3 is released and happily it looks
working on 32-bit Linux.
I got that from SVN and install into my Ubuntu 8.10.
It seems working fine by the command ccl/lx86cl.
And I tried to combine it with SLIME. Though it failed.
According to its manual, I got to do like this;

sudo cp ccl/scripts/ccl /usr/bin/

'cause Ubuntu doesn't have /usr/local/bin. Also, CL implementation
such as SBCL or GCL is there.
Now I have to set CCL_DEFAULT_DIRECTORY, but how??????

I found some openMCL's topic here, but script is changed a bit.
Now the script is like this.

-----------------------------------------------------------------------------------------------------------------------------------------------

#!/bin/sh
#
# Change the definition of CCL_DEFAULT_DIRECTORY below to refer to
# your OpenMCL installation directory.
# Any definition of CCL_DEFAULT_DIRECTORY already present in the
environment
# takes precedence over definitions made below.

probe()
{
    if [ -e "$1"  -a  -e "$1/scripts/ccl" ]; then
        CCL_DEFAULT_DIRECTORY="$1"
    fi
}

if [ -z "$CCL_DEFAULT_DIRECTORY"  -a  -n "`which readlink`" ]; then
    dir="`readlink $0`"
    probe "${dir%/scripts/ccl}"
fi

if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
    probe "/usr/local/src/ccl"
fi

if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
    echo "Can't find CCL directory.  Please edit $0 or"
    echo "set the environment variable CCL_DEFAULT_DIRECTORY"
    echo "and try again."
    exit 1
fi

export CCL_DEFAULT_DIRECTORY

# This is shorter (& easier to type), making the invocation below
# a little easier to read.

DD=${CCL_DEFAULT_DIRECTORY}

# If you don't want to guess the name of the OpenMCL kernel on
# every invocation (or if you want to use a kernel with a
# non-default name), you might want to uncomment and change
# the following line:
#OPENMCL_KERNEL=some_name

# Set the CCL_DEFAULT_DIRECTORY  environment variable;
# the lisp will use this to setup translations for the CCL: logical
host.

if [ -z "$OPENMCL_KERNEL" ]; then
  case `uname -s` in
    Darwin) case `arch` in
              ppc*) OPENMCL_KERNEL=dppccl ;;
              i386) OPENMCL_KERNEL=dx86cl ;;
            esac ;;
    Linux) case `uname -m` in
              ppc*) OPENMCL_KERNEL=ppccl ;;
              *86*) OPENMCL_KERNEL=lx86cl ;;
           esac ;;
    CYGWIN*)
       OPENMCL_KERNEL=wx86cl.exe
       CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
    ;;
    SunOS) OPENMCL_KERNEL=sx86cl
    ;;
    FreeBSD) OPENMCL_KERNEL=fx86cl
    ;;
    *)
    echo "Can't determine host OS.  Fix this."
    exit 1
    ;;
  esac
fi

exec ${DD}/${OPENMCL_KERNEL} ··@"

------------------------------------------------------------------------------------------------------------------------------------------------------

I tried to change some times; however it simply didn't work.
Is anybody here succeded Clozure works fine on Ubuntu Linux??

P.S.

The manual said that Clozure independently has its own IDE.
But also implies that something called COCOA is needed.
Is COCOA something for Mac stuff??? Can't Linux users simple handle
it?
Does anyone using Linux successfully build it? Or impossible?
There is no much information around CCL for Linux.

Thanks

cametan @ Japan

From: Patrick May
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <m2myceayl3.fsf@spe.com>
cametan <··············@gmail.com> writes:
> Finally I found that Clozure CL 1.3 is released and happily it looks
> working on 32-bit Linux.
> I got that from SVN and install into my Ubuntu 8.10.
> It seems working fine by the command ccl/lx86cl.
> And I tried to combine it with SLIME. Though it failed.
> According to its manual, I got to do like this;
>
> sudo cp ccl/scripts/ccl /usr/bin/
>
> 'cause Ubuntu doesn't have /usr/local/bin. Also, CL implementation
> such as SBCL or GCL is there.
> Now I have to set CCL_DEFAULT_DIRECTORY, but how??????

     I ran into this over the weekend as well.  I installed Clozure CL from the Subversion repository into /usr/local/ccl.  I copied the ccl shell script to /usr/local/bin and then replaced these lines:

> probe()
> {
>     if [ -e "$1"  -a  -e "$1/scripts/ccl" ]; then
>         CCL_DEFAULT_DIRECTORY="$1"
>     fi
> }
>
> if [ -z "$CCL_DEFAULT_DIRECTORY"  -a  -n "`which readlink`" ]; then
>     dir="`readlink $0`"
>     probe "${dir%/scripts/ccl}"
> fi
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
>     probe "/usr/local/src/ccl"
> fi
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
>     echo "Can't find CCL directory.  Please edit $0 or"
>     echo "set the environment variable CCL_DEFAULT_DIRECTORY"
>     echo "and try again."
>     exit 1
> fi
>
> export CCL_DEFAULT_DIRECTORY

with:

if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
  CCL_DEFAULT_DIRECTORY=/usr/local/ccl
fi

export CCL_DEFAULT_DIRECTORY

     It works for me under OSX.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc.  | Large scale, mission-critical, distributed OO
                       | systems design and implementation.
http://www.spe.com/pjm | (C++, Java, Common Lisp, Jini, middleware, SOA)
From: Joshua Taylor
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <4e643b70-9944-4d19-a120-bd2367849914@u18g2000vbb.googlegroups.com>
On Feb 22, 5:36 pm, Patrick May <····@spe.com> wrote:
>      I ran into this over the weekend as well.  I installed Clozure CL from the Subversion repository into /usr/local/ccl.  I copied the ccl shell script to /usr/local/bin and then replaced these lines:
>
> > probe()
> > {
> >     if [ -e "$1"  -a  -e "$1/scripts/ccl" ]; then
> >         CCL_DEFAULT_DIRECTORY="$1"
> >     fi
> > }
>
> > if [ -z "$CCL_DEFAULT_DIRECTORY"  -a  -n "`which readlink`" ]; then
> >     dir="`readlink $0`"
> >     probe "${dir%/scripts/ccl}"
> > fi
>
> > if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
> >     probe "/usr/local/src/ccl"
> > fi
>
> > if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
> >     echo "Can't find CCL directory.  Please edit $0 or"
> >     echo "set the environment variable CCL_DEFAULT_DIRECTORY"
> >     echo "and try again."
> >     exit 1
> > fi
>
> > export CCL_DEFAULT_DIRECTORY
>
> with:
>
> if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
>   CCL_DEFAULT_DIRECTORY=/usr/local/ccl
> fi
>
> export CCL_DEFAULT_DIRECTORY
>
>      It works for me under OSX.
>
> Regards,
>
> Patrick

I did a similar thing, but I replaced just "/usr/local/src/ccl" in :

if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
     probe "/usr/local/src/ccl"
 fi

with "/usr/local/ccl_1.3", since the rest of code is doing some
programmatic searching. This portion seemed to be the most hard-coded,
and the simplest place to change. The comments at the top of the file
state that if CCL_DEFAULT_DIRECTORY is already present, then it's
respected, and I also tried to preserve that behavior. I think that
the instruction to "Change the definition of CCL_DEFAULT_DIRECTORY
below to refer to your OpenMCL installation directory." should
probably be made more precise:

# Change the definition of CCL_DEFAULT_DIRECTORY below to refer to
# your OpenMCL installation directory.
# Any definition of CCL_DEFAULT_DIRECTORY already present in the
environment
# takes precedence over definitions made below.

//Joshua Taylor
······@cs.rpi.edu
From: Tobias C. Rittweiler
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <871vtpfls1.fsf@freebits.de>
Patrick May <···@spe.com> writes:

>      I ran into this over the weekend as well.  I installed Clozure CL
> from the Subversion repository into /usr/local/ccl.  I copied the ccl
> shell script to /usr/local/bin and then replaced these lines:

Why did you replace these lines? I mean, what error did you get?

The lines you replaced were recently added by a patch of mine. They
allow you to use a symlink instead of copying the script, i.e.

  /usr/local/bin/ccl -> /usr/src/ccl/scripts/ccl

Perhaps there's some sh incompability involved. I do not have OSX.

  -T.
From: Patrick May
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <m2iqn1b15m.fsf@spe.com>
"Tobias C. Rittweiler" <···@freebits.de.invalid> writes:
> Patrick May <···@spe.com> writes:
>
>>      I ran into this over the weekend as well.  I installed Clozure CL
>> from the Subversion repository into /usr/local/ccl.  I copied the ccl
>> shell script to /usr/local/bin and then replaced these lines:
>
> Why did you replace these lines? I mean, what error did you get?
>
> The lines you replaced were recently added by a patch of mine. They
> allow you to use a symlink instead of copying the script, i.e.
>
>   /usr/local/bin/ccl -> /usr/src/ccl/scripts/ccl
>
> Perhaps there's some sh incompability involved. I do not have OSX.

     If I remember correctly, I got the error "Can't find CCL directory.
Please edit /usr/local/bin/ccl or set the environment variable
CCL_DEFSAULT_DIRECTORY and try again."  I'll try it again later today
and see if I can make it work as delivered.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc.  | Large scale, mission-critical, distributed OO
                       | systems design and implementation.
http://www.spe.com/pjm | (C++, Java, Common Lisp, Jini, middleware, SOA)
From: Didier Verna
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <muxr61pxi2b.fsf@uzeb.lrde.epita.fr>
Patrick May <···@spe.com> wrote:

> If I remember correctly, I got the error "Can't find CCL directory. 
> Please edit /usr/local/bin/ccl or set the environment variable
> CCL_DEFSAULT_DIRECTORY and try again."
  
  You should take this environment variable with a grain of SAULT :-)

-- 
European Lisp Symposium, May 2009: http://www.european-lisp-symposium.org

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com

EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bic�tre, France
Tel. +33 (0)1 44 08 01 85       Fax. +33 (0)1 53 14 59 22
From: Alexander Lehmann
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <gnuli6$l1j$1@online.de>
Patrick May wrote:
>      If I remember correctly, I got the error "Can't find CCL directory.
> Please edit /usr/local/bin/ccl or set the environment variable
> CCL_DEFSAULT_DIRECTORY and try again."  I'll try it again later today
> and see if I can make it work as delivered.

The may be related to the fact that according to your prior post you've 
installed ccl to /usr/local/ccl instead of /usr/local/bin/ccl.
From: Patrick May
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <m2eixpaw7g.fsf@spe.com>
Alexander Lehmann <········@in.tum.de> writes:
> Patrick May wrote:
>>      If I remember correctly, I got the error "Can't find CCL directory.
>> Please edit /usr/local/bin/ccl or set the environment variable
>> CCL_DEFSAULT_DIRECTORY and try again."  I'll try it again later today
>> and see if I can make it work as delivered.
>
> The may be related to the fact that according to your prior post
> you've installed ccl to /usr/local/ccl instead of /usr/local/bin/ccl.

     I want Clozure CL in /usr/local/ccl and the script in
/usr/local/bin, which is in my path.  I'll double check shortly.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc.  | Large scale, mission-critical, distributed OO
                       | systems design and implementation.
http://www.spe.com/pjm | (C++, Java, Common Lisp, Jini, middleware, SOA)
From: Didier Verna
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <mux4oyle32c.fsf@uzeb.lrde.epita.fr>
"Tobias C. Rittweiler" <···@freebits.de.invalid> wrote:

> The lines you replaced were recently added by a patch of mine. They
> allow you to use a symlink instead of copying the script, i.e.
>
>   /usr/local/bin/ccl -> /usr/src/ccl/scripts/ccl
>
> Perhaps there's some sh incompability involved. I do not have OSX.

  Personally, I also linked the script as advertised above, but didn't
replace the lines in question: I simply added the following line:

CCL_DEFAULT_DIRECTORY=/usr/local/src/common-lisp/ccl

at the top of the script.

-- 
European Lisp Symposium, May 2009: http://www.european-lisp-symposium.org

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com

EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bic�tre, France
Tel. +33 (0)1 44 08 01 85       Fax. +33 (0)1 53 14 59 22
From: Tobias C. Rittweiler
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <87skm5e2m1.fsf@freebits.de>
Didier Verna <...> writes:

> "Tobias C. Rittweiler" <...> wrote:
>
>> The lines you replaced were recently added by a patch of mine. They
>> allow you to use a symlink instead of copying the script, i.e.
>>
>>   /usr/local/bin/ccl -> /usr/src/ccl/scripts/ccl
>>
>> Perhaps there's some sh incompability involved. I do not have OSX.
>
>   Personally, I also linked the script as advertised above, but didn't
> replace the lines in question: I simply added the following line:
>
> CCL_DEFAULT_DIRECTORY=/usr/local/src/common-lisp/ccl
>
> at the top of the script.

If you have the GNU readlink command installed, the symlink should be
enough. It resolves the symlink, and then uses that information to set
CCL_DEFAULT_DIRECTORY.

  -T.
From: Didier Verna
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <muxr61pcn49.fsf@uzeb.lrde.epita.fr>
"Tobias C. Rittweiler" <···@freebits.de.invalid> wrote:

> If you have the GNU readlink command installed, the symlink should be
> enough. It resolves the symlink, and then uses that information to set
> CCL_DEFAULT_DIRECTORY.

  Hmm, you are correct it seems. So maybe readlink is missing on my Mac
at home. I'll check that tonite.

-- 
European Lisp Symposium, May 2009: http://www.european-lisp-symposium.org

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com

EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bic�tre, France
Tel. +33 (0)1 44 08 01 85       Fax. +33 (0)1 53 14 59 22
From: Raffael Cavallaro
Subject: Re: Clozure CL 1.3 and SLIME
Date: 
Message-ID: <gnsnc6$vs9$1@aioe.org>
On 2009-02-22 16:12:20 -0500, cametan <··············@gmail.com> said:

> I tried to change some times; however it simply didn't work.
> Is anybody here succeded Clozure works fine on Ubuntu Linux??


I'm not on linux here, but try the ccl mailing list:

<http://clozure.com/mailman/listinfo/openmcl-devel>

> 
> P.S.
> 
> The manual said that Clozure independently has its own IDE.
> But also implies that something called COCOA is needed.
> Is COCOA something for Mac stuff???

Cocoa is a Mac OS X GUI framework and not available for linux (there's 
a workalike called gnustep, but it isn't nearly complete enough to work 
with ccl's ide.)

> Can't Linux users simple handle
> it?
> Does anyone using Linux successfully build it? Or impossible?
> There is no much information around CCL for Linux.

Again, try the openmcl-devel mailing list. There are developers and 
users there who will be better able to help you than here on c.l.l.



-- 
Raffael Cavallaro, Ph.D.