On 08/03/2018 10:20, Hazel Russman wrote:
> Python is installed in LFS 8.2 as /usr/bin/python3. While I was building 
> harfbuzz in BLFS 8.2, I discovered that the check stage requires 
> /usr/bin/python. There may be other programs that look for this name too. 
> Creating a symlink solved the problem. 
> 
> I couldn't find an instruction in LFS to create this link. I suggest adding:
> Some programs expect to find /usr/bin/python. To satisfy them, create a 
> symbolic link:
> ln -svf python3 /usr/bin/python
> 

I wouldn't recommend doing that: it could lead to execute python2 code with
python3, but many python2 scripts cannot be run with python3. I'm not sure
what to do with harfbuzz, but I guess Python2 should be in optional deps (to
run tests). In any case, the link above should be only temporary for running
harfbuz tests. Another possibility is to issue:
---
find . -name \*.py | xargs sed -i 's/env python/&3/'
---

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to