LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   9.0 systemd rustc build failed (https://www.linuxquestions.org/questions/linux-from-scratch-13/9-0-systemd-rustc-build-failed-4175661895/)

rabidlinux 10-02-2019 06:23 PM

9.0 systemd rustc build failed
 
Hi all,

Was working on firefox install. Building rustc failed to link

with this error:

rustc-1.35.0-src ]# source /etc/profile.d/rustc.sh
bash: pathprepend: command not found

Anyone know what this is?

Thanks a bunch for ideas and help

bryan_S 10-02-2019 06:52 PM

You need to install the bash startup files per the BLFS chapter: "The Bash Shell Startup Files". The pathappend / pathprepend / pathremove functions are defined in /etc/profile.

rabidlinux 10-02-2019 07:46 PM

Hey Bryan
The system is completed. Rustc worked fine earlier for librsvg when I built Abiword. When I tried to install cbindgen needed for Firefox it
says cargo not found. I reinstalled rustc and the last command fails after install

rustc-1.35.0-src ]# source /etc/profile.d/rustc.sh
bash: pathprepend: command not found

thats my problem . I have Seamonkey and Video aand sound.
Just wanted Firefox too

spiky0011 10-03-2019 08:58 AM

Did you create
/etc/profile.d/rustc.sh
is /opt/rust in your $PATH ?
try sourcing /etc/profile

rabidlinux 10-03-2019 03:34 PM

Hey Spiky,
Would you mind showing me the way to do what you posted. Sorry, but I'm lost. All I try to do is copy and paste the code
they use.
Thanks a lot

spiky0011 10-04-2019 03:06 AM

Hi
You have been doing lfs for awhile now they were basic commands.
output of
Code:

echo $PATH
output
Code:

cat /etc/profile.d/rustc.sh

rabidlinux 10-04-2019 05:27 AM

Just trying to learn why something works one day and doesn't the next. Rustc and QT-5 always give me trouble.
Thanks for the help


bash-5.0$ echo $PATH
/opt/rustc/bin:/usr/local/bin:/bin:/usr/bin
bash-5.0$ cat /etc/profile.d/rustc.sh
# Begin /etc/profile.d/rustc.sh

pathprepend /opt/rustc/bin PATH

# End /etc/profile.d/rustc.sh
bash-5.0$

spiky0011 10-04-2019 05:37 AM

is this your terminal prompt "bash-5.0$" it should have a user????

Check all the bash files in /etc as per ch3 as mentioned earlier by bryan S
try running
Code:

source /etc/profile

emmett1 10-04-2019 07:23 AM

Check your /etc/profile whether it have pathprepend function in it.
If dont have pathprepend function, it mean you did not follow 'The Bash Shell Startup Files' in the blfs book.

rabidlinux 10-04-2019 09:33 AM

Thanks Guy's. I will go back and see what I missed. Something must have not copied and pasted correctly or I missed it.
Thanks again

rabidlinux 10-04-2019 10:34 AM

Ok, went back and c&p chapter 3 again. When I open terminal its still the same (bash-5.0$) and still missing my name unless I change xfce4 terminal settings to "Run command as login shell" Now I'm totally confused about this bash stuff and have no idea what I have done wrong.

rabidlinux 10-04-2019 03:56 PM

Not solved closed anyway
 
Just copied my ~/.bashrc from arch now seems to work


All times are GMT -5. The time now is 03:46 AM.