Week 3 Class 5 Tue Jan 30 Posted: Jan 30
After Class
There are some commits for the Git source code that cause compilation problems. To get around this, try just building for the executable git
, not all the other stuff. To do so (with a parallel build):
The srcml/codespaces image (used in GitHub Codespaces) did not have autoconf
nor autoheader
installed. I updated the image so that they are installed. If you have a running codespace, delete it and start another one to get the newer image.
For WSL/Linux some packages need installing. From a base Ubuntu 22.04 image, install the following:
For macOS: brew install autoconf
Announcements
Choices
Agenda
Exercise 6: Makefile
Follow along and duplicate my changes to the Makefile for the DevOpsComplexity program.
GNU Autotools (GNU Build System)
The make
utility needs help
autoheader
- Generates config fileautoconf
- Generates configure
scriptconfigure
- Generated by above, custom script for that buildExercise 8: HelloWorld Autotools
Build and run the HelloWorld program. The steps are:
To demonstrate this, you will record a terminal session using asciinema. It records the commands you enter and the output the command produces. asciinema
is already installed in the GitHub Codespaces image. You can also install asciinema on Linux/WSL/macOS.
asciinema
is relatively straightforward to use.
You can play, pause, skip, etc. You can also copy the commands as text. Note that the replay even includes your pauses and any delay as the command is run.
At the end of the terminal session, asciinema
will show a URL. Anybody can use this URL to view the session. This is what you will submit for the exercise to the link in the exercise title. The URL should not contain "connect" or be a local file. Test your URL in a browser; an incorrect URL will receive a 0.
Build and run the Git program. The steps are:
git
program running. Note that the executables are put in the same directory, so it is ./git
As in Exercise 8, show this in an asciinema screencast and submit via the link of this exercise.
All exercises are due by 4:30 pm on Wed Jan 31