Were the packages installed successfully? What method did you used to install them? Take a look at this link http://alextgalileo.altervista.org/blog/installing-development-tools-onto-official-linux-image/ and make sure you have everything properly installed.
Unfortunately I didn't install the package successfully. I just copied them to the SD Card root directory. And SD Card is FAT32 format. Probably your link gonna be useful, thanks!