1

所以我试图在 lfs 构建上配置 glibc2.14.1(步骤 6.9)。当我收到以下错误时,我会配置它:

    root:/home/glibc-build# ../glibc-2.14.1/configure --prefix=/usr --disable-profile  --enable-add-ons --enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc
    ../glibc-2.14.1/configure: line 30: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 75: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 56: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 84: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 137: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 242: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 195: /dev/null: Permission denied
    ../glibc-2.14.1/configure: line 242: /dev/null: Permission denied
    ../glibc-2.14.1/configure: This script requires a shell more modern than all
    ../glibc-2.14.1/configure: the shells that I found on your system.
    ../glibc-2.14.1/configure: Please tell bug-autoconf@gnu.org and glibc about your
    ../glibc-2.14.1/configure: system, including any error possibly output before this
    ../glibc-2.14.1/configure: message. Then install a modern shell, or manually run
    ../glibc-2.14.1/configure: the script under such a shell if you do have one.

关于此错误原因的任何想法?提前致谢

4

2 回答 2

0

我在这里发现了同样的错误:

http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2000-August/005683.html

问题是 /dev/null 属于不存在的用户/组。

于 2012-06-28T12:56:04.900 回答
-1

每当出现 Permission Denied 时,这意味着您必须执行前面带有 sudo 的语句。只需使用 su - 更改为 root 用户,然后写 sudo 后跟任何你想写的命令。在询问时提供 root 的密码。

于 2012-08-07T17:01:52.607 回答