Difference between revisions of "Installing EPCIS base"

From GlueXWiki
Jump to: navigation, search
(Instructions How to Install EPICS Base on a standalone Linux Host)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
* Started on Ubuntu 10.04 on my 32-bit Linux notebook. I use <b>tcsh</b> as Linux shell.  
+
== Instructions How to Install EPICS Base on a standalone Linux Host ==
* Download EPICS base 3.14.11, which was thecurrent stable version", in the form of tar file "baseR3.14.11.tar.gz" from [http://www.aps.anl.gov/epics/base/R3-14/index.php  EPICS web site].
+
 
* Copy tar file into <i>/usr/local/epics</i> directory and unzip it there.MAke sure to have correct ownership of the directory.  
+
 
* Create a soft link <i>/usr/local/epics/base/</i> pointing to the directory with the newly created version of EPICS distro.
+
* Started on Ubuntu 10.04 on my 32-bit Linux notebook. I use <b>tcsh</b> as Linux shell. Certain packages can be missing on different Linux distributions and may need to installed as needed.  
* Edit <i>/usr/local/epics/base/startup/Site.cshrc</i> file and comment out the line with <b>echo $ADTHOME</b>.
+
* Download EPICS base 3.14.11, which was the current stable version", in the form of tar file "baseR3.14.11.tar.gz" from [http://www.aps.anl.gov/epics/base/R3-14/index.php  EPICS web site].
* Check the <i>/usr/local/epics/base/startup/EpicsHostArch.pl</i> script return the correct architecture.
+
* Copy tar file into <i>/usr/local/epics</i> directory and unzip it there.Make sure to have correct ownership of the directory.  
 +
* Create a soft link <i>/usr/local/epics/base/</i> pointing to the directory with the newly created version of EPICS distribution.
 +
* Edit <i>/usr/local/epics/base/startup/Site.cshrc</i> file and comment out the line with <b>echo $ADTHOME</b>. Also it is better to change the definition of <i>EPICS_BASE</i> variable to environmental variable <b>setenv EPICS_BASE /usr/local/epics/base</b>.
 +
** If you are changing the location of <i>EPICS_BASE</i> then do not forget to change the location of <i>EPICS_EXTENSIONS</i> in that file.
 +
* Check that the <i>/usr/local/epics/base/startup/EpicsHostArch.pl</i> script returns the correct architecture for the computer system you are installing EPICS on..
 
* Source the EPICS base setup script <i>/usr/local/epics/base/startup/Site.cshrc</i>  
 
* Source the EPICS base setup script <i>/usr/local/epics/base/startup/Site.cshrc</i>  
 
* <i>cd $EPICS_BASE </i>
 
* <i>cd $EPICS_BASE </i>
 
* <i>make </i>
 
* <i>make </i>
 +
* This will install the main libraries and executables of EPICS. You will need to add the EPICS base bin directory to the <b>PATH</b> environment variable to use EPICS: <i>setenv PATH "$PATH"":$EPICS_BASE/bin/linux-x86:"</i>
 +
* At this point you should be able to  build application to be run on the host where you built Base or compatible systems. You probably will not have anything to be run on a different platforms, like VxWorks etc.
 +
* In order to be able to work with NCSL SNMP EPICS driver I had to modify <i>src/dbStatic/dbStaticLib.c</i> to increase the length of the links from 80 to 256. This was done following the recommendation by John Priller who provided me with the driver from NCSL. Seems to work.

Latest revision as of 20:27, 13 October 2011

Instructions How to Install EPICS Base on a standalone Linux Host

  • Started on Ubuntu 10.04 on my 32-bit Linux notebook. I use tcsh as Linux shell. Certain packages can be missing on different Linux distributions and may need to installed as needed.
  • Download EPICS base 3.14.11, which was the current stable version", in the form of tar file "baseR3.14.11.tar.gz" from EPICS web site.
  • Copy tar file into /usr/local/epics directory and unzip it there.Make sure to have correct ownership of the directory.
  • Create a soft link /usr/local/epics/base/ pointing to the directory with the newly created version of EPICS distribution.
  • Edit /usr/local/epics/base/startup/Site.cshrc file and comment out the line with echo $ADTHOME. Also it is better to change the definition of EPICS_BASE variable to environmental variable setenv EPICS_BASE /usr/local/epics/base.
    • If you are changing the location of EPICS_BASE then do not forget to change the location of EPICS_EXTENSIONS in that file.
  • Check that the /usr/local/epics/base/startup/EpicsHostArch.pl script returns the correct architecture for the computer system you are installing EPICS on..
  • Source the EPICS base setup script /usr/local/epics/base/startup/Site.cshrc
  • cd $EPICS_BASE
  • make
  • This will install the main libraries and executables of EPICS. You will need to add the EPICS base bin directory to the PATH environment variable to use EPICS: setenv PATH "$PATH"":$EPICS_BASE/bin/linux-x86:"
  • At this point you should be able to build application to be run on the host where you built Base or compatible systems. You probably will not have anything to be run on a different platforms, like VxWorks etc.
  • In order to be able to work with NCSL SNMP EPICS driver I had to modify src/dbStatic/dbStaticLib.c to increase the length of the links from 80 to 256. This was done following the recommendation by John Priller who provided me with the driver from NCSL. Seems to work.