Skip to content
Andrey Zholos edited this page Nov 24, 2016 · 1 revision

32-bit qml on 64-bit Ubuntu

Using multilib

Using the multilib compiler is the simplest way but doesn't work with BLAS and LAPACK provided by the system, so you'll need to build them together with qml using the --build-blas or --build-openblas configure options.

$ sudo apt-get install gfortran-multilib
$ ./configure --build-blas
q operating system... l32 (detected from q)
...
$ make

Make sure the architecture is detected as l32. In the above example it is detected because the q in PATH is the 32-bit version. It can also be set explicitly with the KXARCH=l32 configure option.

Using Multiarch

With Multiarch, 32-bit packages can be installed on a 64-bit host, though they often conflict with 64-bit packages so only one version can be installed at a time.

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get remove gcc-multilib
$ sudo apt-get install gfortran:i386 liblapack-dev:i386
$ ./configure
$ make