...
Add the new Python instance to your environment:
Code Block language bash theme Confluence export PYTHON_ROOT=${LCLS_ROOT}/package/python/python2.7.13/linux-x86_64
Add the new Python binaries to the PATH environment variable:
Code Block language bash theme Confluence export PATH=${QT_HOME}/bin:${ORACLE_HOME}/bin:${PYTHON_ROOT}/bin:${PATH}
Add the new Python libraries and their dependencies (EPICS 64-bit, Matlab, etc.) to the LD_LIBRARY_PATH environment variable. This is to ensure that the new 64-bit versions of Python modules built against those dependencies will work:
Code Block language bash theme Confluence export LD_LIBRARY_PATH=${LCLS_ROOT}/matlab/2016b/extern/lib:${EPICS_BASE_RELEASE}/lib/linux-x86_64: ${EPICS_EXTENSIONS}/lib/linux-x86_64:${EPICS_BASE_TOP}/base-cpp-R4-6-0/lib/linux-x86_64:${PYTHON_ROOT}/lib:${PYTHON_ROOT}/build/Python2.7.13/Lib:${LD_LIBRARY_PATH}
Clear the PYTHONPATH environment variable. This is to ensure that there are no false positives when testing applications, since PYTHONPATH may still have access to older versions of Python modules:
Code Block language bash theme Confluence export PYTHONPATH=
[Optional] If your application(s) import the "cx_Oracle" module, add/change the following in your environment:
Code Block language bash theme Confluence export PATH=${ORACLE_HOME}/bin:${PATH} export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}
[Optional] If your application(s) import "PyQt", "PyQwt", or any other Python modules that depend on Qt, add/change the following in your environment:
Code Block language bash theme Confluence export QT_HOME=${LCLS_ROOT}/package/Qt/Qt-4.8.6/linux-x86_64 export PATH=${QT_HOME}/bin:${PATH} export LD_LIBRARY_PATH=${QT_HOME}/lib:${LD_LIBRARY_PATH}
...
- Add the previous Python instance (Python 2.7.4 32-bit) to your environment:
Code Block language bash theme Confluence export PYTHON_ROOT=${LCLS_ROOT}/package/python/python2.7.4
Add the previous Python binaries to your environment:
Code Block language bash theme Confluence export PATH=${PYTHON_ROOT}/bin:${PATH}
Add the old Python libraries and their dependencies to your environment:
Code Block language bash theme Confluence export LD_LIBRARY_PATH=${PYTHON_ROOT}/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${PYTHON_ROOT}/lib/python2.7/lib-dynload:${LD_LIBRARY_PATH}
[Optional]
$ORACLE_HOME
exportIf your application(s) import the "cx_Oracle" module, add/change the following in your environment:
Code Block language bash theme Confluence export ORACLE_HOME=package/oracle/product/11.1.0.6/client
export PATH=${ORACLE_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}
- [Optional] $QT_HOME
- [Optional] Matlab
...