Are you double-clicking the "ampl" application (with the black square icon)? If so, due to the way macOS works, a command window will appear but the current directory (folder) will not be your AMPL folder. This can be fixed with the following AMPL command at the beginning of the AMPL session:
cd /Users/camillajohansen/Desktop/ampl_macosx64;
This changes the current directory to the one referenced in the error message that you received.
If you are starting AMPL in some other way, then you can get more help by posting a screenshot of the window where you are running AMPL, showing it as it looked when the error message appeared.
You may find it more convenient to use the AMPL IDE under macOS. You can download an IDE add-in from
http://ampl.com/products/ide/.
Bob Fourer
am...@googlegroups.com
=======
From:
am...@googlegroups.com [mailto:
am...@googlegroups.com] On Behalf Of
camilla....@springbrettet.org
Sent: Friday, September 22, 2017 10:49 AM
To: AMPL Modeling Language
Subject: [AMPL 14792] "Can't find file"
I am trying to run ampl on my mac and I keep getting a "can't find file" error. I have saved my .mod and .dat files directly into the ampl64 folder.
This is the result:
Can't find file "generalchemicals.mod"
context: model >>> generalchemicals.mod <<< ;
include stack...
-, line 1 includes
/Users/camillajohansen/Desktop/ampl_macosx64/solvingfile.run