alex lupu wrote:
On my 32-bit BLFS system, I was building 'glib-2.48.0' (the latest).
It failed on 'make'.  I had run 'configure' WITHOUT the suggested
  --with-python=/usr/bin/python3
(served me right!  Or did it?)

In '/usr/bin' I had:

   python2 -> python2.7
  python -> python2
  10307 bytes, python2.7 (Python 2.7.11 - the latest)

and

  python3 -> python3.5
12566 bytes, python3.5 (Python 3.5.1 - the latest).

No big deal;  I pointed 'python' to Python 3, i.e.,
  python -> python3

and 'make' worked fine (as expected?) this time.
However, all this got me thinking:

QUESTION
What is the recommended Python configuration in '/usr/bin' ?

I use:

$ ls /usr/bin/pyth* -l
lrwxrwxrwx 1 root root     7 Mar 26 18:38 /usr/bin/python -> python2
lrwxrwxrwx 1 root root 14 Mar 26 18:38 /usr/bin/python-config -> python2-config
lrwxrwxrwx 1 root root     9 Mar 26 18:38 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 16 Mar 26 18:38 /usr/bin/python2-config -> python2.7-config
-rwxr-xr-x 1 root root 10392 Mar 26 18:38 /usr/bin/python2.7
-rwxr-xr-x 1 root root  1681 Mar 26 18:38 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root     9 Feb 23 15:03 /usr/bin/python3 -> python3.5
lrwxrwxrwx 1 root root 16 Feb 23 15:03 /usr/bin/python3-config -> python3.5-config
-rwxr-xr-x 2 root root 13960 Feb 23 15:03 /usr/bin/python3.5
lrwxrwxrwx 1 root root 17 Feb 23 15:03 /usr/bin/python3.5-config -> python3.5m-config
-rwxr-xr-x 2 root root 13960 Feb 23 15:03 /usr/bin/python3.5m
-rwxr-xr-x 1 root root  3085 Feb 23 15:03 /usr/bin/python3.5m-config

This makes python2 the default, but you are free to change the python and python-config symlinks.

  -- Bruce


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

Reply via email to