# Getting License error

**URL:** <https://forum.kx.com/t/getting-license-error/12711>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [November 1, 2022, 7:55pm UTC](https://forum.kx.com/t/getting-license-error/12711 "2022-11-01T19:55:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![srevuri41](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@srevuri41](https://forum.kx.com/u/srevuri41)\
**Post date:** [November 1, 2022, 7:55pm UTC](https://forum.kx.com/t/getting-license-error/12711/1 "2022-11-01T19:55:00Z")

</div>

Hi Floks,

I am new KDB, while running q session, I am getting below error.

Can you please help on this.

&nbsp;

---

<div class="post-metadata">

**Author:** ![mattdeshAQ1](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mattdeshAQ1](https://forum.kx.com/u/mattdeshAQ1)\
**Post date:** [November 2, 2022, 12:36pm UTC](https://forum.kx.com/t/getting-license-error/12711/2 "2022-11-02T12:36:00Z")

</div>

Hi,

Due to changes made by KX earlier this year, the use of kdb+ now requires a license.&nbsp; Some details can be found from documentation by KX here:&nbsp;https://code.kx.com/q/learn/licensing/

I may not be able to fully assist with this as you may need to contact KX directly, but hopefully this can point you in the right direction!

&nbsp;

Best Wishes,

Matt

---

<div class="post-metadata">

**Author:** ![srevuri41](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@srevuri41](https://forum.kx.com/u/srevuri41)\
**Post date:** [November 7, 2022, 5:58am UTC](https://forum.kx.com/t/getting-license-error/12711/3 "2022-11-07T05:58:00Z")

</div>

I went through the above link, I tried multiple ways but my issue is not resolved.

**Environment**

**OS:- Win-11**

---

<div class="post-metadata">

**Author:** ![rocuinneagain1](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rocuinneagain1](https://forum.kx.com/u/rocuinneagain1)\
**Post date:** [November 7, 2022, 10:35am UTC](https://forum.kx.com/t/getting-license-error/12711/4 "2022-11-07T10:35:00Z")

</div>

What location is your licence file?

Have you set the QLIC environment variable?

---

<div class="post-metadata">

**Author:** ![srevuri41](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@srevuri41](https://forum.kx.com/u/srevuri41)\
**Post date:** [November 7, 2022, 5:41pm UTC](https://forum.kx.com/t/getting-license-error/12711/5 "2022-11-07T17:41:00Z")

</div>

Hi,

Below is my folder structure.

&nbsp;

---

<div class="post-metadata">

**Author:** ![rocuinneagain1](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rocuinneagain1](https://forum.kx.com/u/rocuinneagain1)\
**Post date:** [November 7, 2022, 5:44pm UTC](https://forum.kx.com/t/getting-license-error/12711/6 "2022-11-07T17:44:00Z")

</div>

1. Is QLIC set?
2. Was this licence issued specifying it was for a windows machine?

---

<div class="post-metadata">

**Author:** ![srevuri41](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@srevuri41](https://forum.kx.com/u/srevuri41)\
**Post date:** [November 7, 2022, 7:32pm UTC](https://forum.kx.com/t/getting-license-error/12711/7 "2022-11-07T19:32:00Z")

</div>

After Setting QLIC. Issue is resolved.

Thanks.

---

<div class="post-metadata">

**Author:** ![voiddump1](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@voiddump1](https://forum.kx.com/u/voiddump1)\
**Post date:** [January 15, 2024, 4:57am UTC](https://forum.kx.com/t/getting-license-error/12711/8 "2024-01-15T04:57:00Z")

</div>

I tried multiple ways on my MacBook Pro and my VMFusion (whose environment supposedly is windows&nbsp;11) but my issue is not resolved. My folder structure is as&nbsp;below: (The first is that on Mac, the second&third is that on VMFusion).

P.S. I would prefer KDB+ be installed on my Mac instead of on my VMFusion, if possible. But I would also really appreciate it if someone tell me how to solve the problem on my VMFusion.

---

<div class="post-metadata">

**Author:** ![rocuinneagain1](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rocuinneagain1](https://forum.kx.com/u/rocuinneagain1)\
**Post date:** [January 15, 2024, 7:47am UTC](https://forum.kx.com/t/getting-license-error/12711/9 "2024-01-15T07:47:00Z")

</div>

&nbsp;

First image looks fine for QHOME=/voiddump/q/m64

&nbsp;

More traditional structure would be to not have that extra level of m64

.i.e&nbsp;

- voiddump/q/kc.lic
- voiddump/q/q.k
- voiddump/q/m64/q

In that case you’d use QHOME=/voiddump/q

---

<div class="post-metadata">

**Author:** ![voiddump1](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@voiddump1](https://forum.kx.com/u/voiddump1)\
**Post date:** [January 16, 2024, 1:07am UTC](https://forum.kx.com/t/getting-license-error/12711/10 "2024-01-16T01:07:00Z")

</div>

I changed the QHOME to&nbsp;/voiddump/q and it works! Thank you so much!
