# Getting License error

**URL:** <https://forum.kx.com/t/getting-license-error/13364>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [November 1, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364 "2022-11-01T00:00:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![srevuri4](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@srevuri4](https://forum.kx.com/u/srevuri4)\
**Post date:** [November 1, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/1 "2022-11-01T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/getting-license-error](https://learninghub.kx.com/forums/topic/getting-license-error)

Hi Floks,

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

Can you please help on this.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [November 7, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/2 "2022-11-07T00:00:00Z")

</div>

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

---

<div class="post-metadata">

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

</div>

After Setting QLIC. Issue is resolved.

Thanks.

---

<div class="post-metadata">

**Author:** ![voiddump](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@voiddump](https://forum.kx.com/u/voiddump)\
**Post date:** [January 15, 2024, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/4 "2024-01-15T00:00:00Z")

</div>

I tried multiple ways on my MacBook Pro and my VMFusion (whose environment supposedly is windows 11) but my issue is not resolved. My folder structure is as 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:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [January 15, 2024, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/5 "2024-01-15T00:00:00Z")

</div>

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

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

.i.e

- 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:** ![voiddump](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@voiddump](https://forum.kx.com/u/voiddump)\
**Post date:** [January 16, 2024, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/6 "2024-01-16T00:00:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![srevuri4](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@srevuri4](https://forum.kx.com/u/srevuri4)\
**Post date:** [November 7, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/7 "2022-11-07T00:00: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:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [November 7, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/8 "2022-11-07T00:00:00Z")

</div>

What location is your licence file?

Have you set the QLIC environment variable?

---

<div class="post-metadata">

**Author:** ![mattdeshaq](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mattdeshaq](https://forum.kx.com/u/mattdeshaq)\
**Post date:** [November 2, 2022, 12:00am UTC](https://forum.kx.com/t/getting-license-error/13364/9 "2022-11-02T00:00:00Z")

</div>

Hi,

Due to changes made by KX earlier this year, the use of kdb+ now requires a license. Some details can be found from documentation by KX here: [https://code.kx.com/q/learn/licensing/](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
