#installing lfs

1126 messages · Page 2 of 2 (latest)

tepid skiff
#

just how do i mount this stuff again

wild thicket
#

type lsblk

#

find which partition is your root

#

and mount <partition> /mnt/lfs

tepid skiff
#

i defined the variable

wild thicket
#

also set the LFS variable

#

ok

tepid skiff
#

ok now i went back into lfs user

wild thicket
#

actually you want to switch to root for this

tepid skiff
#

ok

#

whatever u say

wild thicket
#

check the lfs variable again as root

tepid skiff
#

its there

wild thicket
#

ok

tepid skiff
#

lets continue

wild thicket
#

have you done 7.2?

tepid skiff
#

yes

#

i did that already

wild thicket
#

ojk

#

ok

tepid skiff
#

i did it again

#

just to be safe

wild thicket
#

copy paste the stuff in 7.3

#

to mount all needed virtual file systems

tepid skiff
#

7.4

#

now what do i run

wild thicket
#

copy and paste that command

tepid skiff
#

uhh

#

/usr/bin/env doesnt exist for some reason

#

do i just create that dir

wild thicket
#

wdym it doesn't exist

tepid skiff
#

it says no such file or directory

wild thicket
#

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

tepid skiff
#

/mnt/lfs/usr/bin/env

#

its looking for just /usr/bin/env for some reason

wild thicket
#

so it was found

#

no it will say usr/bin/env because that's the path in the chroot

tepid skiff
#

maybe i remove the "" around $LFS

wild thicket
tepid skiff
#

what do i do then

wild thicket
#

in most cases you want variables to be around quotes

#

I am thinking

tepid skiff
#

ok

#

i just wanted to install betterdiscord but knowing my arch install will soon get replaced

#

there isnt a point

#

gotta pee

wild thicket
#

"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

tepid skiff
#

back

#

lets try to cook

wild thicket
#

ok I want you to run
$LFS/usr/bin/env

tepid skiff
#

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

copper forgeBOT
#

NotMega
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

wild thicket
#

ok so far

#

do ls $LFS/lib64

tepid skiff
#

nothing

wild thicket
#

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?

tepid skiff
#

yes

#

ima retrace my steps

wild thicket
#

cd into there

#

then cd into the build directory

tepid skiff
#

so

wild thicket
#

you want to run make DESTDIR=$LFS install again

tepid skiff
#

ima just rerun all the commands for glibc

wild thicket
#

wait

tepid skiff
#

cuz i deleted build dir

#

ARGH

wild thicket
#

exit root first

wild thicket
#

you need to compile it as the lfs user

#

so exit root

tepid skiff
#

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

wild thicket
#

Why are you running this with sudo??

tepid skiff
#

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

wild thicket
#

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

tepid skiff
#

i swear to god

#

man i still want to try lfs

wild thicket
#

well your best bet is starting all over again

tepid skiff
#

cant i just run that command as root

wild thicket
#

no

#

unless you want to your arch system to kill itself

tepid skiff
#

idk man

#

did i just waste like 8 hours for it to just stop working

wild thicket
#

seems like it

tepid skiff
#

well i wanna use some distro that isnt very common

#

so whenever i show off my system they dont see a distro everyone has

wild thicket
#

check out void or something

tepid skiff
#

cant i use some other distro

wild thicket
#

it's very slightly harder than arch but you don't have to compile anything

#

void is another distro

tepid skiff
#

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

wild thicket
#

everyone else uses arch

tepid skiff
#

well i wanna try a new distro

wild thicket
#

Then try one

tepid skiff
#

idk which one to choose lol

wild thicket
#

Then don't

tepid skiff
#

ok ima close this thread and keep using arch

wild thicket
#

don't switch distros just because especially when you don't seem to know much about the terminal yet

#

btw

#

rename that bash.bashrc file

#

in your /etc directory

#

sudo mv /etc/bash.bashrc.NOUSE /etc/bash.bashrc

#

you may also want to delete the lfs user