| | 1 | = EPICS インストール詳細 = |
| | 2 | |
| | 3 | == EPICS base R3.15.5 == |
| | 4 | |
| | 5 | 使用するEPICS baseは安定版の最新である[http://www.aps.anl.gov/epics/base/R3-15/5.php 3.15.5]。[[br]] |
| | 6 | 前回作成した時はR3.14.12.3で、その時からmake一発でコンパイルできたので今回も同じ。[[br]] |
| | 7 | これを実行する前に、libreadline6-devをインストールしておかないと、IOCを作成時にiocshの履歴機能が使えなくなるので、あらかじめ入れておいたほうがいい。 |
| | 8 | |
| | 9 | {{{ |
| | 10 | root@beaglebone:~# apt-get install libreadline6-dev |
| | 11 | }}} |
| | 12 | |
| | 13 | |
| | 14 | {{{ |
| | 15 | root@beaglebone:~# cd /opt/epics |
| | 16 | root@beaglebone:/opt/epics# mkdir -p R315.5/src |
| | 17 | root@beaglebone:/opt/epics# cd R315.5/src |
| | 18 | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/base/base-3.15.5.tar.gz |
| | 19 | root@beaglebone:/opt/epics/R315.5/src# cd .. |
| | 20 | root@beaglebone:/opt/epics/R315.5# tar zxvf base-3.15.5.tar.gz |
| | 21 | root@beaglebone:/opt/epics/R315.5# mv base-3.15.5 base |
| | 22 | root@beaglebone:/opt/epics/R315.5# cd base |
| | 23 | root@beaglebone:/opt/epics/R315.5/base# make |
| | 24 | }}} |
| | 25 | |
| | 26 | == modules/soft == |
| | 27 | |
| | 28 | 次によく使うmodulesをインストール。 |
| | 29 | |
| | 30 | {{{ |
| | 31 | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft |
| | 32 | }}} |
| | 33 | |
| | 34 | === sequencer === |
| | 35 | |
| | 36 | インストール前にパッケージをインストール。 |
| | 37 | |
| | 38 | {{{ |
| | 39 | root@beaglebone:/opt/epics/R315.5# apt-get install re2c |
| | 40 | }}} |
| | 41 | |
| | 42 | 展開してmake。 |
| | 43 | |
| | 44 | {{{ |
| | 45 | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/seq |
| | 46 | root@beaglebone:/opt/epics/R315.5# cd src |
| | 47 | root@beaglebone:/opt/epics/R315.5/src# wget http://www-csr.bessy.de/control/SoftDist/sequencer/releases/seq-2.2.4.tar.gz |
| | 48 | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/seq |
| | 49 | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# tar zxvf /opt/epics/R315.5/src/seq-2.2.4.tar.gz |
| | 50 | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# mv seq-2.2.4 2.2.4 |
| | 51 | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# cd 2.2.4/ |
| | 52 | root@beaglebone:/opt/epics/R315.5/modules/soft/seq/2.2.4# emacs -nw configure/RELEASE |
| | 53 | |
| | 54 | EPICS_BASE=/opt/epics/R315.5/base |
| | 55 | |
| | 56 | root@beaglebone:/opt/epics/R315.5/modules/soft/seq/2.2.4# make |
| | 57 | }}} |
| | 58 | |
| | 59 | === asyn === |
| | 60 | |
| | 61 | asynも普通にmakeできる。 |
| | 62 | |
| | 63 | {{{ |
| | 64 | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/asyn |
| | 65 | root@beaglebone:/opt/epics/R315.5# cd src |
| | 66 | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/modules/asyn4-31.tar.gz |
| | 67 | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/asyn |
| | 68 | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# tar zxvf /opt/epics/R315.5/src/asyn4-31.tar.gz |
| | 69 | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# mv asyn4-31 4-31 |
| | 70 | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# cd 4-31/ |
| | 71 | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn/4-31# emacs -nw configure/RELEASE |
| | 72 | |
| | 73 | #RELEASE Location of external products |
| | 74 | |
| | 75 | #SUPPORT=/corvette/home/epics/devel |
| | 76 | #-include $(TOP)/../configure/SUPPORT.$(EPICS_HOST_ARCH) |
| | 77 | |
| | 78 | # IPAC is only necessary if support for Greensprings IP488 is required |
| | 79 | # IPAC release V2-7 or later is required. |
| | 80 | #IPAC=$(SUPPORT)/ipac-2-14 |
| | 81 | |
| | 82 | # SEQ is required for testIPServer |
| | 83 | #SNCSEQ=$(SUPPORT)/seq-2-2-4 |
| | 84 | SNCSEQ=$(EPICS_BASE)/../modules/soft/seq/2.2.4/ |
| | 85 | |
| | 86 | # EPICS_BASE 3.14.6 or later is required |
| | 87 | #EPICS_BASE=/corvette/usr/local/epics-devel/base-3.15.5 |
| | 88 | EPICS_BASE=/opt/epics/R315.5/base |
| | 89 | -include $(TOP)/../configure/EPICS_BASE.$(EPICS_HOST_ARCH) |
| | 90 | |
| | 91 | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn/4-31# make |
| | 92 | }}} |
| | 93 | |
| | 94 | === streamdevice === |
| | 95 | |
| | 96 | streamdeviceも同じ。[[br]] |
| | 97 | 但し、streamdeviceはgitHubに入っているので、masterをダウンロード。 |
| | 98 | |
| | 99 | {{{ |
| | 100 | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/stream |
| | 101 | root@beaglebone:/opt/epics/R315.5# cd src |
| | 102 | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/paulscherrerinstitute/StreamDevice/archive/master.zip |
| | 103 | root@beaglebone:/opt/epics/R315.5/src# mv master.zip streamdevice.zip |
| | 104 | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/stream |
| | 105 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# unzip ../../../src/streamdevice.zip |
| | 106 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# mv StreamDevice-master 2.7.7 |
| | 107 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7/ |
| | 108 | |
| | 109 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# export PATH=/opt/epics/R315.5/base/bin/linux-arm:$PATH |
| | 110 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# makeBaseApp.pl -t support |
| | 111 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# emacs -nw configure/RELEASE |
| | 112 | |
| | 113 | SNCSEQ = $(EPICS_BASE)/../modules/soft/seq/2.2.4/ |
| | 114 | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
| | 115 | |
| | 116 | ここで、/opt/epics/R315.5/modules/soft/stream/2.7.7以下の各ディレクトリにあるMakefileのTOPを変更。 |
| | 117 | |
| | 118 | TOP=.. -> TOP=. |
| | 119 | TOP=../.. -> TOP=./.. |
| | 120 | |
| | 121 | |
| | 122 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# make |
| | 123 | }}} |
| | 124 | |
| | 125 | |
| | 126 | == modules/instruments == |
| | 127 | |
| | 128 | BBBのIOを使うために専用(?)のmoduleをmakeする。[[br]] |
| | 129 | 展開するディレクトリを作成。 |
| | 130 | |
| | 131 | {{{ |
| | 132 | root@beaglebone:/opt/epics/R315.5/modules# mkdir -p instruments/bbb |
| | 133 | }}} |
| | 134 | |
| | 135 | === devgpio === |
| | 136 | |
| | 137 | GPIOを使うためのドライバサポート。[[br]] |
| | 138 | gitHubからダウンロード。 |
| | 139 | |
| | 140 | {{{ |
| | 141 | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/epics-devgpio/archive/master.zip |
| | 142 | root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_devgpio.zip |
| | 143 | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb |
| | 144 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_devgpio.zip |
| | 145 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv epics-devgpio-master devgpio |
| | 146 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd devgpio |
| | 147 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# emacs -nw configure/RELEASE |
| | 148 | |
| | 149 | SNCSEQ=$(EPICS_BASE)/../modules/soft/seq/2.2.4 |
| | 150 | |
| | 151 | # EPICS_BASE usually appears last so other apps can override stuff: |
| | 152 | EPICS_BASE=/opt/epics/R315.5/base |
| | 153 | |
| | 154 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# make |
| | 155 | }}} |
| | 156 | |
| | 157 | === drvAsynI2C === |
| | 158 | |
| | 159 | 今度はI2Cを使うためのドライバサポート。[[br]] |
| | 160 | asynとstreamdeviceでI2Cが使えるようになる。[[br]] |
| | 161 | これもgitHubからダウンロード。[[br]] |
| | 162 | |
| | 163 | {{{ |
| | 164 | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/drvAsynI2C/archive/master.zip |
| | 165 | root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_asyni2c.zip |
| | 166 | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb |
| | 167 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_asyni2c.zip |
| | 168 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv drvAsynI2C-master drvAsynI2C |
| | 169 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd drvAsynI2C |
| | 170 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# emacs -nw configure/RELEASE |
| | 171 | |
| | 172 | EPICS_BASE=/opt/epics/R315.5/base |
| | 173 | ASYN=$(EPICS_BASE)/../modules/soft/asyn/4-31 |
| | 174 | |
| | 175 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# make |
| | 176 | }}} |
| | 177 | |
| | 178 | このままの状態ではstreamdeviceを使った通信ができないので、一緒に入っているパッチをStreamDeviceにあてる必要がある。[[br]] |
| | 179 | パッチを当てるstreamdeviceは 2.7.7_I2Cとして別にコンパイルしなおす。[[br]] |
| | 180 | |
| | 181 | {{{ |
| | 182 | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# cd /opt/epics/R315.5/modules/soft/stream/ |
| | 183 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cp -r 2.7.7 2.7.7_I2C |
| | 184 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7_I2C |
| | 185 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# patch -p2 < /opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C/streamDevice/0001-Added-asynI2C-interface.patch |
| | 186 | patching file src/AsynDriverInterface.cc |
| | 187 | patching file streamApp/Makefile |
| | 188 | can't find file to patch at input line 87 |
| | 189 | Perhaps you used the wrong -p or --strip option? |
| | 190 | The text leading up to this was: |
| | 191 | -------------------------- |
| | 192 | |diff --git a/configure/RELEASE b/configure/RELEASE |
| | 193 | |index bee74c1..b95de67 100644 |
| | 194 | |--- a/configure/RELEASE |
| | 195 | |+++ b/configure/RELEASE |
| | 196 | -------------------------- |
| | 197 | File to patch: ^C |
| | 198 | |
| | 199 | configure/RELEASEは自分で編集。以下の行を追加。 |
| | 200 | |
| | 201 | DRVASYNI2C=$(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C |
| | 202 | |
| | 203 | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# make clean;make |
| | 204 | |
| | 205 | }}} |
| | 206 | |
| | 207 | IOCで使うときには、configure/RELEASEに |
| | 208 | |
| | 209 | {{{ |
| | 210 | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
| | 211 | STREAM = $(EPICS_BASE)/../modules/soft/stream/2.7.7_I2C |
| | 212 | DRVASYNI2C = $(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C |
| | 213 | }}} |
| | 214 | |
| | 215 | を設定する。 |
| | 216 | |
| | 217 | |
| | 218 | == extensions == |
| | 219 | |
| | 220 | extensionsのconfig fileをダウンロードして展開。 |
| | 221 | |
| | 222 | {{{ |
| | 223 | root@beaglebone:/opt/epics/R315.5# cd src/ |
| | 224 | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/extensions/extensionsTop_20120904.tar.gz |
| | 225 | root@beaglebone:/opt/epics/R315.5/src# cd .. |
| | 226 | root@beaglebone:/opt/epics/R315.5# tar zxvf src/extensionsTop_20120904.tar.gz |
| | 227 | }}} |
| | 228 | |
| | 229 | |
| | 230 | === procServ === |
| | 231 | |
| | 232 | procServはなんか新しくなったみたい。githubに入っていたので、masterのzipを取得。 |
| | 233 | |
| | 234 | {{{ |
| | 235 | root@beaglebone:/opt/epics/R315.5/extensions# cd src/ |
| | 236 | root@beaglebone:/opt/epics/R315.5/extensions/src# wget https://github.com/ralphlange/procServ/archive/master.zip |
| | 237 | |
| | 238 | : |
| | 239 | 2017-06-21 00:16:04 (337 KB/s) - ‘master.zip’ saved [76417] |
| | 240 | |
| | 241 | root@beaglebone:/opt/epics/R315.5/extensions/src# mv master.zip procServ.zip |
| | 242 | root@beaglebone:/opt/epics/R315.5/extensions/src# unzip procServ.zip |
| | 243 | }}} |
| | 244 | |
| | 245 | 展開したソースをmake。 |
| | 246 | |
| | 247 | {{{ |
| | 248 | |
| | 249 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make |
| | 250 | Cleaning autotools debris |
| | 251 | rm -f configure aclocal.m4 Makefile.in Makefile.Automake.in; |
| | 252 | autoreconf -si |
| | 253 | configure.ac:32: installing 'build-aux/compile' |
| | 254 | configure.ac:14: installing 'build-aux/config.guess' |
| | 255 | configure.ac:14: installing 'build-aux/config.sub' |
| | 256 | configure.ac:15: installing 'build-aux/install-sh' |
| | 257 | configure.ac:15: installing 'build-aux/missing' |
| | 258 | Makefile.am: installing 'build-aux/depcomp' |
| | 259 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls |
| | 260 | acceptFactory.cc build-aux connectionItem.cc libtelnet.c Makefile.in procServ.h |
| | 261 | aclocal.m4 ChangeLog COPYING libtelnet.h NEWS procServ.spec |
| | 262 | appveyor.yml clientFactory.cc debian makefile processClass.h procServ.txt |
| | 263 | AUTHORS configure forkpty.c Makefile.am processFactory.cc README.md |
| | 264 | autom4te.cache configure.ac INSTALL Makefile.Epics.in procServ.cc |
| | 265 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure |
| | 266 | |
| | 267 | : |
| | 268 | |
| | 269 | configure: error: Documentation not found. Use --disable-doc to skip installing it, or --enable-doc to generate it |
| | 270 | }}} |
| | 271 | |
| | 272 | configureでエラーになる。gitHubのREADMEに、asciidocとlibtelnetに依存関係があるというので、asciidocのパッケージをaptで検索。[[br]] |
| | 273 | |
| | 274 | {{{ |
| | 275 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search asciidoc |
| | 276 | asciidoc - Highly configurable text format for writing documentation |
| | 277 | asciidoctor - AsciiDoc to HTML rendering for Ruby |
| | 278 | asciidoctor-doc - AsciiDoc to HTML rendering for Ruby (documentation) |
| | 279 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install asciidoc |
| | 280 | Reading package lists... Done |
| | 281 | Building dependency tree |
| | 282 | Reading state information... Done |
| | 283 | The following extra packages will be installed: |
| | 284 | dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex |
| | 285 | libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl |
| | 286 | libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl |
| | 287 | libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl |
| | 288 | libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl |
| | 289 | libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6 |
| | 290 | liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl |
| | 291 | libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2 |
| | 292 | libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1 |
| | 293 | libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl |
| | 294 | libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl |
| | 295 | libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur |
| | 296 | openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby |
| | 297 | ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive |
| | 298 | texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils |
| | 299 | texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base |
| | 300 | texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended |
| | 301 | texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks |
| | 302 | texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip |
| | 303 | Suggested packages: |
| | 304 | source-highlight vim-addon-manager docbook graphicsmagick-imagemagick-compat imagemagick latex-cjk-all |
| | 305 | opensp pdf-viewer texlive-lang-all texlive-lang-cyrillic texlive-xetex transfig docbook-dsssl-doc |
| | 306 | docbook-defguide dbtoepub docbook-xsl-doc-html docbook-xsl-doc-pdf docbook-xsl-doc-text docbook-xsl-doc |
| | 307 | docbook-xsl-saxon fop libsaxon-java libxalan2-java libxslthl-java xalan nas libdigest-hmac-perl |
| | 308 | libgssapi-perl libdata-dump-perl libcrypt-ssleay-perl qt4-qtconfig sgmls-doc libauthen-ntlm-perl |
| | 309 | libunicode-map8-perl libunicode-string-perl xml-twig-tools doc-base python-apt-dbg python-gtk2 |
| | 310 | python-vte python-apt-doc ri ruby-dev bundler sgml-base-doc perlsgml w3-recs tcl-tclreadline perl-tk |
| | 311 | latexdiff latexmk dvidvi fragmaster lacheck purifyeps xindy chktex dvipng psutils t1utils |
| | 312 | python-pygments libtcltk-ruby dot2tex gvfs-bin xmltex xfonts-cyrillic |
| | 313 | Recommended packages: |
| | 314 | wish |
| | 315 | The following NEW packages will be installed: |
| | 316 | asciidoc dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex |
| | 317 | libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl |
| | 318 | libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl |
| | 319 | libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl |
| | 320 | libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl |
| | 321 | libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6 |
| | 322 | liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl |
| | 323 | libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2 |
| | 324 | libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1 |
| | 325 | libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl |
| | 326 | libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl |
| | 327 | libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur |
| | 328 | openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby |
| | 329 | ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive |
| | 330 | texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils |
| | 331 | texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base |
| | 332 | texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended |
| | 333 | texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks |
| | 334 | texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip |
| | 335 | 0 upgraded, 125 newly installed, 0 to remove and 0 not upgraded. |
| | 336 | Need to get 760 MB of archives. |
| | 337 | After this operation, 1,251 MB of additional disk space will be used. |
| | 338 | }}} |
| | 339 | |
| | 340 | ディスク容量を食いそうなのでパス。次にlibtelnet。 |
| | 341 | |
| | 342 | {{{ |
| | 343 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search libtelnet |
| | 344 | libtelnet-dev - Small library for parsing the TELNET protocol - development files |
| | 345 | libtelnet-utils - Small library for parsing the TELNET protocol - utilities |
| | 346 | libtelnet2 - Small library for parsing the TELNET protocol - shared library |
| | 347 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install libtelnet-dev |
| | 348 | Reading package lists... Done |
| | 349 | Building dependency tree |
| | 350 | Reading state information... Done |
| | 351 | The following extra packages will be installed: |
| | 352 | libtelnet2 |
| | 353 | Suggested packages: |
| | 354 | libtelnet-utils telnet |
| | 355 | The following NEW packages will be installed: |
| | 356 | libtelnet-dev libtelnet2 |
| | 357 | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. |
| | 358 | Need to get 44.0 kB of archives. |
| | 359 | After this operation, 145 kB of additional disk space will be used. |
| | 360 | Do you want to continue? [Y/n] |
| | 361 | : |
| | 362 | }}} |
| | 363 | |
| | 364 | libtelnetは問題ないのでインストールした。[[br]] |
| | 365 | 本体のコンパイル。[[br]] |
| | 366 | gitHubのREADMEに{{{Building with the EPICS Build System}}}とあるので、{{{--with-epics-top}}}オプションを設定する。[[br]] |
| | 367 | docは必要ないのでdisable。 |
| | 368 | |
| | 369 | {{{ |
| | 370 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure --with-epics-top=../.. --disable-doc |
| | 371 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make |
| | 372 | |
| | 373 | : |
| | 374 | |
| | 375 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make install |
| | 376 | |
| | 377 | : |
| | 378 | |
| | 379 | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls -la /opt/epics/R315.5/extensions/bin/linux-arm |
| | 380 | total 248 |
| | 381 | drwxr-xr-x 2 root root 4096 Jun 21 00:44 . |
| | 382 | drwxr-xr-x 3 root root 4096 Jun 21 00:44 .. |
| | 383 | -r-xr-xr-x 1 root root 243604 Jun 21 00:44 procServ |
| | 384 | }}} |
| | 385 | |
| | 386 | |
| | 387 | == 環境変数 == |
| | 388 | |
| | 389 | 最後に、環境変数設定スクリプトを作成。 |
| | 390 | |
| | 391 | {{{ |
| | 392 | root@beaglebone:/opt/epics/R315.5# mkdir etc |
| | 393 | root@beaglebone:/opt/epics/R315.5# cd etc |
| | 394 | root@beaglebone:/opt/epics/R315.5# emacs -nw setenv_R315_5.csh |
| | 395 | |
| | 396 | setenv EPICS_HOST_ARCH linux-arm |
| | 397 | setenv EPICS_BASE /opt/epics/R315.5/base |
| | 398 | setenv EPICS_EXTENSIONS /opt/epics/R315.5/extensions |
| | 399 | |
| | 400 | #setenv EPICS_CA_ADDR_LIST |
| | 401 | |
| | 402 | setenv EPICS_CA_AUTO_ADDR_LIST NO |
| | 403 | setenv EPICS_CA_MAX_ARRAY_BYTES 1000000 |
| | 404 | |
| | 405 | set path=(${EPICS_BASE}/bin/${EPICS_HOST_ARCH} ${EPICS_EXTENSIONS}/bin/${EPICS_HOST_ARCH} $path) |
| | 406 | |
| | 407 | root@beaglebone:/opt/epics/R315.5# emacs -nw setenv_R315_5.sh |
| | 408 | |
| | 409 | export EPICS_HOST_ARCH=linux-arm |
| | 410 | export EPICS_BASE=/opt/epics/R315.5/base |
| | 411 | export EPICS_EXTENSIONS=/opt/epics/R315.5/extensions |
| | 412 | |
| | 413 | #export EPICS_CA_ADDR_LIST= |
| | 414 | |
| | 415 | export EPICS_CA_AUTO_ADDR_LIST=NO |
| | 416 | export EPICS_CA_MAX_ARRAY_BYTES=1000000 |
| | 417 | |
| | 418 | export PATH=$EPICS_BASE/bin/$EPICS_HOST_ARCH:$EPICS_EXTENSIONS/bin/$EPICS_HOST_ARCH:$PATH |
| | 419 | |
| | 420 | }}} |