Prev | Current Page 50 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

To do this, enter the
following lines at the command prompt:
> sudo mkdir /usr/local/haxe
> sudo mkdir /usr/local/haxe/bin
> sudo cp haxe/bin/* /usr/local/haxe/bin
> sudo cp -r haxe/std /usr/local/haxe
Here, the first two lines create some new directories in a standard location; the command sudo ensures
that it is done using the root user credentials. Next, the newly compiled haXe files are copied to the new
directories. Now, continue by entering these lines:
> sudo ln -s /usr/local/haxe/bin/haxe /usr/local/bin/haxe
> sudo grep ???HAXE_LIBRARY_PATH??? /etc/environment || echo ???export
HAXE_LIBRARY_PATH=/usr/local/haxe/std:.??? > > /etc/environment
In the first of the two lines, a mapping was created for the haXe executable in the /usr/local/bin
directory and the second line set an environment variable so that the haXe executable can be accessed
from anywhere on your PC.
Having successfully achieved these instructions, you should now be able to start creating your very own
haXe applications, though you might want to install Neko before you get your hands dirty.


Pages:
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62