Android Studio: hax kernel module is not installed

I faced a strange problem with installing HAX kernel module on Windows 7.

How to Install

  • Check if you have HAX downloaded. Do it by going to SDK manager and under extra, look for Intel x86 Emulator. Check it, if it was unchecked.
  • Now, look for SDK path in the SDK Manager window, top left.
  • I was unable to navigate to the SDK path on Windows explorer. The folder AppData was not visible at all!
  • So, the solution was to navigate to the same path with “cmd”. Just find out the executable and run it.
  • More help at StackOverflow link

Handbrake: Installation on Ubuntu 14.04 64-bit

  • Get sources link
  • apt-get update
  • sudo apt-get install bzr subversion yasm build-essential autoconf libtool zlib1g-dev libbz2-dev libfribidi-dev intltool libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev libgudev-1.0-dev libwebkit-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
  • sudo apt-get install libass-dev libtheora-dev
  • sudo apt-get install libvorbis*
  • sudo apt-get install samplerate*
  • bunzip sources
  • go to ./build
  • make
  • make install

Fixing Broken YUM on Cent OS 5.9

CentOS 5.9 comes with Python 2.4.3 installed. I installed a different Python version (2.7) and all hell broke loose. Yum stopped working with errors like a particular Python module was missing.

I searched for fixing this problem on various forums and found no useful help. Finally, I could fix it with following actions:

Delete conflicting Python

  • Search other Python distributions on your machine. Run $whereis python and delete all directories that point to any Python version but 2.4.
  • Delete contents of /usr/lib/python2.4/site-packages/yum/ by running $rm -rf /usr/lib/python2.4/site-packages/yum/*
  • Delete contents of /usr/lib/python2.4/site-packages/rpmUtils/*
  • You will start seeing errors as No module named yum now.

Install YUM

  • Figure out what yum version does your machine expects. $rpm -q yum.
  • On my machine, output was: yum-3.2.22-40.el5.centos
  • Unzip and build it.
  • $make
    • You might see following error:
      for d in rpmUtils yum etc docs po; do make PYTHON=python -C $d; [ $? = 0 ] || exit 1 ; done
      intltool-update –gettext-package=yum –pot
      make[1]: intltool-update: Command not found
      make[1]: *** [yum.pot] Error 127
      make[1]: Leaving directory `/root/work/packages/yum-3.2.22/po’
      make: *** [subdirs] Error 1
    • I fixed the above error by changing the yum-3.2.22/Makefile and removing dependency “po” in the first line. It is harmless. If you start installing the intltool rpm, it ends up in many dependencies. It looked futile to me.
    • Try make again. It will work now.
  • Now, do make install
  • This will copy yum related modules in your Python site-packages.

Install YUM dependencies

  • Now, visit this link
  • Look at CentOS 5.9 section and copy all lines for RPM installation in a file.
  • Add –force to each rpm installation request as follows:

$~/work/packages/yum-3.2.22# rpm -Uvh –force

  • yum should work now

Pylucene: Installation on Ubuntu

If you want to install pylucene automatically, try Synaptic package manager or apt-get. This installation gives you Pylucene2.3. This is old. If you wish to get the latest pylucene 3.6 or higher, please look for manual installation discussed in this post.

Automatic installation (pylucene 2.3)

  • Install everything mentioned here
  • sudo apt-get install pylucene
  • sudo apt-get install python-dev
  • I borrowed a test program from here. The immediate error you would see if you try to run a pylucene based program is:
kanaujia@ubuntu:~/work/Py$ python 
Traceback (most recent call last):
  File "", line 11, in 
    import lucene
  File "/usr/lib/python2.7/dist-packages/lucene/", line 2, in 
    import os, _lucene
ImportError: cannot open shared object file: No such file or directory
  • Run following:
    $ ldconfig -p | grep libjvm

    If you find nothing, see the next point.

  • Make sure you have Java JDK/ JRE available on your machine.
    root@ubuntu:~# find / -type f -name 
  • Export the path to your library.
    root@ubuntu:~/work/Py$ export LD_LIBRARY_PATH=
  • And, you are done 🙂
    root@ubuntu:~/work/Py$ python
    Usage: <field_name> <index_url>

Installing Pylucene 3.0 or higher version manually

  1. Install everything mentioned here
  2. wget -O - | python
  3. sudo apt-get install python-dev
  4. Get the package from
  5. Find out the JVM path on your machine
  6. $ sudo update-java-alternatives -l
    java-1.6.0-openjdk-i386 1061 /usr/lib/jvm/java-1.6.0-openjdk-i386
  7. Now goto your pylucene package, unzip and untar.

Note: I am following instructions at:

  • cd ./pylucene-3.6.1-2/
  • pushd jcc
  • <edit to match your environment>

Open, and search for “JDK”. Update the JDK path to what you found in step 3.

  • 51 JDK = {
     52     'darwin': JAVAHOME,
     53     'ipod': '/usr/include/gcc',
     54     #'linux2': '/usr/lib/jvm/java-6-openjdk',
     55     'linux2': '/usr/lib/jvm/java-1.6.0-openjdk-i386',
     56     'sunos5': '/usr/jdk/instances/jdk1.6.0',
     57     'win32': JAVAHOME,
     58     'mingw32': JAVAHOME,
     59     'freebsd7': '/usr/local/diablo-jdk1.6.0'
     60 }
    • python build
    • sudo python install
    • popd
    • <edit Makefile to match your environment>
    $ vi Makefile

    Uncomment following:

     48 # Mac OS X 10.6 (64-bit Python 2.6, Java 1.6)
     49 PREFIX_PYTHON=/usr
     50 ANT=ant
     51 PYTHON=$(PREFIX_PYTHON)/bin/python
     52 JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64
     53 NUM_FILES=4
    • make

    This ‘make’ is very very slow. On my dual core laptop, it took about 15 minutes to complete.

    • sudo make install
    • make test (look for failures)
    • Done… sigh (Thanks a bunch to this blog)