# Problem executing 'q' under linux

**URL:** <https://forum.kx.com/t/problem-executing-q-under-linux/8929>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [July 10, 2014, 4:09pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929 "2014-07-10T16:09:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![quant\_coder](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quant\_coder](https://forum.kx.com/u/quant_coder)\
**Post date:** [July 10, 2014, 4:09pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929/1 "2014-07-10T16:09:00Z")

</div>

Hi,

I’m new to Kdb+/q. I downloaded the 32-bit free version from the kdb+ website to install on my 64-bit Arch Linux System. I am getting a problem with trying to launch the ‘q’ executable under q/l32/q. I keep getting a message indicating&nbsp;

? &nbsp;~ &nbsp;cd q

? &nbsp;q &nbsp;rlwrap l32/q “$@”

rlwrap: Cannot execute l32/q: No such file or directory

The executable is there. When I do an ‘ls l32/q’ the system picks it up, but anytime I try to execute I get the above no such file message.

I’m probably not doing something simple here but I cannot see it. Any help would be appreciated. I tried on my Mac and all is good there so not sure why it is not working on my Linux box.

---

<div class="post-metadata">

**Author:** ![charlie1](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@charlie1](https://forum.kx.com/u/charlie1)\
**Post date:** [July 10, 2014, 4:14pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929/2 "2014-07-10T16:14:00Z")

</div>

you might be missing 32bit libs from the system. try

sudo apt-get install ia32-libs

---

<div class="post-metadata">

**Author:** ![quant\_coder](https://avatars.discourse-cdn.com/v4/letter/q/96bed5/32.png) [@quant\_coder](https://forum.kx.com/u/quant_coder)\
**Post date:** [July 10, 2014, 4:53pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929/3 "2014-07-10T16:53:00Z")

</div>

Thanks.

I don’t think I will be able to run the 32-bit version of kdb+ on my Arch Linux 64-bit machine. In Arch Linux, there is a multi-lib setting (equivalent to ia32-libs in Ubunutu) which can be enabled which should theoretically setup up a 32-bit environment (within a 64-bit one) so that 32-bit apps can be run. I did this and updated my system but it still doesn’t work.

---

<div class="post-metadata">

**Author:** ![sohagan](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sohagan](https://forum.kx.com/u/sohagan)\
**Post date:** [September 8, 2014, 11:15pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929/4 "2014-09-08T23:15:00Z")

</div>

Hi Iftikhar,

How did you get on with this in the end? I had the same problem and had to run other commands before Charles’ command. I basically just did everything on this page(you might have already seen the page, maybe not)…

[http://stackoverflow.com/questions/23182765/how-to-install-ia32-libs-in-ubuntu-14-04-lts](http://stackoverflow.com/questions/23182765/how-to-install-ia32-libs-in-ubuntu-14-04-lts)

I was installing 32 bit q on 64 bit ubuntu so I thought this may be of help to you if you never solved it.

Hope it helps.

Sean

---

<div class="post-metadata">

**Author:** ![kevinarpe](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kevinarpe](https://forum.kx.com/u/kevinarpe)\
**Post date:** [December 19, 2017, 3:09pm UTC](https://forum.kx.com/t/problem-executing-q-under-linux/8929/5 "2017-12-19T15:09:00Z")

</div>

FYI: This was helpful:&nbsp;[https://wiki.debian.org/Multiarch/HOWTO](https://wiki.debian.org/Multiarch/HOWTO)

Basically:&nbsp;

```
dpkg --add-architecture i386apt-get updateapt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

```

On Tuesday, September 9, 2014 at 6:15:51 AM UTC+8, Sean O’Hagan wrote:

> Hi Iftikhar,
> 
> How did you get on with this in the end? I had the same problem and had to run other commands before Charles’ command. I basically just did everything on this page(you might have already seen the page, maybe not)…
> 
> http://stackoverflow.com/questions/23182765/how-to-install-ia32-libs-in-ubuntu-14-04-lts
> 
> I was installing 32 bit q on 64 bit ubuntu so I thought this may be of help to you if you never solved it.
> 
> Hope it helps.
> 
> Sean
