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」是用来设置安装路径的前缀,预设为「/usr/local」。使用了错误的「prefix」只会让文件被安装到非预期的路径下,通常不会让安装的过程出现错误。