1.2 Getting Started

The first thing you will need to do - if you haven’t done so already - is download your own Pharo Smalltalk system.

The easiest way to follow the examples from this book is to download the Pharo By Example One-Click App (this includes both the VM and the image with all source files, based on the Pharo 1.0 release).

When inspecting the files in the downloaded zip-file you will notice:

  • VM: the VM will be in the format of Pharo.exe (Windows), Pharo.app (Mac) or Pharo.sh (Linux). The VM is also accompanied by a few other files: e.g. Splash image, copyright etc
  • Sources: The sources file can be identified by its “.sources” file extension
  • Image: The Image is represented by the “.image” and “.changes” files (more about this in the next section).

A Smalltalk system is basically started by launching the VM with an Image. When the VM is started it will look for an Image in the same folder and if you have just downloaded Pharo from the Pharo By Example website the System just starts ad you will see something like this:

Pharo Image

If no Image or more than one Image is found, the VM will open a window to select the Image to start. Another way to start a Smalltalk system is to drag the “.image” file on the VM.

User Contributed Notes

mdmacgr (20 June 2012, 5:50 am)

In the Windows version the image and sources are hidden in contents/resources and you start the image by double clicking the Pharo-one-click.bat file. This leads to tricky problems if you then create your own image! The easiest way round this is not to create your own image! Just stick to the old image and if you ever need the original image just unzip the download again. It was a very bad decision to use a .bat file - just dropping the image file onto the engine is the simplest way forward for learners and developers, and you can use the same method across platforms.

mdmacgr (20 June 2012, 5:31 am)

The VM was just updated so the book image no longer works! Hardly safe... I'll use the latest development image - if that doesn't work I might as well use Java :)

Add a Note

Licensed under Creative Commons BY-NC-SA | Published using Pier |