[BACK]Return to OpenXM-FAQ.oxweave CVS log [TXT][DIR] Up to [local] / OpenXM / doc

Annotation of OpenXM/doc/OpenXM-FAQ.oxweave, Revision 1.14

1.14    ! ohara       1: %  $OpenXM: OpenXM/doc/OpenXM-FAQ.oxweave,v 1.13 2002/03/16 01:00:49 takayama Exp $
1.13      takayama    2:
                      3: //&C March 16, 2002 (for developer)
                      4: //&ja Q. asir を cygwin で make したい.
                      5: //&en Q. I want to make "asir" on cygwin
                      6:
                      7:
                      8: /*&ja
                      9:   asir の cygwin 上での make には, XFree86 for cygwin が必要です.
                     10:   これは, cygwin のホームページからダウンロードできます.
                     11: */
                     12: /*&en
                     13:   We need XFree86 for cygwin to build asir on cygwin.
                     14:   You can download XFree86 from the homepage of the cygwin project.
                     15: */
                     16: /*&C
                     17:
                     18:    export PATH=/usr/X11R6/bin:$PATH
                     19:    cd OpenXM/src/asir2000
                     20:    rm .*done
                     21:    make
                     22: */
1.12      takayama   23:
                     24: //&C March 7, 2002 (for developer)
                     25: //&ja Q. HEAD にタグをつけるには?
                     26: //&en Q. How to attach a tag to the head branch
                     27:
                     28: //&C cvs rtag -r HEAD RELEASE_1_2_1 OpenXM OpenXM_contrib OpenXM_contrib2
1.9       takayama   29:
1.11      takayama   30: //&C December 27, 2001 (Windows)
                     31: //&ja Q. asirgui で engine.exe の位置が registry に登録されています. これを消すには?
                     32: //&en Q.  The path for engine.exe is written in the registry. How to remove the data from the registry?
1.9       takayama   33:
                     34: /*&ja
1.11      takayama   35:    MSDOS コマンドプロンプトより regedit を立ち上げて,
                     36:    HKEY_LOCAL_MACHINE->SOFTWARE->FUJITSU
                     37:    のなかの ASIR を全て消す.
1.9       takayama   38: */
                     39:
                     40: /*&en
1.11      takayama   41:    start "regedit" from MSDOS command prompt and
                     42:    remove  HKEY_LOCAL_MACHINE->SOFTWARE->FUJITSU->ASIR
1.10      takayama   43: */
                     44:
1.11      takayama   45: //&C December 24, 2001  (Windows)
1.10      takayama   46: //&ja Q. OpenXM/misc/packages/Windows/asirgui2.bat を起動しようとすると, "環境変数領域がたりませんとエラーがでます.
                     47: //&en Q. OpenXM/misc/packages/Windows/asirgui2.bat stops with an error "Not enough area for environmental variables".
                     48:
                     49: /*&ja
1.11      takayama   50:  Windows 95/98/ME でこの問題がおきます.
1.10      takayama   51:  環境変数領域を増やします.
1.11      takayama   52:  command /e:5000
1.10      takayama   53:  で command.com を立ち上げるのは一番簡単な方法.
1.11      takayama   54:  msconfig (win98/ME)  または sysedit (win95) を用いて,
                     55:    環境変数  shell
                     56:    値        c:\windows\command.com /p /e:5000
                     57:  とする.
1.10      takayama   58: */
                     59:
                     60: /*&en
1.11      takayama   61:  This trouble happens on Windows 95/98/ME.
1.10      takayama   62:  Increase the area for environmental variables.
1.11      takayama   63:  (1) Staring the command prompt with
                     64:    command /e:5000
1.10      takayama   65:  is the simplest way.
1.11      takayama   66:  (2) By msconfig (win98/ME) or sysedit (win95),
                     67:    set the value of the environmental variable
                     68:       shell
                     69:    to the value
                     70:    c:\windows\command.com /p /e:5000
                     71: */
                     72:
1.12      takayama   73: //&C August 10, 2001 (Windows, developer)
1.11      takayama   74: //&ja Q. cygwin 環境で : から始まる sh ファイルが動かないことがあります.(開発者向け)
                     75: //&en Q. Shell scripts which start with ":" does not sometimes work on cygwin (for developers).
                     76:
                     77: /*&ja
                     78:  Login  shell が csh 系の場合この現象がおきるようです.
                     79:  OpenXM/src/kan96xx/Kan/cat0,  OpenXM/src/kan96xx/Kan/ar-decomp
                     80:  の : を #!/bin/sh に置き換えてください.
                     81: */
                     82:
                     83: /*&en
                     84:  It seems that this trouble happens when the login shell is csh.
                     85:  Please replace :'s in
                     86:  OpenXM/src/kan96xx/Kan/cat0,  OpenXM/src/kan96xx/Kan/ar-decomp
                     87:  by #!/bin/sh
1.9       takayama   88: */
1.8       takayama   89:
1.12      takayama   90: //&C May 6, 2001 (developer)
1.8       takayama   91: //&ja Q. tab をスペースで置き換えたい.    (開発者向け)
                     92: //&en Q. I want to replace tabs by spaces. (for developers)
                     93:
                     94: /*&C  A. (For emacs).
                     95:    Esc x  mark-whole-buffer
                     96:    Esc x  indent-region
                     97:    Esc x  untabify
                     98: */
                     99:
1.12      takayama  100: //&C May 6, 2001 (developer)
1.8       takayama  101: /*&ja Q. gcc が定義するシンボル名を知りたい. (開発者向け)
                    102: */
                    103: /*&en Q. I want to know symbol names that gcc defines. (for developers)
                    104: */
                    105:
                    106: /*&ja A. ダミーのファイル foo.c を作成して,
                    107:           gcc -v -c  foo.c
                    108: */
                    109: /*&en A. Generate a dummy file foo.c and type in
                    110:           gcc -v -c foo.c
                    111: */
1.7       takayama  112:
1.12      takayama  113: //&C Jan 18, 2001 (user, developer)
1.7       takayama  114: /*&ja Q. Debian potato で OpenXM/src/ox_math (Mathematica の OpenXM サポート)  のソースがコンパイル, 実行
                    115:  できません.
                    116: */
                    117: /*&en Q. I cannot compile and execute OpenXM/src/ox_math (OpenXM support of
                    118: Mathematica) on Debian potato.
                    119: */
                    120:
                    121: /*&ja
                    122: A (by Ohara).
                    123: 1. Mathlink は glibc2.1 では正しく動作しません.
1.14    ! ohara     124: http://www.wolfram.com/solutions/mathlink/devkits.html
        !           125: から Linux x86 版の C/C++ MathLink SDK を入手し, libML.a を取り換えます.
        !           126: MathLink SDK には二種類の libML.a が含まれているので注意すること.
1.7       takayama  127: 2. apt-get install libc5
                    128: で libc5 をインストールする.
                    129: */
                    130:
                    131: /*&en
                    132: A (by Ohara).
                    133: 1. Mathlink does now work properly under glibc2.1.
1.14    ! ohara     134: See http://www.wolfram.com/solutions/mathlink/devkits.html
1.7       takayama  135: and replace libML.a
                    136: 2. Install libc5 by
                    137:      apt-get install libc5
                    138: */
1.6       takayama  139:
1.12      takayama  140: //&C Dec 17, 2000 (user)
1.6       takayama  141: //&ja Q. Debian potato で OpenXM server 用の xterm がひらかず, OpenXM server が起動できません.
                    142: //&en Q. I cannot start xterm for some OpenXM servers on Debian potato.
                    143:
                    144: /*&ja
                    145: A (by Ohara).
                    146: (原因) Debian 2.2 で xterm -e a.out でプロセスを起動した場合、
                    147: a.out には環境変数 LD_LIBRARY_PATH が伝達されません!!
                    148:
                    149: (結果) oxc は $OpenXM_HOME/lib/libgmp.so とリンクしているので、リンカ
                    150: がダイナミックリンクを解決できずに、起動すらできなかったわけです。
                    151:
                    152: (解決) /lib に libgmp.so にシンボリックリンクをつくる。
                    153: 例:  root になって
                    154:      cd /lib
                    155:      ln -s $OpenXM_HOME/lib/libgmp.so .
                    156:      ln -s $OpenXM_HOME/lib/libpari.so .
                    157:    などを実行.
                    158:
                    159: */
                    160: /*&en
                    161: A (by Ohara).
                    162: Reason: If you start a.out by "xterm -e a.out" on Debian 2.2,
                    163: the value of the environmental variable is not given to a.out.
                    164:
                    165: Troubles:  "oxc" is dynamically linked with$OpenXM_HOME/lib/libgmp.so,
                    166: so oxc could not be started with "xterm -e oxc".
                    167:
                    168: A solution: Generate a symbolic link from libgmp.so  to /lib
                    169:  For example, become the super user and input the follows:
                    170:      cd /lib
                    171:      ln -s $OpenXM_HOME/lib/libgmp.so .
                    172:      ln -s $OpenXM_HOME/lib/libpari.so .
                    173:
                    174: */
1.4       takayama  175:
1.12      takayama  176: //&C Nov 30, 2000 (user)
1.4       takayama  177: //&ja Q. Redhat Linux を利用しています. libgd がないので RPM パッケージのインストールが失敗します.
                    178: //&en Q. I'm using Redhat Linux. Installation of the RPM package of openxm fails because libgd does not exists.
                    179:
                    180: /*&ja
                    181:  (A)  http://www.redhat.com/downloads より,  libgd をサーチします.
                    182:  (B)  libgd 1.3 を download して, rpm でインストールします.
1.5       takayama  183:
                    184:   www.redhat.com では, 最新版の Redhat 用の libgd しかみつからないかも
                    185:   しれません.  その場合は http://rpmfind.net で探して下さい.
                    186:   たとえば Redhat 6.2 用の libgd は
                    187:   http://rpmfind.net/linux/RPM/redhat/6.2/i386////gd-1.3-6.i386.html
                    188:   にあります.
                    189:   ネットスケープの場合ならここにアクセスし,
                    190:            gd-1.3-6 RPM for i386
                    191:   を shift+click して gd-1.3-6.i386.rpm をダウンロードします.
1.4       takayama  192: */
                    193: /*&en
                    194:  (A) Search libgd at http://www.redhat.com/downloads
                    195:  (B) Download libgd 1.3 and install it by rpm.
1.5       takayama  196:
                    197:   You might find only the latest version of libgd at www.redhat.com.
                    198:   If you need to find older versions, try to find them at http://rpmfind.net
                    199:   For example, libgd for Redhat 6.2 is at
                    200:   http://rpmfind.net/linux/RPM/redhat/6.2/i386////gd-1.3-6.i386.html
                    201:   If you are using netscape, access to this site and
                    202:   shift+click
                    203:            gd-1.3-6 RPM for i386
                    204:   Then, you can download gd-1.3-6.i386.rpm
1.4       takayama  205: */
1.2       takayama  206:
1.12      takayama  207: //&C Sep 28, 2000  (user)
1.2       takayama  208: //&ja Q. asir より ssh を用いて remote の ox サーバを起動できません.
                    209: //&en Q. I cannot start remote ox servers with ssh.
                    210:
1.3       takayama  211: /*&ja
                    212: A.
                    213:   (A) ssh がただしく動作しているかまずしらべます.
                    214:         ssh -f -X -A remote-machine-name  xterm
                    215:       で xterm が起動しますか?
                    216:       ssh の version によっては -X -A などの option をうけつけません.
                    217:       シェルスクリプト /usr/local/bin/asir の ASIR_RSH を変更して下さい.
                    218:       command not found の時は, .cshrc,  .bashrc に xterm を起動できるように
                    219:       パスを加えます.
                    220:       例:
                    221:         set path=(/usr/X11R6/bin $path)      (.cshrc)
                    222:         export PATH=/usr/X11R6/bin:$PATH     (.bashrc)
                    223:
                    224:    (B) 1.1.3 では, remote machine の login shell が bash, sh の時は
                    225:        remote server を起動できません. この bug は, 次の version で変更されます.
                    226:
                    227:    (C) asir より,
                    228:          ox_launch(remote-host-name,"/usr/local/OpenXM/lib/asir","ox_asir");
                    229:        で ox_asir server を起動できるか試して下さい.
                    230:        起動できないときは,
                    231:          ASIR_RSH に -v option を加えて
                    232:        (例: ASIR_RSH='ssh -v -f -X -A ' )
                    233:        ssh を debug mode で起動し, 原因を探します.
                    234:
                    235: */
                    236:
                    237: /*&en
                    238: A.
                    239:   (A) Check if ssh works properly. For example, can you start xterm by the
                    240:       command
                    241:         ssh -f -X -A remote-machine-name  xterm
                    242:       ?
                    243:       Some old versions of ssh do not accept options -X and -A.
                    244:       If you have such versions, change the value of ASIR_RSH
                    245:       in the shell script /usr/local/bin/asir.
                    246:       Example:  ASIR_RSH='ssh -f '
                    247:       If you cannot start xterm with the error "command not found",
                    248:       you need to add a path to .cshrc or .bashrc.
                    249:       Example:
                    250:         set path=(/usr/X11R6/bin $path)    (.cshrc)
                    251:         export PATH=/usr/X11R6/bin:$PATH   (.bashrc)
                    252:
                    253:    (B) Asir of openXM version 1.1.3 cannot start remove ox servers by ssh
                    254:        if the login shell of the remote server is sh or bash.
                    255:        This bug will be fixed in the next release.
                    256:
                    257:    (C) Now, try to start the ox_asir server from asir by the command:
                    258:          ox_launch(remote-host-name,"/usr/local/OpenXM/lib/asir","ox_asir");
                    259:        If you couldn't add -v option to ASIR_RSH,
                    260:        and start ssh with the debug mode.  It will help you.
                    261:        (Example: ASIR_RSH='ssh -v -f -X -A ' )
                    262:
                    263: */
1.2       takayama  264:
                    265: //&C
1.1       takayama  266:
1.12      takayama  267: //&C April 12, 2000. (user)
1.2       takayama  268: //&ja Q. openxm*.rpm を利用しているのですが, asir と入力すると,
1.3       takayama  269: //&en Q. I installed OpenXM package by RPM (openxm*.rpm). Asir command returns
1.1       takayama  270: //&C   /var/tmp/openxm-root/OpenXM/bin/asir  is not found
1.2       takayama  271: //&ja とエラーがでて起動できません.
                    272: //&en and I cannot start asir.
                    273:
1.1       takayama  274: /*&C A.
1.3       takayama  275:      Become root and type in the following command sequences:
                    276:
1.1       takayama  277:      cd /usr/local/OpenXM/rc
                    278:      make clean; make install
                    279: */
                    280:
1.3       takayama  281: /*&C
                    282:
                    283: -------------------------------------------------------------------
                    284:
                    285:
                    286: */
1.1       takayama  287:
                    288:
1.3       takayama  289: /*&ja
1.1       takayama  290: Q.  1999, 11/10:
                    291:     " (file) run  " を ox_sm1 に送って executeStringByLocalParser しても
                    292:     ファイルをロードしてくれません.
                    293:
                    294: A.  "[(parse) (file) pushfile] extension " で読み込んでください.
                    295:     ox_asir も load("file") を executeStringByLocalParser しても
                    296:     だめです.  "file", 1, "load" をスタックへ積んでから execute します.
                    297:     ox_math も "<< file"  executeStringByLocalParser しても
                    298:     だめです.
                    299:
                    300: Q. 1999, 11/10:
                    301:     OX サーバを起動しようとしても起動しません.
                    302:     asir を起動したあと, ox_launch したら, segmentation fault した.
                    303:
                    304: A. OpenXM は home directory の直下にあり, また OpenXM/rc/bashrc で環境
                    305:    変数を正しく設定しましたか?
                    306:
                    307: Q. 1999, 11/10:
                    308:    sm1 は * をつかえないのですか?
                    309:
                    310: A. *もつかえます.  x*y も x y も同じいみです.
                    311:
                    312:
                    313: Q. 1999, 11/12:
                    314:    sm1 は 有理数を係数とする多項式を扱えないのですか?
                    315:
                    316: A. いまのところ扱えません.
                    317:    OpenXM/lib/asir/xm の 関数 sm1_rat_to_p() は有理数係数の多項式を
                    318:    sm1 が扱いやすいような 整数係数の多項式に変換してくれます.
                    319:
                    320: Q. 1999, 11/12:
                    321:    Solaris 2.5.1 で pari のコンパイルがうまくできません.
                    322:
                    323: A.
                    324: | Solaris 2.5.1 ですが, いきなり pari の make でこけますね.
                    325: |
                    326: | /usr/local/bin/as  -o kernel.o kernel1.s
                    327: | kernel1.s: Assembler messages:
                    328: | kernel1.s:1: Error: Rest of line ignored. First ignored character is `/'.
                    329: | make[2]: *** [kernel.o] Error 1
                    330: | make[2]: Leaving directory `/home/taka/OpenXM/src/pari-2.0.17.beta/Osolaris-spar
                    331: | cv9'
                    332: | make[1]: *** [install] Error 2
                    333:
                    334: これは私も以前はまりました. Osolaris-sparcv?/Makefile で
                    335:
                    336: AS=/usr/local/bin/as
                    337:
                    338: となっているせいです. これは
                    339:
                    340: AS=/usr/ccs/bin/as
                    341:
                    342: でなければ make に失敗します. Solaris の場合には /usr/ccs/bin が
                    343: /usr/local/binより先にサーチされるように path を設定する必要があります.
                    344:
                    345: このように設定しておくと configure の時自動的にAS=/usr/ccs/bin/as
                    346: としてくれる.
                    347:
1.3       takayama  348: */
                    349:
                    350: //&ja Q. pari で, LLL algorithm をつかうのにはどうしますか?
                    351: //&en Q. How to use functions for LLL algorithm in pari?
1.1       takayama  352: /*&C
                    353:
                    354: A. gp                         (Starting pari)
                    355:    x = [1,0 ; 0,1]            (Define a matrix. Do not use [[1,0],[0,1]].)
                    356:    qflll(x)
                    357:
                    358: */
                    359:
1.3       takayama  360: //&C
                    361:
                    362: //&ja Q. Asir より pari をよびだして, LLL algorithm をつかうのにはどうしますか?
                    363: //&en Q. How to use functions for LLL algorithm in asir by calling pari?
1.1       takayama  364: /*&C
                    365:
                    366: A. asir
                    367:    X = newmat(2,2,[[1,0],[0,1]]);
                    368:    pari(lll,X);
                    369:
                    370: */
                    371:
                    372:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>