Differences between revisions 80 and 85 (spanning 5 versions)
Revision 80 as of 2010-01-04 11:03:20
Size: 3880
Editor: NaokoOhishi
Comment:
Revision 85 as of 2010-01-05 12:44:56
Size: 3373
Editor: NaokoOhishi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 [[http://nibot-lab.livejournal.com/91787.html|参考]]  [[http://nibot-lab.livejournal.com/91787.html|参考サイト(こちらは32bitなので注意)]]
Line 42: Line 42:
 *libc6-dev-i386
Line 44: Line 43:
 *lib32readline5-dev
 *lib32lstdc
Line 48: Line 45:
 lib32なんとかというのは、64bit serverのUbuntuに、32bit対応のライブラリを追加する必要があるからです。
 本文とはあまり関係ありませんが、sshとemacsも入れました。
 基本的にはmakeしたときにエラーが出たら適宜追加すればよいと思います。<<BR>>
 dpkg -S /usr/lib/***.soなどでパッケージ名を探すことができます。<<BR>>
 本文とはあまり関係ありませんが、sshとemacsも入れました。<<BR>>
Line 56: Line 54:
 [[http://www.aps.anl.gov/epics/download/extensions/index.php|extensionsConfigure_20040406.tar.gz]]<<BR>>  [[http://www.aps.anl.gov/epics/download/extensions/index.php|extensionsConfigure_20070703.tar.gz]]<<BR>>
Line 65: Line 63:
 $tar -zxvf medm3_1_4.tar.gz <<BR>> (medm は baseを解凍してできる$EPICS/extensions/src 以下におきます。)  $tar -zxvf medm3_1_4.tar.gz <<BR>> (medm は baseを解凍してできる/opt/epics/extensions/src 以下におきます。)
Line 69: Line 67:
 $export EPICS_HOST_ARCH=linux-x86<<BR>>  $export EPICS_HOST_ARCH=linux-x86_64<<BR>>
Line 71: Line 69:
 これは64bitの場合で、31bitの場合は参考サイトに従ってください。
Line 75: Line 75:
    incompatible errorがいろいろ出ましたが、32bit対応ライブラリの追加及びリンクの貼り直し
 /usr/lib/のlibcurses.soとlibncurses.aを/usr/lib32/のものに、
 /usr/lib/のlibstdc++.so.6を/usr/lib32/のものに
 することによって解決しました。
Line 83: Line 78:
 add the following line in $EPICS/extensions/configure/RELEASE <<BR>>
 set TOP=~/app/linux64/epics/base caution! different from reference site <<BR>>
 set EPICS_BASE=

 modify Makefile at $EPICS/extensions/src/medm3_1_4 ns <<BR>>
                    $EPICS/extensions/src <<BR>>
 TOP=

 modify $EPICS/base/configure/CONFIG

 modify printUtils/
 TOP=
Line 97: Line 79:
 $export EPICS_CA_ADDR_LIST="IP address"<<BR>>
 $export EPICS_CA_AUTO_ADDR_LIST=NO<<BR>>
 $export EPICS_CA_ADDR_LIST="10.4.7.141"<<BR>>
Line 102: Line 83:
If you find */CONFIG.Unsupported.Common No such file or directory,
when you make something, you should set EPICS_HOST_ARCH=linux-x86<<BR>>
 */CONFIG.Unsupported.Common No such file or directory,
というようなエラーが出たら、<<BR>>
$
export EPICS_HOST_ARCH=linux-x86_64<<BR>>
の設定を確認してください。

Linux setup Memo

目的

初期設定

  • Windows VISTAが入っていたsda2[7GB/15GB]を残して、 sda3をrootと4GBくらいのswapにpartitionを分け、Ubuntuを入れた。(26Nov2009)
    いろいろあって、desktop版をserver版に変更し、名前をPORTAとした。(28Dec2009)

  • primary 65.8MB fat16
  • primary 16.1GB ntfs
  • primary 480.0GB ext4 / 
  • logic 3.9GB F swap
  • apt-get install desktop-ubuntu
  • reboot
    • IP:10.4.7.142

    IPの設定にはこのページを参考にしました。他にもいろいろな方法がありそうです。

MEDMのインストール

インストールの準備

  • Synapticで
  • libxt-dev
  • libmotif-dev
  • x11proto-print-dev
  • libxmu-headers
  • libxp-dev
  • libxmu-dev
  • g++

    も入れました。

    基本的にはmakeしたときにエラーが出たら適宜追加すればよいと思います。
    dpkg -S /usr/lib/***.soなどでパッケージ名を探すことができます。
    本文とはあまり関係ありませんが、sshとemacsも入れました。

ファイルのダウンロード

解凍

  • $tar -zxvf baseR3.14.10.tar.gz
    $ln -s base3.14.11/ base
    $tar -zxvf extensionsTop_20070703.tar.gz
    $tar -zxvf extensionsConfig_20040406.tar.gz
    $tar -zxvf medm3_1_4.tar.gz
    (medm は baseを解凍してできる/opt/epics/extensions/src 以下におきます。)

環境変数の設定

  • $export EPICS_HOST_ARCH=linux-x86_64
    これは64bitの場合で、31bitの場合は参考サイトに従ってください。

compile epics

  • $cd /opt/epics/base
    $make

configure the extensions

  • $export EPICS='~/app/linux64/epics/'
    $export EPICS_CA_ADDR_LIST="10.4.7.141"

Tips

  • /CONFIG.Unsupported.Common No such file or directory,

というようなエラーが出たら、
$export EPICS_HOST_ARCH=linux-x86_64
の設定を確認してください。

dataviewerのインストール

graceのインストール

  • 関連ファイル:
  • libfftw3-3(libfftw3-doc, libfftw3-decもついでに)
  • libnetcdf4
  • lib1-5 xmhtml1
    とともにSynapticで入れました。

libxpm4

  • は入っているようなのでパス。

gdstools(diaguui. foton,)のインストール

CLIO/Tasks/DigitalControl/LinuxSetupMemo (last edited 2010-06-01 10:30:47 by NaokoOhishi)