Objective 1.6XK0-005

1.6 Given a scenario, build and install software.

Objective 1.6 sits in System Management, which carries 32% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

1-6System ManagementModerate

A freshly compiled tool fails to find a library installed under /opt/vendor/lib. The technician exports one variable and the tool runs. Which variable was it?

LD_LIBRARY_PATHCorrect · your answerCorrect. LD_LIBRARY_PATH extends the library search.
PATHPATH locates executables, not shared libraries.
LD_SO_CACHENo LD_SO_CACHE variable exists; the cache is a file.
LIBRARY_HOMELIBRARY_HOME is not a variable the linker reads.

Correct.

Concept

The dynamic linker searches an ordered set of locations, one of which is a user-supplied list of directories carried in the environment.

Why A

LD_LIBRARY_PATH adds directories to the dynamic linker's search, so exporting it lets the tool resolve the library in the vendor path.

#shared-libraries#dynamic-linker

Now you: objective 1.6 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

1-6System ManagementModerate

Instead of walking library directories on every start, program loading stays fast. Which file gives the dynamic linker its precompiled list of candidates?

Sample question 2 of 3

1-6System ManagementHard

An engineer sets LD_LIBRARY_PATH for a set-user-ID binary to test a patched library, and the variable has no effect. Why?

Sample question 3 of 3

1-6System ManagementModerate

A binary carries both DT_RPATH and DT_RUNPATH entries. Which statement about DT_RPATH's reach is correct?

Full Linux+ question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in System Management