User Joseph has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?



A. The source code was compiled for a different CPU
B. The permissions set in the /usr/bin directory are wrong
C. The binaries require root privileges to be installed
D. The wrong prefix was used during configuration of the source code

題解

選項A,這會是在執行程式的時候才會出現的問題。

選項B,「/usr/bin」目錄是透過套件庫安裝的套件所存放執行檔的目錄(由套件管理員直接對其進行管理),如果是使用者自行編譯安裝的程式執行檔通常會放置在「/usr/local/bin」目錄下。

選項C,「/usr/local/bin」目錄預設擁有者和群組為「root」,權限為「755」。若要將檔案寫入至該目錄,需要是「root」才擁有寫入權限。因此為正確答案。

選項D,「prefix」是用於編譯的時候目的檔案所存放的路徑之前綴,與安裝檔案時的路徑無關。