How to Resolve Haxe Issue

Written on December 25, 2014

This holiday I came across issue #153.

I did not need to rebuild the haxe installation to fix it, but it seems like the official Haxe x.38 package causes issues — especially in Lubuntu 15.04. Here’s my fix. Hopefully it’ll help others.

I installed Haxe via OpenFL script.

I’m interested in this script:


    echo “”
    echo “—————————————”
    echo ” Downloading Haxe $HAXE_VERSION (32-bit)”
    echo “—————————————”

    wget -c http://haxe.org/website-content/downloads/$HAXE_VERSION_COMMA/downloads/haxe-$HAXE_VERSION-linux32.tar.gz

    echo “”
    echo “—————————————”
    echo ” Installing Haxe $HAXE_VERSION”
    echo “—————————————”

    # Extract and copy files to /usr/lib/haxe

    sudo mkdir -p /usr/lib/haxe
    sudo rm -rf /usr/lib/haxe/haxe
    sudo tar xvzf haxe-$HAXE_VERSION-linux32.tar.gz -C /usr/lib/haxe –strip-components=1

    # Add symlinks

    sudo rm -rf /usr/bin/haxe
    sudo rm -rf /usr/bin/haxelib
    sudo rm -rf /usr/bin/haxedoc

    sudo ln -s /usr/lib/haxe/haxe /usr/bin/haxe
    sudo ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib

    # Set up haxelib

    sudo mkdir -p /usr/lib/haxe/lib
    sudo chmod -R 777 /usr/lib/haxe/lib
    sudo haxelib setup /usr/lib/haxe/lib

    # Cleanup

    rm haxe-$HAXE_VERSION-linux32.tar.gz

Look here at the top where the terms are defined.


    HAXE_VERSION=3.1.3
    HAXE_VERSION_COMMA=3,1,3
    NEKO_VERSION=2.0.0

We can note here that the Haxe version we’re installing is 3.1.3, collecting information from a index. You can follow the index using this as a way to make your own script (if the original script ever disappears). Cheers.


Take me home.

Check out the archive.