1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 <2011> 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 <2011> 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: [building EPICS in RHEL-5 64bit] environment variables |
From: | Pavel Masloff <[email protected]> |
To: | Miroslav Mihaylov <[email protected]>, [email protected] |
Date: | Thu, 8 Dec 2011 23:41:07 +0300 |
Hello.
I am new to epics as well but maybe I can save you some of the troubles I went
trough during the installation on linux .
These are my personal notes for the EPICS installation.
http://miro.phy.uic.edu/index.php?option=com_content&view=article&id=52&Itemid=83&lang=en
In general for linux you need to setup the EPICS environment variables.
One way of doing that is via the file ~/.bashrc
Here is the content of my bashrc file.
------------------------------------------------------------------
EPICS_HOST_ARCH=linux-x86_64
EPICS_BASE$HOME/EPICS/BASE
EPICS_DISPLAY_PATH=$HOME/EPICS/synApps/support/all_adl/
LD_LIBRARY_PATH=$HOME/EPICS/BASE/lib/linux-x86_64
PATH=$PATH:$HOME/bin:$HOME/EPICS/BASE/bin/linux-x86_64:
$HOME/EPICS/extensions/bin/linux-x86_64/:/usr/local/bin
I could help you with the epics installation for the redhat.
export EPICS_HOST_ARCH
export EPICS_BASE
export PATH
export EPICS_DISPLAY_PATH
export LD_LIBRARY_PATH
------------------------------------------------
For BASE you will need those packages.
yum install perl-devel readline-devel gcc-c++
Also for RedHat 5 you need to use the ncurses instead of the readline libraly.
So in the file
~/EPICS/BASE/configure/os/CONFIG_SITE.Common.linux-x86 or
CONFIG_SITE.Common.linux-x86_64
comment the line refering to readline and uncoment the ncurses.
--------------------------------------------------------------------------------
# No other libraries needed (recent Fedora, Ubuntu etc.):
#COMMANDLINE_LIBRARY = READLINE
# Needs -lncurses (RHEL 5 etc.):
COMMANDLINE_LIBRARY = READLINE_NCURSES
--------------------------------------------------------------------------------
Don't forget to run
make clean
before
make install
Also don't forget that the changes made to bashrc do not take in effect until
the next login.
Let me know if this worked for you.
Miroslav
Miroslav Mihaylov
On Thursday 08 December 2011 04:02:08 Pavel Masloff wrote:
> Hello everyone!
>
> How can I set the environment variables (PATH and EPICS_HOST_ARCH) in
> RHEL-5 64 bit?
> I ran the EpicsHostArch.pl script (>> perl EpicsHostArch.pl), but this
> script only returns the variable, doesn't set anything. I check by running
> "dev" in the command line.
>
> And generally, what should one do to install the epics base from scratch on
> a linux machine?
> Thanks.
>
>
> Pavel.
--
University of Illinois at Chicago
Department of Physics
2336 SES
845 W. Taylor St. M/C 273
Chicago, IL 60607
312 355 0225