# License Installation Issue in Mac

**URL:** <https://discuss.ampl.com/t/license-installation-issue-in-mac/2094>\
**Category:** Support\
**Created:** [March 20, 2025, 5:28am UTC](https://discuss.ampl.com/t/license-installation-issue-in-mac/2094 "2025-03-20T05:28:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@adnan](https://discuss.ampl.com/u/adnan)\
**Post date:** [March 20, 2025, 5:28am UTC](https://discuss.ampl.com/t/license-installation-issue-in-mac/2094/1 "2025-03-20T05:28:32Z")

</div>

Hi,

I received an AMPL license from my teacher, and it is working perfectly fine on Windows. However, when I try to use the same license on my Mac, I encounter an error. I am using the AMPL license within MATLAB, and the issue arises specifically when attempting to integrate AMPL with MATLAB on macOS. Below is the error message I receive:

```auto
Using native binary at /Applications/AMPL/amplapi/matlab/../lib/libampl.2.3.13.dylib
Using api at /Applications/AMPL/amplapi/matlab/../lib/ampl-java.jar
Using wrapper at /Applications/AMPL/amplapi/matlab
option version 'AMPL Development Version 20250311 (Darwin-22.6.0, 64-bit)\
Licensed to Bundle #7067.7583 expiring 20250831: ELEC5213 Engineering Optimisation, Prof. Gregor Verbic, The University of Sydney.\
Temporary license expires 20250831.\
Using license file "/Applications/AMPL/ampl.lic".\
';

ans =
    'Infeasible Solution'

Error using HandleException (line 13)
no value for Csm_Demand['B0001',1]

Error in Entity/getValues (line 165)
                HandleException(e, 'AMPLAPI:Entity:getValues');
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in indexing (line 75)
                        result = builtin('subsref',self,key);
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in get_data_decisionVariable_AMPL (line 35)
df = Make.getValues;
     ^^^^^^^^^^^^^^
Error in Sol_variabl_Manager_DR_AMPL (line 26)
    Sol.Gen.Status=get_data_decisionVariable_AMPL(ampl,'Status_var',[T,G])';
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in Unit_Commitment (line 206)
Sol_variabl_Manager_DR_AMPL;
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in callback_RunSimulations (line 372)
    [Model, Sol]=Unit_Commitment...
                 ^^^^^^^^^^^^^^^^^^
 
Error while evaluating UIControl Callback.

```

please guide me how can I solve this issue. Thanks

---

<div class="post-metadata">

**Author:** ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)\
**Post date:** [March 20, 2025, 9:57pm UTC](https://discuss.ampl.com/t/license-installation-issue-in-mac/2094/2 "2025-03-20T21:57:32Z")

</div>

It appears that this cascade of error messages is set off by an AMPL error:

```auto
no value for Csm_Demand['B0001',1]

```

AMPL shows this error message when Csm\_Demand has been defined in a param statement, and you are trying to use it — but it cannot be used, because the parameter Csm\_Demand[‘B0001’,1] has not been assigned a data value. To confirm that this is the problem, try executing

```auto
disp('START')
ampl.eval('display Csm_Demand[''B0001'',1];');
disp('END')

```

just before the statement where the error in your program is occurring. Does a “no value for . . .” error appear between START and END?
