LPIC-2 Exam 201 (Linux Engineer) — Question 31
A regular user has just run -
./configure && make && make install
to build and install a program. However, the installation fails. What could be done to install the program? (Choose two.)
Answer options
- A. Install the binaries manually with suinstall
- B. Run make install with root privileges
- C. Do not run ./configure in order to maintain the default configuration for correct installation
- D. Rerun ./configure with a --prefix option where the user has permissions to write
- E. Run make install_local to install into /usr/local/
Correct answer: B, D
Explanation
The correct answer is B, as running make install with root privileges allows the necessary permissions to complete the installation. Option D is also correct because rerunning ./configure with a --prefix option can direct the installation to a location where the user has write access. The other options either suggest incorrect commands or actions that would not resolve the installation failure.