A systems administrator has just finished compiling a new utility from source code in its directory, /opt/src/new-util. They ran the ./configure and make commands, and both completed successfully. When the administrator tries to run the utility from their home directory, they get a "command not found" error. Which of the following commands should the administrator run next from within the /opt/src/new-util directory to make the utility available system-wide?
The standard process for compiling from source is ./configure, make, and then make install. The make command compiles the binaries in the local source directory. The make install command is required to copy the compiled program, its libraries, and documentation to the appropriate system-wide directories (e.g., /usr/local/bin, /usr/local/lib). Because these are system directories, the command typically requires root privileges, executed via sudo. The "command not found" error occurs because the user's $PATH environment variable does not include the build directory, but it does include standard system directories where the application will be placed after installation.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'make' command do?
Open an interactive chat with Bash
Why does 'make install' require administrative privileges?
Open an interactive chat with Bash
What is a 'Makefile', and how does it relate to 'make'?