# \[AMPL 25027\] No ampl license for this machine.

**URL:** <https://discuss.ampl.com/t/ampl-25027-no-ampl-license-for-this-machine/1063>\
**Category:** Google Group Mirror\
**Created:** [April 20, 2024, 1:00pm UTC](https://discuss.ampl.com/t/ampl-25027-no-ampl-license-for-this-machine/1063 "2024-04-20T13:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ae.naderi](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ae.naderi](https://discuss.ampl.com/u/ae.naderi)\
**Post date:** [April 20, 2024, 1:00pm UTC](https://discuss.ampl.com/t/ampl-25027-no-ampl-license-for-this-machine/1063/1 "2024-04-20T13:00:20Z")

</div>

Hello everyone.  
I’m a student and I’m new to Linux. I want to use AMPL to solve my formulas for my project. I downloaded the Community Edition and the AMPL C++ API. I extracted the tar file in Home/Downloads and ran ./ampl. In the second step (step 2), the site gave me a unique license to activate my software. I ran ./ampl in this directory and input the unique ID as instructed.

My problem is that every 5 minutes, AMPL shows the following message. When I run AMPL with sudo in its directory, everything is fixed (sudo ./ampl).

What is the problem and how can I fix it?

License file ./ampl.lic:  
Short term lease expired. Please make sure your internet connection is working in order to renew the license.  
Current directory = “/home/\*/Downloads/ampl.linux-intel64”.  
Today = \*; found license file “./ampl.lic”:

# Temporary AMPL, BARON, CONOPT, CPLEX, GUROBI, KNITRO, LGO,

# LINDOGLOBAL, LOQO, MINOS, SNOPT, XPRESS, OCTERACT, COPT & MOSEK

# single-machine server license expiring 20240514

# licensed to AMPL Community Edition License for \<_@_\>:

\*\*\*\*\*\*\*\* c240f6b0 9a8018ed

HOSTINFO.PLATFORM.linux64

AMPL Version 20240313 (Linux-5.15.0-1059-azure, 64-bit)
