EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [building EPICS in RHEL-5 64bit] environment variables
From: Alan Greer <[email protected]>
To: Pavel Masloff <[email protected]>
Cc: [email protected]
Date: Thu, 08 Dec 2011 11:40:32 +0000
Pavel,

I just noticed you are building for 64 bit so you don't want EPICS_HOST_ARCH=linux-x86 you probably want
EPICS_HOST_ARCH=linux-x86_64

Sorry about that.



Alan Greer wrote:
OK, then to install base I would do something like the following:

Setup a BASE location export

export BASE=/path/to/base

(Be warned I use "rm -rf" in places below as I have lifted this from a script. This is a recursive forced remove and could potentially delete many files). The lines below basically unpack the source code into two subdirectories base and extensions. I would set BASE to something like

export BASE=~/applications/epics/R3-14-12-1

Then enter the following lines (or run from a script)

 rm -rf $BASE/base
 cp ./baseR3.14.12.1.tar.gz $BASE/baseR3.14.12.1.tar.gz
 gunzip $BASE/baseR3.14.12.1.tar.gz
 tar -xvf $BASE/baseR3.14.12.1.tar -C $BASE
 rm -f $BASE/baseR3.14.12.1.tar
 mv $BASE/base-3.14.12.1 $BASE/base
  # Unpack the extensions sources
 cp ./extensionsTop_20070703.tar.gz $BASE/extensionsTop_20070703.tar.gz
 gunzip $BASE/extensionsTop_20070703.tar.gz
 tar -xvf $BASE/extensionsTop_20070703.tar -C $BASE
 rm -f $BASE/extensionsTop_20070703.tar
 # Update the EXTENSION_MSI link in the Makefile
sed "s/^EXTENSION_MSI.*/EXTENSION_MSI = msi1-5/" $BASE/extensions/src/Makefile > Makefile.tmp
 mv Makefile.tmp $BASE/extensions/src/Makefile
 # Unpack the msi extension sources
 cp ./msi1-5.tar.gz $BASE/extensions/src/msi1-5.tar.gz
 gunzip $BASE/extensions/src/msi1-5.tar.gz
 tar -xvf $BASE/extensions/src/msi1-5.tar -C $BASE/extensions/src
 rm $BASE/extensions/src/msi1-5.tar

The files I used above are
baseR3.14.12.1.tar.gz
extensionsTop_20070703.tar.gz
msi1-5.tar.gz

Then...

# Export the required variables
export EPICS_BASE=$BASE/base
export EPICS_HOST_ARCH=linux-x86
export PATH=$PATH:$EPICS_BASE/bin/linux-x86
export PATH=$PATH:$EPICS_BASE/../extensions/bin/linux-x86

 cd $BASE/base
 make
 make install
 cd $BASE/extensions
 make
 make install


I'm sure there are better instructions in the many manuals and tutorials that exist for EPICS.


Pavel Masloff wrote:
Thanks, I'd figured this already :))


On Thu, Dec 8, 2011 at 1:19 PM, Alan Greer <[email protected] <mailto:[email protected]>> wrote:

    [ajg@osllx10 ~]$ export PATH=/temp/path
    [ajg@osllx10 ~]$ echo $PATH
    /temp/path
    [ajg@osllx10 ~]$
    [ajg@osllx10 ~]$ export EPICS_HOST_ARCH=linux-x86
    [ajg@osllx10 ~]$ echo $EPICS_HOST_ARCH
    linux-x86
    [ajg@osllx10 ~]$



    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.

        --         Sincerely,

        Pavel Maslov, MSc
        R&D Institute for Electro-Physical Apparatus


        Mobile: +7 (951) 672 22 19
        Phone: +7 (812) 461 01 01





--
Sincerely,

Pavel Maslov, MSc
R&D Institute for Electro-Physical Apparatus


Mobile: +7 (951) 672 22 19
Phone: +7 (812) 461 01 01


Replies:
Re: [building EPICS in RHEL-5 64bit] environment variables Pavel Masloff
References:
[building EPICS in RHEL-5 64bit] environment variables Pavel Masloff
Re: [building EPICS in RHEL-5 64bit] environment variables Alan Greer
Re: [building EPICS in RHEL-5 64bit] environment variables Pavel Masloff
Re: [building EPICS in RHEL-5 64bit] environment variables Alan Greer

Navigate by Date:
Prev: Re: [building EPICS in RHEL-5 64bit] environment variables Alan Greer
Next: Re: [building EPICS in RHEL-5 64bit] environment variables Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [building EPICS in RHEL-5 64bit] environment variables Alan Greer
Next: Re: [building EPICS in RHEL-5 64bit] environment variables Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·