LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-02-2019, 06:23 PM   #1
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Rep: Reputation: Disabled
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
 
Old 10-02-2019, 06:52 PM   #2
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 106

Rep: Reputation: Disabled
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.
 
Old 10-02-2019, 07:46 PM   #3
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-03-2019, 08:58 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Did you create
/etc/profile.d/rustc.sh
is /opt/rust in your $PATH ?
try sourcing /etc/profile
 
Old 10-03-2019, 03:34 PM   #5
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-04-2019, 03:06 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 10-04-2019, 05:27 AM   #7
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
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$

Last edited by rabidlinux; 10-04-2019 at 05:36 AM.
 
Old 10-04-2019, 05:37 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 10-04-2019, 07:23 AM   #9
emmett1
Member
 
Registered: Nov 2017
Location: Malaysia
Distribution: Venom Linux, LFS
Posts: 49

Rep: Reputation: Disabled
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.
 
Old 10-04-2019, 09:33 AM   #10
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
Unhappy

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
 
Old 10-04-2019, 10:34 AM   #11
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-04-2019, 03:56 PM   #12
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Original Poster
Rep: Reputation: Disabled
Not solved closed anyway

Just copied my ~/.bashrc from arch now seems to work

Last edited by rabidlinux; 10-04-2019 at 05:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Building rustc-1.25.0 from BLFS SVN re_nelson Linux From Scratch 5 06-25-2018 09:29 PM
[SOLVED] Rustc-1.19.0 - It is safe to remove ~/.cargo directory after compiling anak_bawang Linux From Scratch 2 10-12-2017 02:26 AM
LXer: The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linu LXer Syndicated Linux News 1 04-07-2017 11:33 PM
LXer: Is systemd as bad as boycott systemd is trying to make it? LXer Syndicated Linux News 0 09-03-2014 05:50 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration