在 CentOS 上安装 Netkit-Ng

在 CentOS 上安装 Netkit-Ng

我想在 CentOS 上安装 Netkit-ng,我执行了以下命令:

tar -xjSf netkit-ng-core-32-3.0.4.tar.bz2
tar -xjSf netkit-ng-filesystem-i386-F7.0-0.1.3.tar.bz2
tar -xjSf netkit-ng-kernel-i386-K3.2-0.1.3.tar.bz2

export NETKIT_HOME=/home/admin/Desktop/netkit
export PATH=$PATH:$NETKIT_HOME/bin
export MANPATH=$MANPATH:$NETKIT_HOME/man


./check_configuration.sh

这是我运行最后一个得到的结果:

[root@localhost netkit]# ./check_configuration.sh
>  Checking path correctness... passed.
>  Checking environment... passed.
>  Checking for availability of man pages... passed.
>  Checking for proper directories in the PATH... passed.
>  Checking for availability of auxiliary tools:
    awk          : ok
    basename     : ok
    date         : ok
    dirname      : ok
    find         : ok
    getopt       : ok
    grep         : ok
    head         : ok
    id           : ok
    kill         : ok
    ls           : ok
    lsof         : ok
    ps           : ok
    readlink     : ok
    wc           : ok
    port-helper  : ok
    tunctl       : ok
    uml_mconsole : ok
    uml_switch   : ok
passed.
>  Checking for availability of terminal emulator applications:
    xterm          : found
    konsole        : not found
    gnome-terminal : found
passed.
>  Checking filesystem type... passed.
>  Checking whether executables can run... failed!

*** Error: Your system appears not to be able to run the linux kernel.


[ ERROR ] Your system is not configured properly. Please correct the
          above errors before starting to use Netkit.

我该如何解决这个问题?谢谢

答案1

该错误消息来自文件netkit-ng/check_configuration.d/09-check_architecture.sh,其中执行了以下检查:

if ! $NETKIT_HOME/kernel/netkit-kernel --help >/dev/null 2>&1; then
   echo "failed!"
   echo
   echo "*** Error: Your system appears not to be able to run the linux kernel."
   echo
   check_failure
fi

从这一点来看,可能$NETKIT_HOME没有设置环境变量,或者文件$NETKIT_HOME/kernel/netkit-kernel没有​​执行(在我的系统上是可以执行的)。

还要注意,Netkit-NG 似乎是为 Debian 构建的,因此在 CentOS 上运行它可能是不可能的或非常困难的。

相关内容