Changes between Version 3 and Version 4 of epics/bbb/debian


Ignore:
Timestamp:
06/21/17 10:18:33 (8 years ago)
Author:
Tetsuya Michikawa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • epics/bbb/debian

    v3 v4  
    11= !BeagleBone Black(Debian8.7)にEPICSをインストール =
    22
    3 以前、BeagleBone Black(以降、BBB)でcapeを作った時には、defaultOSがAngtromLinuxだったが、BBBがRev.CになってからはDebianがdefaultOSになっている。[[br]]
     3以前、!BeagleBone Black(以降、BBB)でcapeを作った時には、defaultOSがAngstromLinuxだったが、BBBがRev.CになってからはDebianがdefaultOSになっている。[[br]]
    44しばらく、BBBを使う用事がなかったので放置していたが、簡易版の電圧測定をするためのEPICS IOCデバイスを作ることになったので、この際にBBB用のEPICS環境作成をしてみた。[[br]]
    55
     
    122122
    123123
    124 
    125 
    126 
    127 
    128 
    129 
     124== extensions ==
     125
     126extensionsのconfig fileをダウンロードして展開。
     127
     128{{{
     129root@beaglebone:/opt/epics/R315.5# cd src/
     130root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/extensions/extensionsTop_20120904.tar.gz
     131root@beaglebone:/opt/epics/R315.5/src# cd ..
     132root@beaglebone:/opt/epics/R315.5# tar zxvf src/extensionsTop_20120904.tar.gz
     133}}}
     134
     135
     136=== procServ ===
     137
     138procServはなんか新しくなったみたい。githubに入っていたので、masterのzipを取得。
     139
     140{{{
     141root@beaglebone:/opt/epics/R315.5/extensions# cd src/
     142root@beaglebone:/opt/epics/R315.5/extensions/src# wget https://github.com/ralphlange/procServ/archive/master.zip
     143
     144              :
     1452017-06-21 00:16:04 (337 KB/s) - ‘master.zip’ saved [76417]
     146
     147root@beaglebone:/opt/epics/R315.5/extensions/src# mv master.zip procServ.zip
     148root@beaglebone:/opt/epics/R315.5/extensions/src# unzip procServ.zip
     149}}}
     150
     151展開したソースをmake。
     152
     153{{{
     154
     155root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make
     156Cleaning autotools debris
     157rm -f configure aclocal.m4 Makefile.in Makefile.Automake.in;
     158autoreconf -si
     159configure.ac:32: installing 'build-aux/compile'
     160configure.ac:14: installing 'build-aux/config.guess'
     161configure.ac:14: installing 'build-aux/config.sub'
     162configure.ac:15: installing 'build-aux/install-sh'
     163configure.ac:15: installing 'build-aux/missing'
     164Makefile.am: installing 'build-aux/depcomp'
     165root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls
     166acceptFactory.cc  build-aux         connectionItem.cc  libtelnet.c        Makefile.in        procServ.h
     167aclocal.m4        ChangeLog         COPYING            libtelnet.h        NEWS               procServ.spec
     168appveyor.yml      clientFactory.cc  debian             makefile           processClass.h     procServ.txt
     169AUTHORS           configure         forkpty.c          Makefile.am        processFactory.cc  README.md
     170autom4te.cache    configure.ac      INSTALL            Makefile.Epics.in  procServ.cc
     171root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure
     172
     173     :
     174
     175configure: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it
     176}}}
     177
     178configureでエラーになる。gitHubのREADMEに、asciidocとlibtelnetに依存関係があるというので、asciidocのパッケージをaptで検索。[[br]]
     179
     180{{{
     181root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search asciidoc
     182asciidoc - Highly configurable text format for writing documentation
     183asciidoctor - AsciiDoc to HTML rendering for Ruby
     184asciidoctor-doc - AsciiDoc to HTML rendering for Ruby (documentation)
     185root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install asciidoc
     186Reading package lists... Done
     187Building dependency tree
     188Reading state information... Done
     189The following extra packages will be installed:
     190  dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex
     191  libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl
     192  libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl
     193  libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl
     194  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
     195  libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6
     196  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl
     197  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2
     198  libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1
     199  libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl
     200  libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
     201  libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur
     202  openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby
     203  ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive
     204  texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils
     205  texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
     206  texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
     207  texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks
     208  texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip
     209Suggested packages:
     210  source-highlight vim-addon-manager docbook graphicsmagick-imagemagick-compat imagemagick latex-cjk-all
     211  opensp pdf-viewer texlive-lang-all texlive-lang-cyrillic texlive-xetex transfig docbook-dsssl-doc
     212  docbook-defguide dbtoepub docbook-xsl-doc-html docbook-xsl-doc-pdf docbook-xsl-doc-text docbook-xsl-doc
     213  docbook-xsl-saxon fop libsaxon-java libxalan2-java libxslthl-java xalan nas libdigest-hmac-perl
     214  libgssapi-perl libdata-dump-perl libcrypt-ssleay-perl qt4-qtconfig sgmls-doc libauthen-ntlm-perl
     215  libunicode-map8-perl libunicode-string-perl xml-twig-tools doc-base python-apt-dbg python-gtk2
     216  python-vte python-apt-doc ri ruby-dev bundler sgml-base-doc perlsgml w3-recs tcl-tclreadline perl-tk
     217  latexdiff latexmk dvidvi fragmaster lacheck purifyeps xindy chktex dvipng psutils t1utils
     218  python-pygments libtcltk-ruby dot2tex gvfs-bin xmltex xfonts-cyrillic
     219Recommended packages:
     220  wish
     221The following NEW packages will be installed:
     222  asciidoc dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex
     223  libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl
     224  libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl
     225  libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl
     226  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
     227  libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6
     228  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl
     229  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2
     230  libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1
     231  libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl
     232  libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl
     233  libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur
     234  openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby
     235  ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive
     236  texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils
     237  texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
     238  texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended
     239  texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks
     240  texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip
     2410 upgraded, 125 newly installed, 0 to remove and 0 not upgraded.
     242Need to get 760 MB of archives.
     243After this operation, 1,251 MB of additional disk space will be used.
     244}}}
     245
     246ディスク容量を食いそうなのでパス。次にlibtelnet。
     247
     248{{{
     249root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search libtelnet
     250libtelnet-dev - Small library for parsing the TELNET protocol - development files
     251libtelnet-utils - Small library for parsing the TELNET protocol - utilities
     252libtelnet2 - Small library for parsing the TELNET protocol - shared library
     253root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install libtelnet-dev
     254Reading package lists... Done
     255Building dependency tree
     256Reading state information... Done
     257The following extra packages will be installed:
     258  libtelnet2
     259Suggested packages:
     260  libtelnet-utils telnet
     261The following NEW packages will be installed:
     262  libtelnet-dev libtelnet2
     2630 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
     264Need to get 44.0 kB of archives.
     265After this operation, 145 kB of additional disk space will be used.
     266Do you want to continue? [Y/n]
     267         :
     268}}}
     269
     270libtelnetは問題ないのでインストールした。[[br]]
     271本体のコンパイル。[[br]]
     272gitHubのREADMEに{{{Building with the EPICS Build System}}}とあるので、{{{--with-epics-top}}}オプションを設定する。[[br]]
     273docは必要ないのでdisable。
     274
     275{{{
     276root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure --with-epics-top=../.. --disable-doc
     277root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make
     278
     279            :
     280
     281root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make install
     282
     283            :
     284
     285root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls -la /opt/epics/R315.5/extensions/bin/linux-arm
     286total 248
     287drwxr-xr-x 2 root root   4096 Jun 21 00:44 .
     288drwxr-xr-x 3 root root   4096 Jun 21 00:44 ..
     289-r-xr-xr-x 1 root root 243604 Jun 21 00:44 procServ
     290}}}
     291