nerdexam
CompTIA

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…

System Management

Question

Which of the following commands is used to check and prepare software for compilation?

Options

  • Amake
  • B./bash.sh
  • D./configure

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    3% (1)
  • D
    94% (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

#software compilation#configure command#source code installation#Linux commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice