forrest@narnia:~/bin/aspc-1.0/src$ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Then you should be able to see a new executables called "aspc" in the directory.
To install ACSolver:
crmodels in the directory. I don't know why it is not acsolver as expected.
So I just copy crmodels into a new file named acsolver in the same directory. And set the path to acsolver and aspc into $PATH environmental variable.
Then you can go to the tests directory of acsolver. You can run a test, like this
$ crmodels t1.lp acsolver version 1.56 ASPC Loaded Everything maxmodels: 1 Number of Rules: 4 Number of Atoms: 5 Answer: 1 Stable Model: a c b True Duration: 0.020 Ground+Load Time: 0.012Sounds great. The program is:
%test basic functionality a. b. c :- a. d :- not c.