# Issue with kdb+ License File (kc.lic) - Seeking Help

**URL:** <https://forum.kx.com/t/issue-with-kdb-license-file-kc-lic-seeking-help/13126>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [December 27, 2023, 12:37pm UTC](https://forum.kx.com/t/issue-with-kdb-license-file-kc-lic-seeking-help/13126 "2023-12-27T12:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiale2h1](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@chiale2h1](https://forum.kx.com/u/chiale2h1)\
**Post date:** [December 27, 2023, 12:37pm UTC](https://forum.kx.com/t/issue-with-kdb-license-file-kc-lic-seeking-help/13126/1 "2023-12-27T12:37:00Z")

</div>

Hello Community,

I am experiencing an issue with my kdb+ installation. Despite having a kc.lic file, which should be a valid license, I am encountering a license error when attempting to run kdb+. The error message is as follows:

`'Licence error: k4.lic'`

I have confirmed that the kc.lic file is located in the correct directory, yet the problem persists. Here are the steps Ive taken so far:

- Ensured that the kc.lic file is in the $HOME/q directory (or C:\q for Windows users).
- Verified the contents of the QHOME and QLIC environment variables.
- Attempted to run kdb+ using the command prompt.

Could anyone please advise on what might be causing this issue and how to resolve it? Any insights or suggestions would be greatly appreciated.

Thank you in advance for your assistance.

---

<div class="post-metadata">

**Author:** ![Michaela](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Michaela](https://forum.kx.com/u/Michaela)\
**Post date:** [December 28, 2023, 2:51pm UTC](https://forum.kx.com/t/issue-with-kdb-license-file-kc-lic-seeking-help/13126/2 "2023-12-28T14:51:00Z")

</div>

Hi&nbsp;&nbsp;

The error k4.lic means that kdb+ has not found a license file.&nbsp;Kdb+ looks for a license file in&nbsp;`QHOME`. If you are keeping your license file elsewhere, set its path in environment variable&nbsp;`QLIC`.

This posts suggestion might help:  
https://community.kx.com/t5/kdb-and-q/licence-error-k4-lic/m-p/12985/highlight/true#M11076&nbsp;

&nbsp;

If you are still struggling can you share what QHOME and QLIC are and also list whats in QHOME.

echo %QHOME% dir %QHOME% echo %QLIC%

Thanks

&nbsp;

&nbsp;

---

<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, 5:14am UTC](https://forum.kx.com/t/issue-with-kdb-license-file-kc-lic-seeking-help/13126/3 "2024-01-15T05:14:00Z")

</div>

I tried multiple ways on my MacBook Pro and my VMFusion (whose environment supposedly is windows&nbsp;11) but still the error message ‘Licence error: k4.lic’ persists. 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 I can solve the problem on my VMFusion.
