Friday, August 10, 2012

AdaTutor - Running it in Slackware

AdaTutor is an Ada 95 tutorial program written by John J. Herro.  It has been placed into public domain by John.  It is a great tutorial although it only touches on Ada 95 and does not contain information for Ada 2005 and 2012.

To run the tutor in Slackware, you would have to compile it yourself.  Following the steps here to compile the tutor:
  1. Download the file adatu401.zip
  2. Make a directory in your home directory ~/adatutor
  3. cd ~/adatutor
  4. unzip /where you put downloaded file/adatu401.zip
  5. gnatchop ADATU401.ADA UNIX.ADA
  6. mv ONCECHAR.C onechar.c
  7. gcc -c onechar.c
  8. gnatmake -c adatutor
  9. gnatbind adatutor
  10. gnatlink adatutor onechar.o
  11. dos2unix USERDATA.TXT

You have the adatutor ready to run now.

I will put the content of the tutor on this blog also latter. Just in case you don't want to run it yourself.

Enjoy the tutor!

No comments: