[Interest] Forcing version of python when building on CentOS6, also, versions for flex and bison
Thiago Macieira
thiago.macieira at intel.com
Fri Feb 13 05:47:23 CET 2015
On Thursday 12 February 2015 20:30:45 Simon Matthews wrote:
> In my quest to build Qt5 with WebKit on CentOS5, I have come across
> another problem. As stated, the build requires python 2.6 or later. The
> default version of Python on CentOS 5 is 2.4. There is a Python26 package
> available and I have installed this.
>
> The python26 package installs the executable into /usr/bin/python26. How
> do I make the build process use this? I have tried aliasing: alias
> python=python26
> however, the build still seems to use python 2.4 (/usr/bin/python). There
> doesn't seem to be a configuration option to set the python binary.
Alias doesn't apply to the search paths. Try creating a dir with a symlink
python -> /usr/bin/python26 and set that in PATH before /usr/bin.
Though that might not be enough, as several scripts search directly for
/usr/bin/python. You may have to change your default system-wide.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list