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: abreauj at gmail.com (John Abreau)
- Date: Sat, 29 Mar 2014 14:28:27 -0400
- In-reply-to: <53346908.8080004@blu.org>
- References: <53346908.8080004@blu.org>
You might want to give environment-modules a try. I've been using it since 1998 whenever I needed to manage environments with multiple versions of the same tools, and it's always worked great for me. On Mar 27, 2014, at 2:08 PM, Jerry Feldman <gaf at blu.org> wrote: > 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 > > > _______________________________________________ > Discuss mailing list > Discuss at blu.org > http://lists.blu.org/mailman/listinfo/discuss
- Follow-Ups:
- [Discuss] Quick question regarding Linux interpreter.
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Quick question regarding Linux interpreter.
- References:
- [Discuss] Quick question regarding Linux interpreter.
- From: gaf at blu.org (Jerry Feldman)
- [Discuss] Quick question regarding Linux interpreter.
- Prev by Date: [Discuss] Linux file systems
- Next by Date: [Discuss] Quick question regarding Linux interpreter.
- Previous by thread: [Discuss] Quick question regarding Linux interpreter.
- Next by thread: [Discuss] Quick question regarding Linux interpreter.
- Index(es):