[squeak-dev] How to switch vm's

Levente Uzonyi leves at elte.hu
Sat Apr 24 18:27:37 UTC 2010


On Sat, 24 Apr 2010, Chris Muller wrote:

> I need to go back to the 3.10-4 vm to do some profiling.  I have two
> VM's installed on my Ubuntu server linux box; 3.10-4 and the new
> 4.0.3-2202.

3.10-4 will give you different results than the closure vms.

>
> Before, I used to just have a soft-link named /usr/local/bin/squeak
> pointing to /usr/local/lib/squeak/3.10-4/squeak, and that is how I
> would switch VM's; by repointing the soft link.
>
> However, the new vm creates a binary file named /usr/local/bin/squeak
> which, performs some Linux magic of which I am not familiar.

That's a shell script, not a binary. The binary is squeakvm.

>
> To attempt to switch back to the old vm, I renamed
> /usr/local/bin/squeak to /usr/local/bin/squeak.renamed and
> /usr/local/bin/squeak.sh to /usr/local/bin/squeak.sh.renamed.
>
> BTW, what is squeak.sh?

It's a script for starting squeak from GUI's:
"Launch squeak from a menu, prompting for and/or installing an image"

>
> I then created a softlink to the old executable:
>
>  ln -s ../lib/squeak/3.10-4/squeak squeak
>
> Unfortunately, when trying to launch the vm:
>
>  squeak -version
>
> I get:
>
>  SQUEAK_ENCODING='UTF8'
>  SQUEAK_PATHENC='UTF8'
>  +exec: 1: : Permission denied

That looks like the output of the shell script of recent vms.

>
> I really need to switch VM's (temporarily).  Any assistance is greatly
> appreciated.

Why don't you use absolute path?
/usr/local/lib/squeak/3.10-4/squeak -your-options your.image


Levente

>
> - Chris
>
>



More information about the Squeak-dev mailing list