You may want to look into using GLPK (
http://www.gnu.org/software/
glpk/). It uses GMPL which is a subset of AMPL. You have to download
it and compile it with a c complier like g++ or gcc. IBM has a great
tutorial on the GLPK
http://www.ibm.com/developerworks/linux/library/l-glpk1/
Be sure to look at parts 2 and 3 of the series as well. On the
DeveloperWorks site do a search for "linear programming".
Secondly, I have not used AMPL on linux but I would have to guess that
you need to compile it. I would look at the documentation that came
in the ampl.gz package. Let me know if you have still have troubles
and I will give it a try myself.
Larry
http://industrialengineertools.blogspot.com/