gpt4 book ai didi

linux - "not running as user lfs, you should be"错误

转载 作者:太空宇宙 更新时间:2023-11-04 12:50:29 27 4
gpt4 key购买 nike

描述

尝试在我的树莓派 3 上安装 pilfs(树莓派的 LFS)。我正在按照此处发布的指南进行操作:http://www.intestinate.com/pilfs/guide.html

我目前正在关注他们的“第 8 章”

8 Building Chapter 5 [5.4. Binutils - Pass 1]

Alright, this is the moment of truth. Will you make your way through chapter 5 slow and steady, or just execute the build script and go do something else for 30 hours? This is for you to decide ... I've done both :)

Also, here is where you might want to start a tmux or screen session. Because if you break your ssh connection or your router has a hickup, your build will just stop.

So you've made up your mind? Okey, script runners, start your engines:

cd $LFS/sources

chmod +x

ch5-build.sh

./ch5-build.sh

The script will report your SBU time after the first binutils build has finished, mine is usually around 1 hour.

For those brave souls who are working through the chapter by hand, check out the about page and read the build scripts to figure out what's going on.

错误

当我执行 ./ch5-build.sh 时,会导致以下消息:

Not running as user lfs, you should be!

问题:

发生这种情况我错过了哪一步?如何以“lfs 用户”身份运行自己?

最佳答案

您需要在命令行中输入su - lfs,然后输入您的密码。这是假设您已经在本书前面部分创建了 lfs 用户。从那里,您可以运行 shell 脚本。

关于linux - "not running as user lfs, you should be"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37364766/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com