want to upgrade from osx 10.5.8
Assuming the machine you have can run it (check the requirements), you will need to purchase a copy.
You can buy Snow Leopard here:
For details about upgrading this to Lion or Mountain Lion see:
In each case check that your Mac complies with the requirements.
If you are not in the US you should use the Change Country link at the bottom of the page.
Retrieving data ...