flagflag  
3: 2011-06-11 (Sat) 23:31:57 s09081 source Cur: 2011-06-16 (Thu) 03:16:10 s09081 source
Line 49: Line 49:
    --enable-mpbsd \     --enable-mpbsd \
    --enable-pic     --enable-pic
 +    
    ※ --enable-fat を指定すると、error が出るので Solaris では指定しないように     ※ --enable-fat を指定すると、error が出るので Solaris では指定しないように
 +    
  $ gmake   $ gmake
  $ gmake check   $ gmake check
Line 59: Line 59:
  $ LD_OPTIONS="-L/opt/sfw/gcc-4.6.0/lib -R/opt/sfw/gcc-4.6.0/lib"   $ LD_OPTIONS="-L/opt/sfw/gcc-4.6.0/lib -R/opt/sfw/gcc-4.6.0/lib"
  $ export LD_OPTIONS   $ export LD_OPTIONS
 + 
  $ env CFLAGS=-O3 \   $ env CFLAGS=-O3 \
  ./configure --prefix=/usr/local/gcc \   ./configure --prefix=/usr/local/gcc \
Line 72: Line 72:
           --with-mulhigh-size=2048 \            --with-mulhigh-size=2048 \
           --with-pic            --with-pic
 + 
  $ gmake   $ gmake
  $ gmake check   $ gmake check
Line 91: Line 91:
           --with-mpfr-lib=/opt/sfw/gcc-4.6.0/lib \            --with-mpfr-lib=/opt/sfw/gcc-4.6.0/lib \
           --with-pic            --with-pic
 + 
  $ vi config.h   $ vi config.h
 + 
    ※ #define HAVE_COMPLEX_H 1 をコメントアウト     ※ #define HAVE_COMPLEX_H 1 をコメントアウト
 + 
  $ gmake   $ gmake
  $ gmake check   $ gmake check
  # gmake install   # gmake install
 +
 +**gcc [#t808ab5c]
 +gcc4.6からは,四倍精度のlibquadmathが含まれている.~
 +ほとんどの環境でコンパイルが失敗するので--disable-libquadmathを使うように.
 +
 +  $ bzip2 -cd gcc-4.6.0.tar.bz2 | tar xvf -
 +  $ mkdir gcc-work
 +    ※ gcc-4.6.0 ディレクトリ内で configure を実行するのではなく、適当なディレクトリを作成し、そこを作業用ディレクトリとして利用するようにします。
 + 
 +  $ cd gcc-work
 +  $ LC_ALL=C; export LC_ALL
 +  $ PATH=/usr/gnu/bin:/usr/perl5/bin:$PATH; export PATH
 +  $ LD_OPTIONS="-L/usr/local/gcc/lib -R/usr/local/gcc/lib"; export LD_OPTIONS
 +  $  env LDFLAGS="-L/usr/local/gcc/lib -R/usr/local/gcc/lib" ../configure --prefix=/usr/local/gcc --without-gnu-ld --enable-languages=c,c++ --enable-shared --with-gmp-include=/usr/local/gcc/includ​e --with-gmp-lib=/usr/local/gcc/lib --with-mpfr-include=/usr/local/gcc/inclu​de --with-mpfr-lib=/usr/local/gcc/lib --with-mpc-include=/usr/local/gcc/includ​e --with-mpc-lib=/usr/local/gcc/lib --with-gnu-as --with-as=/usr/bin/gas --with-ld=/usr/bin/ld --disable-libquadmath
 +  $ gmake bootstrap
 +  # gmake install
 +
 +**いろんなところでエラー原因はgnu [#u6ca31f6]
 +馬鹿だった、そうsolarisにはgnu系ソフトなんてほんとはいらなかったのかもしれない(いらないんだろうけどさw~
 +『solaristudioexpress』をインストールしよう。
 +  pkg install solarisstudioexpress
 +  pkg install ucb
 +ucbだがsolarisは伝統として属性の違うコマンドを差別する。~
 +したがって
 +  /usr/bin ー> SystemV系
 +  /usr/ucb/bin -> BSD系
 +  /usr/gnu/bin -> GNU系
 +のコマンドとして分けて使うのであった。
 +**nologinが無い [#la79293a]
 +  /usr/gnu/bin/false
 +があったのでそちらで代用。セキュリティ上は問題ないはず。。。?
 +**ユーザーの追加 [#m783fd41]
 +solarisのホームは/export/homeだが通常はロックされているので作れない。~
 +adduserではなくて
 +  useradd
 +を使ってあげよう。~
 +例としては
 +  useradd -d /export/home/apache -s /usr/gnu/bin/false -m www
 +-mはすぐにディレクトリを生成するである。~
 +しかし、この方法ではグループは作らないため改良が必須。
 +**Mysqlインストールできない件について [#e69a3eb6]
 +よくわからないができない~
 +MariaDBだとできるんでBugの可能性は高い.
 +./configureでエラーが多発する
 +  ./configure --without-plugin-innodb_plugin --without-plugin-xtradb ←これが使えるバージョンならコンパイルが通る.はz・・・
 +~
 +インストールDirとDatabase用のフォルダにしっかりchownを行ってからmysql_install_db を行うこと.
 +また,起動用のmysql.serverが使えない
 +  datadir=/var/mariadb
 +  user=mariadb
 +をまず変更~
 +ダメであるなら~
 +下記の方法も失敗
 +  if test -x $manager -a "$use_mysqld_safe" = "0"
 +  then
 +これに
 +  if test -x $manager -a "$use_mysqld_safe" = "0"
 +  echo "wait..."
 +  then
 +echoを加えるとなぜかできるようになる.シンクロタイムの問題か?~
 +//
 +解決方法
 +  $bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args >/dev/null 2>&1 &
 +
 +  $bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args --user=$user >/dev/null 2>&1 &
 +に書き換える.


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

76 user(s) are online (28 user(s) are browsing xpwiki)

Members: 0
Guests: 76

more...

Access Counter

Today : 1145114511451145
Yesterday : 1361113611136111361113611
Total : 2363955223639552236395522363955223639552236395522363955223639552
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com