Problems installing Iliad

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems installing Iliad

areichow
I'm new to Iliad, but not to Smalltalk. Most of my Smalltalking has
been in Squeak, though. I'm aware of the Pharo port, but I wanted to
get it going in GNU Smalltalk. I'm following the instructions (
http://www.iliadproject.org/pages/Download/GNU-Smalltalk-version ) and
running GNU Smalltalk 3.2 (installed from source) on Debian 5.0.4
x86.

First I tried installing using gst-package:

    gst-package --download grease -t ~/.st
    gst-package --download iliad -t ~/.st

I get pages of exceptions- complaints that gst-package can't open
http://smalltalk.gnu.org/project/grease/package.xml and
http://smalltalk.gnu.org/project/grease/package.xml . I'm able to
access these files fine with wget and Firefox, which suggests
something other than a networking issue.

I also tried doing a git clone:

    git clone git://github.com/NicolasPetton/iliad-stable.git
    cd iliad-stable
    ./scripts/make_packages

The clone is fine, but scripts/make_packages fails on line 27, which
includes "sed -E -e" - GNU sed has no "-E" argument, and spits out the
usage text every time sed is called. I tried taking out the -E
argument, but I still get a lot of sed errors:

./Core/package.st
sed: -e expression #1, char 31: invalid reference \1 on 's' command's
RHS

...for all the .st files run through sed.

Ideas?

Regards,
Aaron
Reply | Threaded
Open this post in threaded view
|

Re: Problems installing Iliad

Paolo Bonzini-2
On 06/22/2010 08:08 PM, areichow wrote:

> I'm new to Iliad, but not to Smalltalk. Most of my Smalltalking has
> been in Squeak, though. I'm aware of the Pharo port, but I wanted to
> get it going in GNU Smalltalk. I'm following the instructions (
> http://www.iliadproject.org/pages/Download/GNU-Smalltalk-version ) and
> running GNU Smalltalk 3.2 (installed from source) on Debian 5.0.4
> x86.
>
> First I tried installing using gst-package:
>
>      gst-package --download grease -t ~/.st
>      gst-package --download iliad -t ~/.st
>
> I get pages of exceptions- complaints that gst-package can't open
> http://smalltalk.gnu.org/project/grease/package.xml and
> http://smalltalk.gnu.org/project/grease/package.xml

Please cut-and-paste these.

> The clone is fine, but scripts/make_packages fails on line 27, which
> includes "sed -E -e" - GNU sed has no "-E" argument, and spits out the
> usage text every time sed is called. I tried taking out the -E
> argument, but I still get a lot of sed errors:

Indeed, the solution is to rewrite the sed command to use basic regular
expressions.  As a stopgap measure, change "sed -E" to "sed -r" for
usage under GNU/Linux.

Paolo
Reply | Threaded
Open this post in threaded view
|

Re: Problems installing Iliad

areichow
As requested:

#
# START typescript for gst-package --download grease -t ~/.st
#

dbox:~/st# gst -v
GNU Smalltalk version 3.2
Copyright 2009 Free Software Foundation, Inc.
Written by Steve Byrne ([hidden email]) and Paolo Bonzini
([hidden email])

GNU Smalltalk comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Smalltalk under the terms of the
GNU General Public License.  For more information, see the file named
COPYING.

Using default kernel path: /usr/local/share/smalltalk/kernel
Using default image path: /usr/local/var/lib/smalltalk

dbox:~/st# gst-package --download grease -t ~/.st
Object: URL new "<0x402dd360>" error: could not open
http://smalltalk.gnu.org/project/grease/package.xml
SystemExceptions.FileError(Exception)>>pass (ExcHandling.st:385)
optimized [] in UndefinedObject>>executeStatements (/usr/local/share/
smalltalk/scripts/Package.st:1190)
SystemExceptions.FileError(Exception)>>activateHandler:
(ExcHandling.st:516)
SystemExceptions.FileError(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.FileError class(Exception class)>>signal:
(ExcHandling.st:161)
optimized [] in NetClients.URL>>entity (URL.st:803)
[] in NetClients.URIResolver class>>openOn:ifFail:
(NetClients.star#VFS.ZipFile/URIResolver.st:62)
SystemExceptions.WrongClass(Exception)>>activateHandler:
(ExcHandling.st:516)
SystemExceptions.WrongClass(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.WrongClass class>>signalOn:mustBe: (SysExcept.st:805)
SystemExceptions.WrongClass class>>signalOn:mustBe: (SysExcept.st:801)
String(Object)>>checkIndexableBounds:put: (Object.st:825)
String>>at:put: (String.st:329)
String class(ArrayedCollection class)>>with: (ArrayColl.st:86)
NetClients.HTTP.HTTPResponse>>parseResponse:
(NetClients.star#VFS.ZipFile/HTTP.st:519)
NetClients.HTTP.HTTPResponse class(NetClients.NetResponse
class)>>fromClient: (NetClients.star#VFS.ZipFile/Base.st:874)
NetClients.HTTP.HTTPProtocolInterpreter(NetClients.NetProtocolInterpreter)>>getResponse
(NetClients.star#VFS.ZipFile/Base.st:717)
NetClients.HTTP.HTTPProtocolInterpreter>>readResponseInto:
(NetClients.star#VFS.ZipFile/HTTP.st:201)
NetClients.HTTP.HTTPProtocolInterpreter>>get:requestHeaders:into:
(NetClients.star#VFS.ZipFile/HTTP.st:145)
NetClients.HTTP.HTTPClient>>get:requestHeaders:into:
(NetClients.star#VFS.ZipFile/HTTP.st:66)
[] in NetClients.URIResolver>>requestHttpContents:
(NetClients.star#VFS.ZipFile/URIResolver.st:511)
BlockClosure>>ensure: (BlkClosure.st:269)
[] in NetClients.URIResolver>>requestHttpContents:
(NetClients.star#VFS.ZipFile/URIResolver.st:494)
BlockClosure>>on:do:on:do:on:do: (BlkClosure.st:220)
[] in NetClients.URIResolver>>requestHttpContents:
(NetClients.star#VFS.ZipFile/URIResolver.st:523)
BlockClosure>>ensure: (BlkClosure.st:269)
NetClients.URIResolver>>requestHttpContents:
(NetClients.star#VFS.ZipFile/URIResolver.st:540)
NetClients.URIResolver>>getHttpContents (NetClients.star#VFS.ZipFile/
URIResolver.st:491)
NetClients.URIResolver>>contentsNoSignal (NetClients.star#VFS.ZipFile/
URIResolver.st:141)
[] in NetClients.URIResolver class>>openOn:ifFail:
(NetClients.star#VFS.ZipFile/URIResolver.st:58)
BlockClosure>>on:do:on:do: (BlkClosure.st:206)
NetClients.URIResolver class>>openOn:ifFail:
(NetClients.star#VFS.ZipFile/URIResolver.st:63)
NetClients.URL>>entity (URL.st:802)
PackageFiles>>addURL: (/usr/local/share/smalltalk/scripts/Package.st:
322)
PkgInstall(PackageCommand)>>addFile: (/usr/local/share/smalltalk/
scripts/Package.st:591)
optimized [] in PackageCommand>>runOnAll: (/usr/local/share/smalltalk/
scripts/Package.st:602)
OrderedCollection(SequenceableCollection)>>do: (SeqCollect.st:812)
PkgInstall(PackageCommand)>>runOnAll: (/usr/local/share/smalltalk/
scripts/Package.st:603)
[] in PkgInstall(Command)>>executeOnAll: (/usr/local/share/smalltalk/
scripts/Package.st:529)
BlockClosure>>on:do: (BlkClosure.st:193)
CurrentCommand class(DynamicVariable class)>>use:during: (SysExcept.st:
255)
PkgInstall(Command)>>executeOnAll: (/usr/local/share/smalltalk/scripts/
Package.st:523)
PkgDownload>>runOnAll: (/usr/local/share/smalltalk/scripts/Package.st:
559)
[] in PkgDownload(Command)>>executeOnAll: (/usr/local/share/smalltalk/
scripts/Package.st:529)
BlockClosure>>on:do: (BlkClosure.st:193)
CurrentCommand class(DynamicVariable class)>>use:during: (SysExcept.st:
255)
PkgDownload(Command)>>executeOnAll: (/usr/local/share/smalltalk/
scripts/Package.st:523)
PackageManager>>run (/usr/local/share/smalltalk/scripts/Package.st:
1177)
optimized [] in UndefinedObject>>executeStatements (/usr/local/share/
smalltalk/scripts/Package.st:1184)
BlockClosure>>on:do: (BlkClosure.st:193)
UndefinedObject>>executeStatements (/usr/local/share/smalltalk/scripts/
Package.st:1186)
gst-package: could not open http://smalltalk.gnu.org/project/grease/package.xml
dbox:~/st#

#
# END typescript for gst-package --download grease -t ~/.st
#


Replacing -E with -r in scripts/make_packages appears to work fine. No
new files other than make_packages.log, so I"m not sure what it should
be doing. cd scripts && ./start -p 888 doesn't work either,
complaining that package Iliad is not found. Haven't look into it more
deeply yet.

What distribution of sed uses "-E", BSD?

Regards,
Aaron


On Jun 22, 2:00 pm, Paolo Bonzini <[hidden email]> wrote:

> On 06/22/2010 08:08 PM, areichow wrote:
>
> > I'm new to Iliad, but not to Smalltalk. Most of my Smalltalking has
> > been in Squeak, though. I'm aware of the Pharo port, but I wanted to
> > get it going in GNU Smalltalk. I'm following the instructions (
> >http://www.iliadproject.org/pages/Download/GNU-Smalltalk-version) and
> > running GNU Smalltalk 3.2 (installed from source) on Debian 5.0.4
> > x86.
>
> > First I tried installing using gst-package:
>
> >      gst-package --download grease -t ~/.st
> >      gst-package --download iliad -t ~/.st
>
> > I get pages of exceptions- complaints that gst-package can't open
> >http://smalltalk.gnu.org/project/grease/package.xmland
> >http://smalltalk.gnu.org/project/grease/package.xml
>
> Please cut-and-paste these.
>
> > The clone is fine, but scripts/make_packages fails on line 27, which
> > includes "sed -E -e" - GNU sed has no "-E" argument, and spits out the
> > usage text every time sed is called. I tried taking out the -E
> > argument, but I still get a lot of sed errors:
>
> Indeed, the solution is to rewrite the sed command to use basic regular
> expressions.  As a stopgap measure, change "sed -E" to "sed -r" for
> usage under GNU/Linux.
>
> Paolo
Reply | Threaded
Open this post in threaded view
|

Re: Problems installing Iliad

Paolo Bonzini-2
On 06/22/2010 09:59 PM, areichow wrote:

> As requested:
>
> #
> # START typescript for gst-package --download grease -t ~/.st
> #
>
> dbox:~/st# gst -v
> GNU Smalltalk version 3.2
> Copyright 2009 Free Software Foundation, Inc.
> Written by Steve Byrne ([hidden email]) and Paolo Bonzini
> ([hidden email])
>
> GNU Smalltalk comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Smalltalk under the terms of the
> GNU General Public License.  For more information, see the file named
> COPYING.
>
> Using default kernel path: /usr/local/share/smalltalk/kernel
> Using default image path: /usr/local/var/lib/smalltalk
>
> dbox:~/st# gst-package --download grease -t ~/.st
> Object: URL new "<0x402dd360>" error: could not open
> http://smalltalk.gnu.org/project/grease/package.xml
> #
> # END typescript for gst-package --download grease -t ~/.st
> #

Thanks.  Can you try this:

curl -vL http://smalltalk.gnu.org/project/grease/package.xml 2>&1 >/dev/null

so that I can compare it with what I see here?

> Replacing -E with -r in scripts/make_packages appears to work fine. No
> new files other than make_packages.log, so I"m not sure what it should
> be doing. cd scripts&&  ./start -p 888 doesn't work either,
> complaining that package Iliad is not found. Haven't look into it more
> deeply yet.

This seems like a problem in the iliad distribution.  Can you show the
contents of your ~/.st directory?

> What distribution of sed uses "-E", BSD?

Yes (including Mac OS X).

Paolo
Reply | Threaded
Open this post in threaded view
|

Re: Problems installing Iliad

Nicolas Petton
In reply to this post by areichow
Hi areishow,

> Replacing -E with -r in scripts/make_packages appears to work fine. No
> new files other than make_packages.log, so I"m not sure what it should
> be doing. cd scripts && ./start -p 888 doesn't work either

The port 888 cannot be used under GNU/Linux if you're not root.

Can you try within the iliad directory?

./scripts/make_packages -f
./scripts/start -p 8888

Cheers,
Nico



signature.asc (205 bytes) Download Attachment