Hi,
Personal Background (skip this if you are interested in the technical
question):
I'm new to Lisp and am very fascinating about the possibilities
the language offers you, but I also must admit, that I'm a bit
irritated whith missing standards (such as documented librarys etc.).
This shouldn't be underestimated when the question arises whether
lisp is being used alot or not. Or when the question arises whether
lisp is popular or not. It _is_ very difficult even for experienced
programmers to get into it, not speaking of beginners.
That's not so because the principles of the language are so
hard to learn (at least for me), but because of the lacking
standards.
That being said ;) here is my concern:
Question:
I run clisp 2.38 on Ubuntu 4.0.3 and want to use portable allegro.
After downloading portable allegro from sourceforge.net and running
clisp as root from the same directory where INSTALL.lisp is, I tried
to load INSTALL.lisp:
(load "INSTALL.lisp")
It seems that all the required files are correctly loaded. But when
it comes to compiling the first error I get is:
Compiling file /usr/share/common-lisp/source/aserve/main.cl ...
*** - READ von #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/usr/share/
common-lisp/source/aserve/main.cl" @1522>: In
#<PACKAGE SOCKET>
there doesn't exist an extern symbol with the name "IPADDR-TO-
DOTTED"
In the cookbook-section about sockets
http://cl-cookbook.sourceforge.net/sockets.html
I tried out
(resolve-host-ipaddr "www.lisp.org") and (resolve-host-ipaddr
"128.18.65.4")
which happened to run well, but again when I tried
(dotted-to-ipaddr "128.18.65.4") or (ipaddr-to-dotted 2148679940) from
the cookbook
I get the same error, telling me that both functions are not defined.
Am I missing something, or does anybody know how to solve this
problem?
1. Do I have to write those functions myself?
2. If so, is there any specification to what the input values and
output values of 'ipadr' are?
3. Still if so: In which file should I write those functions?
I hope not to bother anyone with those questions, but I found it very
frustrating to searched 2 whole days (and a big part of nights) about
how to install portable aserve with cl and not to solve the problem.
Any comment is appreciated.
Thanks for reading this post.
From: Ken Tilton
Subject: Re: Install portable allegroserve under clisp (Missing IPADDR-TO-DOTTED )
Date:
Message-ID: <47C864C3.3040407@optonline.net>
[to list and direct]
fjalor wrote:
> Hi,
>
> Personal Background (skip this if you are interested in the technical
> question):
> I'm new to Lisp and am very fascinating about the possibilities
> the language offers you, but I also must admit, that I'm a bit
> irritated whith missing standards (such as documented librarys etc.).
> This shouldn't be underestimated when the question arises whether
> lisp is being used alot or not. Or when the question arises whether
> lisp is popular or not. It _is_ very difficult even for experienced
> programmers to get into it, not speaking of beginners.
> That's not so because the principles of the language are so
> hard to learn (at least for me), but because of the lacking
> standards.
> That being said ;) here is my concern:
>
> Question:
> I run clisp 2.38 on Ubuntu 4.0.3 and want to use portable allegro.
> After downloading portable allegro from sourceforge.net and running
> clisp as root from the same directory where INSTALL.lisp is, I tried
> to load INSTALL.lisp:
>
> (load "INSTALL.lisp")
>
> It seems that all the required files are correctly loaded. But when
> it comes to compiling the first error I get is:
>
> Compiling file /usr/share/common-lisp/source/aserve/main.cl ...
> *** - READ von #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/usr/share/
> common-lisp/source/aserve/main.cl" @1522>: In
> #<PACKAGE SOCKET>
> there doesn't exist an extern symbol with the name "IPADDR-TO-
> DOTTED"
I do not know anything about Portable Aserve (except that I hear more
about Hunchentoot these days) but it might just be a package problem. In
situations like this, step #1 for me is to see if the symbol is out
there at all:
(apropos "IPADDR-TO-DOTTED")
Assuming it is, note in which package it is defined. Perhaps (I am
totally just guessing) you then just need to:
(in-package :wherever-it-is)
And then:
(load "install.lisp")
btw, if you at least get past the first error, there may be a read-me
out there somewhere with installation instructions you missed.
Sorry for all the guesswork.
kenny
>
> In the cookbook-section about sockets
>
> http://cl-cookbook.sourceforge.net/sockets.html
>
> I tried out
> (resolve-host-ipaddr "www.lisp.org") and (resolve-host-ipaddr
> "128.18.65.4")
> which happened to run well, but again when I tried
>
> (dotted-to-ipaddr "128.18.65.4") or (ipaddr-to-dotted 2148679940) from
> the cookbook
>
> I get the same error, telling me that both functions are not defined.
>
> Am I missing something, or does anybody know how to solve this
> problem?
>
> 1. Do I have to write those functions myself?
> 2. If so, is there any specification to what the input values and
> output values of 'ipadr' are?
> 3. Still if so: In which file should I write those functions?
>
> I hope not to bother anyone with those questions, but I found it very
> frustrating to searched 2 whole days (and a big part of nights) about
> how to install portable aserve with cl and not to solve the problem.
>
>
> Any comment is appreciated.
>
> Thanks for reading this post.
--
http://smuglispweeny.blogspot.com/
http://www.theoryyalgebra.com/
"In the morning, hear the Way;
in the evening, die content!"
-- Confucius
Thank you for your answer.
I was always asking myself why things like
(help "function-name") or (? "function-name")
didn't work. Now that I know about 'apropos',
I have aproposed all the functions I know so
far, just for curiosity :)
Unfortunately
(apropos "ipaddr-to-dotted")
yields a blank line, which I interpret as ippadr not being anywhere.
Fortunately i found that clocc (http://clocc.sourceforge.net/) has
one version of ipaddr and downloaded it.
I will report later, if there is any progress.
Thx
fjalor <······@web.de> writes:
> Thank you for your answer.
>
> I was always asking myself why things like
> (help "function-name") or (? "function-name")
> didn't work. Now that I know about 'apropos',
But Lisp does have (describe 'something) and (documentation 'something
'function)!
> I have aproposed all the functions I know so
> far, just for curiosity :)
>
> Unfortunately
>
> (apropos "ipaddr-to-dotted")
>
> yields a blank line, which I interpret as ippadr not being anywhere.
>
> Fortunately i found that clocc (http://clocc.sourceforge.net/) has
> one version of ipaddr and downloaded it.
Well, if you haven't yet get used to a particular implementation
(and it sounds like you just beginning your Lisp journey), I strongly,
*strongly* suggest you to use SBCL[1], an excellent, actively developed
compiled-to-native-code lisp with threads support, and Hunchentoot[2],
an stable, high-quality, actively supported web-server.
PortableAllegroServe is not supported very well (read: the project is
dead, no activity since 2004-02-29 according to their sourceforge
page), and using any web-server with an implementation that doesn't
support multiple threads (e.g. clisp) is *hard*.
Hunchentoot is very well supported, arguably much easier to use and
you'll find much more people here on the list using this combination
(since you're using Ubuntu, SBCL even comes prepackaged).
There is a number of good quality libraries for lisp. Ediware[3] is
quite popular. clbuild[4] is an excellent project which makes
installing and updating packages on linux a trivial tasks; you should
definetely check it out.
[1] http://sbcl.sourceforge.net/
[2] http://www.weitz.de/hunchentoot/
[3] http://www.weitz.de/
[4] http://common-lisp.net/project/clbuild/
Regards,
Victor
PS. I've never heard of Ubuntu *4.0.3* - what is it?
--
My blog: http://macrodefinition.blogspot.com
On Fri, 29 Feb 2008 10:34:49 -0800, fjalor wrote:
> Question:
> I run clisp 2.38 on Ubuntu 4.0.3 and want to use portable allegro.
> After downloading portable allegro from sourceforge.net and running
> clisp as root from the same directory where INSTALL.lisp is, I tried
> to load INSTALL.lisp:
>
> (load "INSTALL.lisp")
>
> It seems that all the required files are correctly loaded. But when
> it comes to compiling the first error I get is:
>
> Compiling file /usr/share/common-lisp/source/aserve/main.cl ...
> *** - READ von #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/usr/share/
> common-lisp/source/aserve/main.cl" @1522>: In
> #<PACKAGE SOCKET>
> there doesn't exist an extern symbol with the name "IPADDR-TO-
> DOTTED"
>
>
> Any comment is appreciated.
>
I got it to work recently by editing the log.cl file in the
portableaserve/aserve directory. Replace any occurrences of
socket:ipaddr-to-dotted with acl-compat.socket:ipaddr-to-dotted
I think there was only one of these.
Hope that helps.
David Trudgett
First: Thank you both for your answers.
@David: I tried out what you said and the error doesn't occur any
more... just to make it possible for the next error to show up... :(
When I was at sourceforge, I had the feeling that Portable Aserve (=:
p.a) wasn't supported very well... Now I know what this can mean.
Since I am new to Lisp, I think, that I'm going to try the things
Victor suggested.
About my Ubuntu version: I have 6.06 dapper. That I have written 4.03
just shows how long I was in front of my laptop without any rest
trying to make p.a run ....