BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Quick question regarding Linux interpreter.
- Subject: [Discuss] Quick question regarding Linux interpreter.
- From: gaf at blu.org (Jerry Feldman)
- Date: Thu, 27 Mar 2014 14:08:08 -0400
I have a number of Python scripts that need Python 2.6.2 on RHEL 5. So, I point the script to a version of Python I have installed on our company's server, something like: #!/mnts/tools/<path to python 2.6.2> This works well on the RHEL 5.10 systems, but not on RHEL 6.5 We fail on RHEL 6.5 because Python is looking for libtk8.4.so but libtk8.5 is installed on RHEL 6.5 Also, Python 2.4 is installed on RHEL 5. The issue is that we are importing tkinter that is not installed on the /mnts/tools. I could use #!/usr/bin/env python But I can't count on the proper python variable in a user's environment. Or I can just have a short BASH script that tests which version of RHEL I am on and just runs python, but that is not elegant -- Jerry Feldman <gaf at blu.org> Boston Linux and Unix PGP key id:3BC1EB90 PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
- Follow-Ups:
- [Discuss] Quick question regarding Linux interpreter.
- From: abreauj at gmail.com (John Abreau)
- [Discuss] Quick question regarding Linux interpreter.
- From: nuno at aeminium.org (Nuno Sucena Almeida)
- [Discuss] Quick question regarding Linux interpreter.
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Quick question regarding Linux interpreter.
- Prev by Date: [Discuss] Reading Linux book
- Next by Date: [Discuss] Quick question regarding Linux interpreter.
- Previous by thread: [Discuss] free crm for nonprofits
- Next by thread: [Discuss] Quick question regarding Linux interpreter.
- Index(es):