Building Linux and FLOSS programs from source code

There are several options in /etc , and I dont claim to understand it.
It seems to depend on which services you have installed.

1 Like

Of course - if you change /etc/environment - you need to either logout - or reload your profile…
Pretty sure .profile reads /etc/environment (and /etc/profile)… maybe as an undocumented ā€œincludeā€?
Also note : this was on server environments - but worked on all the DEB and RPM families I’ve used that on…
However - I don’t think you can append to existing $PATH with /etc/environment - i.e. ā€œPATH=$PATH:/dir2:/dir2/ā€ doesn’t work (I think?)
Shame it can’t be more consistent… Oh well…

2 Likes

Will give this a try!!!

2 Likes

There is no /etc/environment in LFS but there is a .bashrc.

1 Like

Yeah, it varies between distros. Some of mine have /etc/profile.
Do the user one, it is easier.

1 Like

There are 2 files where settings can be added or modified in each user’s home directory. They’re dot files so you need to use ls -a to see them in the directory. There’s a .profile file that runs when you log in and a .bashrc file. Usually, the path is set in one or the other.

2 Likes

Yes, I used the .bashrc, for my user account and bashrc for my root account.
With LFS I have to use ā€œls -laā€!!
The main problem I am having now is with the mesa install!! My old Nvidia GT430 and the libglvnd, is nowhere to be founf for LFS12.3, so I have switched to my onboard Intell HD4000, for my GPU and am rebuilding llvm in hopes of getting the dependencies needed for Mesa.
If I cannot get a Mesa compile, then I would have to use an older version of LFS!!

2 Likes