XK0-005 · Question #10830
Which of the following commands is used to check and prepare software for compilation?
The correct answer is D. ./configure. './configure' is a shell script included in many open-source software packages (especially those following the GNU Autotools build system). It inspects the local system for required libraries, headers, and tools, then generates a Makefile tailored to the system's environment…
Question
Options
- Amake
- B./bash.sh
- D./configure
How the community answered
(34 responses)- A3% (1)
- B3% (1)
- D94% (32)
Explanation
'./configure' is a shell script included in many open-source software packages (especially those following the GNU Autotools build system). It inspects the local system for required libraries, headers, and tools, then generates a Makefile tailored to the system's environment. This is the preparation step before compilation. 'make' uses the generated Makefile to actually compile and link the source code - it comes after ./configure. './bash.sh' is a generic script execution command and has no specific role in the compilation workflow. The correct order for building from source is typically: ./configure → make → make install.
Topics
Community Discussion
No community discussion yet for this question.