gst-load prob -- more info

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

gst-load prob -- more info

dukester
dnormandin@ ~/programming/smalltalk/gst
10:15 am >> gst-load Blox

Object: File error: Permission denied
SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
SystemExceptions.FileError class(Exception class)>>signal:
(AnsiExcept.st:79)
File class>>checkError: (File.st:85)
File class>>checkError (File.st:74)
ObjectMemory class>>primSnapshot: (ObjMemory.st:311)
ObjectMemory class>>snapshot (ObjMemory.st:318)
optimized [] in UndefinedObject>>executeStatements
(/opt/local/share/smalltalk/scripts/Load.st:153)
False>>ifTrue:ifFalse: (False.st:51)
UndefinedObject>>executeStatements (/opt/local/share/smalltalk/scripts/Load.st:152)

I changed the perms on gst.im to u+x. Didn't help obviously. What
should th eperms be for an image file?
--
duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

Paolo Bonzini-2
On 01/12/2010 06:20 PM, Duke Normandin wrote:

> dnormandin@ ~/programming/smalltalk/gst
> 10:15 am>>  gst-load Blox
>
> Object: File error: Permission denied
> SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
> SystemExceptions.FileError class(Exception class)>>signal:
> (AnsiExcept.st:79)
> File class>>checkError: (File.st:85)
> File class>>checkError (File.st:74)
> ObjectMemory class>>primSnapshot: (ObjMemory.st:311)
> ObjectMemory class>>snapshot (ObjMemory.st:318)
> optimized [] in UndefinedObject>>executeStatements
> (/opt/local/share/smalltalk/scripts/Load.st:153)
> False>>ifTrue:ifFalse: (False.st:51)
> UndefinedObject>>executeStatements (/opt/local/share/smalltalk/scripts/Load.st:152)
>
> I changed the perms on gst.im to u+x. Didn't help obviously. What
> should th eperms be for an image file?

Aha, gotcha.  This should be documented (or fixed...).

You cannot do gst-load on the system image because it's not writeable by
you.  You need to create one with:

    gst -i

or for example

    gst -I ~/test/gst.im -i

and then

    gst-load Whatever

For this reason, "gst-browser" actually loads the browser but does not
save the image---the saving occurs from the File/Save menu item, which
will pop up a dialog if the image is not writeable.

After you have an image, you can start it with -I or you can make it
executable and just execute it.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

dukester
On Tue, 12 Jan 2010, Paolo Bonzini wrote:

[snip]

> Aha, gotcha.  This should be documented (or fixed...).
>
> You cannot do gst-load on the system image because it's not writeable by
> you.  You need to create one with:
>
>    gst -i
>
> or for example
>
>    gst -I ~/test/gst.im -i

OK... so I did a:

gst -I test_image.im -i

dnormandin@ ~/programming/smalltalk/gst
11:56 am >> ls -l test_image.im
-rw-r--r--  1 dnormandin  dnormandin  1696856 12 Jan 11:47 test_image.im

now I do whatever in gst....
How do I save the image when I exit?

> and then
>
>    gst-load Whatever

dnormandin@ ~/programming/smalltalk/gst
11:57 am >> gst-load Blox
Object: File error: Permission denied
SystemExceptions.FileError(Exception)>>signal (AnsiExcept.st:216)
SystemExceptions.FileError class(Exception class)>>signal:
(AnsiExcept.st:79)
File class>>checkError: (File.st:85)
File class>>checkError (File.st:74)
ObjectMemory class>>primSnapshot: (ObjMemory.st:311)
ObjectMemory class>>snapshot (ObjMemory.st:318)
optimized [] in UndefinedObject>>executeStatements
(/opt/local/share/smalltalk/scripts/Load.st:153)
False>>ifTrue:ifFalse: (False.st:51)
UndefinedObject>>executeStatements (/opt/local/share/smalltalk/scripts/Load.st:152)

> For this reason, "gst-browser" actually loads the browser but does not save
> the image---the saving occurs from the File/Save menu item, which will pop
> up a dialog if the image is not writeable.

dnormandin@ ~/programming/smalltalk/gst
11:58 am >> gst-browser
-bash: gst-browser: command not found

????

> After you have an image, you can start it with -I or you can make it
> executable and just execute it.

OK
--
duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

Paolo Bonzini-2

> dnormandin@ ~/programming/smalltalk/gst
> 11:56 am>>  ls -l test_image.im
> -rw-r--r--  1 dnormandin  dnormandin  1696856 12 Jan 11:47 test_image.im
>
> now I do whatever in gst....
> How do I save the image when I exit?

ObjectMemory snapshot (or, the browser will just prompt you)

> dnormandin@ ~/programming/smalltalk/gst
> 11:58 am>>  gst-browser
> -bash: gst-browser: command not found

How did you build gst in the end?  Can you do

$ which gst
$ ls `which gst`-*

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

dukester
On Wed, 13 Jan 2010, Paolo Bonzini wrote:

>
> > dnormandin@ ~/programming/smalltalk/gst
> > 11:56 am>>  ls -l test_image.im
> > -rw-r--r--  1 dnormandin  dnormandin  1696856 12 Jan 11:47 test_image.im
> >
> > now I do whatever in gst....
> > How do I save the image when I exit?
>
> ObjectMemory snapshot (or, the browser will just prompt you)
>
> > dnormandin@ ~/programming/smalltalk/gst
> > 11:58 am>>  gst-browser
> > -bash: gst-browser: command not found
>
> How did you build gst in the end?  Can you do
>
> $ which gst
> $ ls `which gst`-*
>
> Paolo
>

dnormandin@ ~
06:17 am >> which gst
/opt/local/bin/gst

dnormandin@ ~
07:29 am >> ls `which gst`-*

[output reformatted by moi]
/opt/local/bin/gst-blox
/opt/local/bin/gst-config
/opt/local/bin/gst-convert
/opt/local/bin/gst-doc
/opt/local/bin/gst-feedback
/opt/local/bin/gst-feedback-0.10
/opt/local/bin/gst-inspect
/opt/local/bin/gst-inspect-0.10
/opt/local/bin/gst-launch
/opt/local/bin/gst-launch-0.10
/opt/local/bin/gst-load
/opt/local/bin/gst-package
/opt/local/bin/gst-reload
/opt/local/bin/gst-remote
/opt/local/bin/gst-sunit
/opt/local/bin/gst-typefind
/opt/local/bin/gst-typefind-0.10
/opt/local/bin/gst-xmlinspect
/opt/local/bin/gst-xmlinspect-0.10
/opt/local/bin/gst-xmllaunch
/opt/local/bin/gst-xmllaunch-0.10

BTW, is the current version of GST known (for sure) to work on OS X
Leopard?

I appreciated all your effort Paulo!
--
Duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

Paolo Bonzini-2
On 01/13/2010 05:14 PM, Duke Normandin wrote:
> dnormandin@ ~
> 06:17 am>>  which gst
> /opt/local/bin/gst

gst --version

?

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

dukester
On Wed, 13 Jan 2010, Paolo Bonzini wrote:

> On 01/13/2010 05:14 PM, Duke Normandin wrote:
> > dnormandin@ ~
> > 06:17 am>>  which gst
> > /opt/local/bin/gst
>
> gst --version
>
> ?

dnormandin@ ~
09:14 am >> gst --version
GNU Smalltalk version 3.1
Copyright 2006 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: /opt/local/share/smalltalk/kernel
Using default image path: /opt/local/var/lib/smalltalk
--
duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

Paolo Bonzini-2

> dnormandin@ ~
> 09:14 am>>  gst --version
> GNU Smalltalk version 3.1

Ah, so you're back using MacPorts, not compiling from source---yet stdin
now works for you?

3.1 didn't have VisualGST.  You can start the old "blox" browser with
gst-blox.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

dukester
On Wed, 13 Jan 2010, Paolo Bonzini wrote:

>
> > dnormandin@ ~
> > 09:14 am>>  gst --version
> > GNU Smalltalk version 3.1
>
> Ah, so you're back using MacPorts, not compiling from source---yet stdin now
> works for you?

Yes "stdin" works now! After I upgraded the "build" tools, I
re-installed GST from MacPorts. I thought that I had fixed *all* the
problems in so doing. Not! That's why I have yet to compile GST from
source.

> 3.1 didn't have VisualGST.  You can start the old "blox" browser with
> gst-blox.

Didn't help. Same symptoms as I reported yesterday.

So now I'm trying to compile from source. Seems to get hung up here:

mkdir /Users/dnormandin/tmp/gstar-L91w64
mkdir /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser
ln -s -f
/Users/dnormandin/smalltalk/packages/blox/browser/BrowShell.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/BrowShell.st
ln -s -f
/Users/dnormandin/smalltalk/packages/blox/browser/Inspector.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Inspector.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Notifier.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Notifier.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/View.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/View.st
ln -s -f
/Users/dnormandin/smalltalk/packages/blox/browser/BrowserMain.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/BrowserMain.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Load.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Load.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/PCode.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/PCode.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/bear.gif
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/bear.gif
ln -s -f
/Users/dnormandin/smalltalk/packages/blox/browser/ClassBrow.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/ClassBrow.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Manager.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Manager.st
ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/PList.st
/Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/PList.st

Is the build process at this point, very time-consuming? Or am I
observing another hung build process?
--
duke


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst-load prob -- more info

Paolo Bonzini-2
On 01/13/2010 08:21 PM, Duke Normandin wrote:
>> >  3.1 didn't have VisualGST.  You can start the old "blox" browser with
>> >  gst-blox.
> Didn't help. Same symptoms as I reported yesterday.

No, not exactly (I bet).

> So now I'm trying to compile from source. Seems to get hung up here:
>
> mkdir /Users/dnormandin/tmp/gstar-L91w64
> mkdir /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser
> ln -s -f
> /Users/dnormandin/smalltalk/packages/blox/browser/BrowShell.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/BrowShell.st
> ln -s -f
> /Users/dnormandin/smalltalk/packages/blox/browser/Inspector.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Inspector.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Notifier.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Notifier.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/View.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/View.st
> ln -s -f
> /Users/dnormandin/smalltalk/packages/blox/browser/BrowserMain.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/BrowserMain.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Load.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Load.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/PCode.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/PCode.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/bear.gif
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/bear.gif
> ln -s -f
> /Users/dnormandin/smalltalk/packages/blox/browser/ClassBrow.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/ClassBrow.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/Manager.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/Manager.st
> ln -s -f /Users/dnormandin/smalltalk/packages/blox/browser/PList.st
> /Users/dnormandin/tmp/gstar-L91w64/BLOXBrowser/PList.st
>
> Is the build process at this point, very time-consuming? Or am I
> observing another hung build process?

Hung.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk