#installing lfs
1126 messages · Page 2 of 2 (latest)
i defined the variable
ok now i went back into lfs user
actually you want to switch to root for this
check the lfs variable again as root
its there
ok
lets continue
have you done 7.2?
copy and paste that command
wdym it doesn't exist
it says no such file or directory
type ls /usr/bin/env
what do you see
wait no
the command is looking for /usr/bin/env in the LFS system
type ls $LFS/usr/bin/env
maybe i remove the "" around $LFS
no
what do i do then
ok
i just wanted to install betterdiscord but knowing my arch install will soon get replaced
there isnt a point
gotta pee
"soon" is a month away at this rate
I am pretty sure you don't understand what I mean when I say this will take a LONG time
tell me when you are back so we can debug some stuff
ok I want you to run
$LFS/usr/bin/env
install -v -d -m 1777 $LFS$(realpath /dev/shm)
else
mount -vt tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
fi
mount: tmpfs mounted on /mnt/lfs/dev/shm.
root:/mnt/lfs# chroot "$LFS" /usr/bin/env -i
HOME=/root
TERM="$TERM"
PS1='(lfs chroot) \u:\w$ '
PATH=/usr/bin:/usr/sbin
MAKEFLAGS="-j$(nproc)"
TESTSUITEFLAGS="-j$(nproc)"
/bin/bash --login
chroot: failed to run command '/usr/bin/env': No such file or directory
root:/mnt/lfs# ls $LFS/usr/bin/env
/mnt/lfs/usr/bin/env
root:/mnt/lfs# $LFS/usr/bin/env
SHELL=/bin/bash
PWD=/mnt/lfs
HOME=/root
TERM=xterm-256color
SHLVL=2
PS1=\u:\w$
LFS_TGT=x86_64-lfs-linux-gnu
LC_ALL=POSIX
LFS=/mnt/lfs
CONFIG_SITE=/mnt/lfs/usr/share/config.site
PATH=/mnt/lfs/tools/bin:/usr/bin
OLDPWD=/home/lfs
_=/mnt/lfs/usr/bin/env
NotMega
Compile Error! Click the
reaction for more information.
(You may edit your message to recompile.)
nothing
ok there's your problem
I feel like you forgot to run make install in some package
there should be files compiled by glibc there
do you still have the glibc folder in your sources?
so
you want to run make DESTDIR=$LFS install again
ima just rerun all the commands for glibc
wait
exit root first
ok
you need to compile it as the lfs user
so exit root
im outta root
lfs time
bash: syntax error near unexpected token )' lfs:/mnt/lfs/sources/glibc-2.40$ sudo case $(uname -m) in i?86) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3 ;; x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64 ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3 ;; esac sudo: case: command not found bash: syntax error near unexpected token )'
bash: syntax error near unexpected token ;;' bash: syntax error near unexpected token )'
ln: failed to create symbolic link '/mnt/lfs/lib64/ld-lsb-x86-64.so.3': Permission denied
bash: syntax error near unexpected token ;;' bash: syntax error near unexpected token esac'
i swear to god
case $(uname -m) in
i?86) ln -sfv ld-linux.so.2 $LFS/lib/ld-lsb.so.3
;;
x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64
ln -sfv ../lib/ld-linux-x86-64.so.2 $LFS/lib64/ld-lsb-x86-64.so.3
;;
esac
this is so hard to type
Why are you running this with sudo??
else it says permission denied
ln: failed to create symbolic link '/mnt/lfs/lib64/ld-linux-x86-64.so.2': Permission denied
ln: failed to create symbolic link '/mnt/lfs/lib64/ld-lsb-x86-64.so.3': Permission denied
oh right you changed perms
well your lfs system is pretty broken then
honestly seeing as you barely know bash stuff it's probably best to avoid LFS
you can try gentoo if you want to torture yourself idk
well your best bet is starting all over again
cant i just run that command as root
seems like it
well i wanna use some distro that isnt very common
so whenever i show off my system they dont see a distro everyone has
check out void or something
cant i use some other distro
it's very slightly harder than arch but you don't have to compile anything
void is another distro
well
i wanna use something that those ytbers use and stuff
like idk endeavaour or smth
idk how to spell that
@wild thicket
i want to try some other distro
most youtubers use linux mint because youtubers don't want to spend time trying to fix stuff and just want something that works
everyone else uses arch
well i wanna try a new distro
Then try one
idk which one to choose lol
Then don't
ok ima close this thread and keep using arch