Torsten:
Thanks for the comments:
These are equivalent. I was not aware of the second form:
mint14@vb-mint14-64:~$ echo $SHELL
/bin/bash
mint14@vb-mint14-64:~$ echo
`/home/mint14/Apps/epics/base-3.14.12.3/startup/EpicsHostArch`
linux-x86_64
mint14@vb-mint14-64:~$ echo
$(/home/mint14/Apps/epics/base-3.14.12.3/startup/EpicsHostArch)
linux-x86_64
You are correct. The correct /bin/ delimiters to use are braces to
ensure environment variables fare expanded properly. As in:
mint14@vb-mint14-64:~$ echo $EPICS_ROOT
/usr/local/epics
mint14@vb-mint14-64:~$ echo $(EPICS_ROOT)
EPICS_ROOT: command not found
mint14@vb-mint14-64:~$ echo ${EPICS_ROOT}
/usr/local/epics
I'll make these changes.
Thanks,
Pete
On 3/17/2014 1:48 AM, Torsten Bögershausen wrote:
On 2/19/14 7:24 PM, Pete Jemian wrote:
I've just published a how_I_did_it for the Raspberry Pi
http://prjemian.github.io/epicspi/
Thanks for the pointer, I'm working on a script to do all
this automagically (tm), but it is not ready yet.
I post it here later.
However, some of the parentheses for the (~/.bash_aliases) are wrong:
#In shell language, $(/usr/local/epics/startup/EpicsHostArch) does the same
#as `/usr/local/epics/startup/EpicsHostArch`
export EPICS_ROOT=/usr/local/epics
export EPICS_BASE=$(EPICS_ROOT)/base
^ ^
export EPICS_HOST_ARCH=`$(EPICS_BASE)/startup/EpicsHostArch`
^ ^
export EPICS_BASE_BIN=$(EPICS_BASE)/bin/$(EPICS_HOST_ARCH)
^ ^ ^ ^
export EPICS_BASE_LIB=$(EPICS_BASE)/lib/$(EPICS_HOST_ARCH)
^ ^ ^ ^
export LD_LIBRARY_PATH=$(EPICS_BASE_LIB):
^ ^ ^^^^^
#Here we loose the old LD_LIBRARY_PATH, could the whole line could be
written as
export LD_LIBRARY_PATH=$EPICS_BASE_LIB:$LD_LIBRARY_PATH
export PATH=$(PATH):$(EPICS_BASE_BIN)
^ ^ ^ ^
--
----------------------------------------------------------
Pete R. Jemian, Ph.D. <[email protected]>
Beam line Controls and Data Acquisition, Group Leader
Advanced Photon Source, Argonne National Laboratory
Argonne, IL 60439 630 - 252 - 3189
-----------------------------------------------------------
Education is the one thing for which people
are willing to pay yet not receive.
-----------------------------------------------------------
- Replies:
- Re: Installing EPICS on the Raspberry Pi Pete Jemian
- References:
- Installing EPICS on the Raspberry Pi Pete Jemian
- Navigate by Date:
- Prev:
Re: Recommended practice for cvtRecord chain initialization Benjamin Franksen
- Next:
Re: Installing EPICS on the Raspberry Pi Pete Jemian
- 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
- Navigate by Thread:
- Prev:
RE: Installing EPICS on the Raspberry Pi Emmanuel Mayssat
- Next:
Re: Installing EPICS on the Raspberry Pi Pete Jemian
- 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
|