Entering the haXe World.
In this chapter you will discover haXe's world and enter it. You'll install haXe and write your first program.
This is our first chapter and you will soon be taking your first steps with haXe. However, before you get into action, let's introduce you to haXe and set up your working environment.
In this chapter, you will:
Seems like a long list? Don't be afraid, you will make it!
Enough talking, let's install haXe! You will see how easy it is.
You should know that there are two ways to install haXe, which are as follows:
One important thing to note is that haXe can be installed on on Windows, Linux, and MacOSX. This way, you don't have to worry about your operating system and can continue working in your environment.
Installing haXe on Windows is pretty easy, but there are some caveats that we should avoid.
So, carry out the following steps:
Note that if you're working on Windows Vista or Windows 7, you will need to run the executable as Administrator. You can do so by right-clicking on the installer while holding the Shift key down and then clicking on Run as Administrator.
Installing haXe on MacOSX is very straightforward. Carry out the following steps:
That's it! You have haXe installed on MacOSX!
Some distributions have haXe in their repositories, so you may install it from your distribution's repository if it's available.
Alternatively, you can use the Linux Installer to install haXe; it does work on many distributions. Carry out the following steps to install haXe on Linux:
tar -zxf hxinst-linux.tgz
command. chmod +x hxinst-linux
command. sudo -s
command or the su-
command, and then running ./hxinst-linux
.If you need features that are not in the latest release, you can use the nightly builds to easily have access to binaries of what is in the repository without the need of compiling it on your own.
You will be able to find them on the haXe website's Download page for your operating system.
Note that the nightly builds do not come with an installer and therefore, you are advised to first install using the installer, so that it sets up all environment variables and then replaces installed files by the ones from the nightly builds archive.
On MacOSX and Linux machines, you should find them in /usr/lib/haxe
, while on Windows, they should be in c:haxe
.
3.15.18.198