- 浏览: 981520 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
因项目需要,HP-UX IA 11.31若干基础包安装,仅作记录
一、查看查看openssl版本
openssl version -a
二、检查已安装的depot包
swlist
三、安装depot包
注意安装时,需要将包先mark,再install
swinstall -s DZYWRX76:/dbra/app/softs/gcc-4.2.3-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/libgcc-4.2.3-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/gettext-0.17-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/libiconv-1.13.1-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/make-3.81-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/popt-1.7-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/zlib-1.2.5-ia64-11.31.depot
/*以下步骤需验证,我没有验证,仅限于安装ncurses
ncurses 需要把include加进PATH
export LDOPTS="+s -L/usr/local/lib -L/usr/local/lib/hpux32"*/
swinstall -s DZYWRX76:/dbra/app/softs/ncurses-5.7-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/sudo-1.7.2p6-ia64-11.31.depot
其中安装sudo时需要注意
ln -s /usr/local/bin/sudo /usr/bin/sudo
gunzip sudo-1.6.9p17.tar.gz
tar -xf sudo-1.6.9p17.tar
cp sudoers /usr/local/etc/sudoers
chmod 440 /usr/local/etc/sudoers
chown root:root /usr/local/etc/sudoers
ln -s /usr/local/sbin/visudo /usr/bin/visudo
ln -s /usr/local/bin/gcc /usr/bin/gcc
四、安装rsync
swinstall -s DZYWRX76:/dbra/app/softs/rsync-3.0.7-ia64-11.31.depot
ln -s /usr/local/bin/rsync /usr/bin/rsync
如果用编译包安装会报如下错误
gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -o rsync flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o fileio.o batch.o clientname.o chmod.o acls.o xattrs.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
ld: Unsatisfied symbol "libiconv_open" in file rsync.o
ld: Unsatisfied symbol "libiconv_close" in file clientserver.o
ld: Unsatisfied symbol "libiconv" in file rsync.o
3 errors.
collect2: ld returned 1 exit status
*** Error exit code 1
安装完成之后用swlist显示
gcc 4.2.3 gcc
gettext 0.17 gettext
gperf 3.0.4 gperf
libgcc 4.2.3 libgcc
libiconv 1.13.1 libiconv
make 3.81 make
ncurses 5.7 ncurses
popt 1.7 popt
rsync 3.0.7 rsync
sudo 1.7.2p6 sudo
unzip 5.52 unzip
zlib 1.2.5 zlib
五、安装ruby
# gunzip ruby-1.8.6-p114.tar.gz
# tar -xf ruby-1.8.6-p114.tar
export LDOPTS="+s -L/usr/local/lib -L/usr/local/lib/hpux32"
export CFLAGS="-lcl -lpthread"
./configure –-prefix=/dbra/app/lib/ruby
gmake
gmake install
修改/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.23/rbconfig.rb字段CONFIG["RPATHFLAG"] 为 ""
/*以下步骤需验证,我没有验证
在安装RUBY的时候,configure的时候要加--enable-pthread选项
configure完成后要修改makefile把里面的LIBS选项加上-lcl*/
六、安装gem包
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export SHLIB_PATH=$ORACLE_HOME/lib32
export RUBYOPT=""
cd /dbra/app/softs/rubygems-1.3.1
ruby setup.rb –no-ri –no-rdoc
安装完成检查zlib,openssl,gem list
irb>require 'zlib'
irb>require 'openssl'
gem list
七、安装gem包
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export RUBYOPT=rubygems
export SHLIB_PATH=$ORACLE_HOME/lib32
export LIBPATH=$ORACLE_HOME/lib32
gem install -l --no-rdoc --no-ri activerecord-2.1.0.gem
gem install -l --no-rdoc --no-ri activesupport-2.0.2.gem
gem install -l --no-rdoc --no-ri activerecord-2.0.2.gem
gem install -l --no-rdoc --no-ri rubyforge-1.0.1.gem
gem install -l --no-rdoc --no-ri rake-0.8.3.gem
gem install -l --no-rdoc --no-ri net-ssh-2.0.3.gem
gem install -l --no-rdoc --no-ri net-sftp-2.0.1.gem
gem install -l --no-rdoc --no-ri log4r-1.0.5.gem
gem install -l --no-rdoc --no-ri hoe-1.8.2.gem
gem install -l --no-rdoc --no-ri activerecord-oracle_enhanced-adapter-1.1.8.gem
gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
gem install -l --no-rdoc --no-ri rails-2.0.2.gem
gem install -l --no-rdoc --no-ri actionpack-2.0.2.gem
gem install -l --no-rdoc --no-ri actionmailer-2.0.2.gem
gem install -l --no-rdoc --no-ri activeresource-2.0.2.gem
gem install -l --no-rdoc --no-ri cgi_multipart_eof_fix-2.5.0.gem
gem install -l --no-rdoc --no-ri fastthread-1.0.1.gem
gem install -l --no-rdoc --no-ri daemons-1.0.10.gem
gem install -l --no-rdoc --no-ri mongrel-1.1.4.gem
gem install -l --no-rdoc --no-ri gem_plugin-0.2.3.gem
gem install -l --no-rdoc --no-ri mongrel_cluster-1.0.5.gem
gem install -l --no-rdoc --no-ri gettext-1.93.0.gem
gem install -l --no-rdoc --no-ri activerecord-oracle-adapter-1.0.0.9250.gem
gem install -l --no-rdoc --no-ri ruby-prof-0.7.3.gem
oci8安装也可以用编译包安装
tar -xf ruby-oci8-1.0.2.tar
cd ruby-oci8-1.0.2
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export RUBYOPT=rubygems
export SHLIB_PATH=$ORACLE_HOME/lib32
export LIBPATH=$ORACLE_HOME/lib32
make
make install
八、错误日志记录
1)rsync 采用编译包安装时出错
gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -o rsync flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o fileio.o batch.o clientname.o chmod.o acls.o xattrs.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
ld: Unsatisfied symbol "libiconv_open" in file rsync.o
ld: Unsatisfied symbol "libiconv_close" in file clientserver.o
ld: Unsatisfied symbol "libiconv" in file rsync.o
3 errors.
collect2: ld returned 1 exit status
*** Error exit code 1
2)ruby(版本为ruby-1.8.6-p114.tar.gz)采用make编译时报错
# make
MAKE=make /bin/sh ./config.status
config.status: creating Makefile
Makefile updated, restart.
*** Error exit code 1
# make
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c array.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c bignum.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c class.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c compar.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c dir.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c dln.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c enum.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c error.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c eval.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c file.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c gc.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c hash.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c inits.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c io.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c marshal.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c math.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c numeric.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c object.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c pack.c
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords > lex.c || \
cp "./lex.c" .
sh: gperf: not found.
cp: ./lex.c and ./lex.c are identical
*** Error exit code 1
打上补丁包之后,报错依然
swinstall -s DZYWRX76:/dbra/app/softs/gperf-3.0.4-ia64-11.31.depot
安装ruby1.87版本,报错,但是make可以继续
...
( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords > lex.c.tmp && mv lex.c.tmp lex.c ) || \
if test -f lex.c; then \
touch lex.c && echo lex.c touched.; \
else \
cp ./lex.c lex.c && echo lex.c copied.; \
fi
sh: gperf: not found.
lex.c touched.
gcc -g -O
安装完成之后zlib无法获取,解决办法为采用ruby 1.8.6用gmake,gmake install安装
# irb
irb(main):001:0> require 'zlib'
LoadError: no such file to load -- zlib
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):1
irb(main):002:0> exit
# gem list
/dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:1
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb:3
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb:2
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:140:in `load_and_instantiate'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:65:in `[]'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:118:in `find_command'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in `process_args'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:in `run'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
from /dbra/app/lib/ruby/bin/gem:24
3)oci8安装出错
# gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/dbra/app/lib/ruby/bin/ruby extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (LD_LIBRARY_PATH)...
found: /oradata/ora9208/product/db_1/lib32/libclntsh.so.9.0 looks like a full client.
checking for cc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/dbra/app/lib/ruby/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:402:in `check_cc': RuntimeError (RuntimeError)
from ./oraconf.rb:389:in `init'
from ./oraconf.rb:518:in `initialize'
from ./oraconf.rb:238:in `new'
from ./oraconf.rb:238:in `get'
from extconf.rb:24
ng
---------------------------------------------------
error messages:
C compiler doesn't work correctly.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Gem files will remain installed in /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2 for inspection.
Results logged to /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/gem_make.out
后台日志显示:
# vi /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/mkmf.log
"/dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/mkmf.log" 10 lines, 503 characters
"gcc -o conftest -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.31 -I. -lcl -lpthread conftest.c -L'.' -L'/dbra/app/lib/ruby/lib' -Wl,-R'/dbra/a
pp/lib/ruby/lib' -L. -lruby-static -ldld -ldl -lm -lc"
/dbra/app/lib/ruby/lib/ruby/1.8/mkmf.rb:222: warning: Insecure world writable dir /dbra/app/lib in PATH, mode 040777
ld: Bad text origin argument: /dbra/app/lib/ruby/lib
Fatal error.
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: int main() { return 0; }
/* end */
解决办法:
修改/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.31/rbconfig.rb中的CONFIG["RPATHFLAG"] 为 ""
一、查看查看openssl版本
openssl version -a
二、检查已安装的depot包
swlist
三、安装depot包
注意安装时,需要将包先mark,再install
swinstall -s DZYWRX76:/dbra/app/softs/gcc-4.2.3-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/libgcc-4.2.3-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/gettext-0.17-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/libiconv-1.13.1-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/make-3.81-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/popt-1.7-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/zlib-1.2.5-ia64-11.31.depot
/*以下步骤需验证,我没有验证,仅限于安装ncurses
ncurses 需要把include加进PATH
export LDOPTS="+s -L/usr/local/lib -L/usr/local/lib/hpux32"*/
swinstall -s DZYWRX76:/dbra/app/softs/ncurses-5.7-ia64-11.31.depot
swinstall -s DZYWRX76:/dbra/app/softs/sudo-1.7.2p6-ia64-11.31.depot
其中安装sudo时需要注意
ln -s /usr/local/bin/sudo /usr/bin/sudo
gunzip sudo-1.6.9p17.tar.gz
tar -xf sudo-1.6.9p17.tar
cp sudoers /usr/local/etc/sudoers
chmod 440 /usr/local/etc/sudoers
chown root:root /usr/local/etc/sudoers
ln -s /usr/local/sbin/visudo /usr/bin/visudo
ln -s /usr/local/bin/gcc /usr/bin/gcc
四、安装rsync
swinstall -s DZYWRX76:/dbra/app/softs/rsync-3.0.7-ia64-11.31.depot
ln -s /usr/local/bin/rsync /usr/bin/rsync
如果用编译包安装会报如下错误
gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -o rsync flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o fileio.o batch.o clientname.o chmod.o acls.o xattrs.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
ld: Unsatisfied symbol "libiconv_open" in file rsync.o
ld: Unsatisfied symbol "libiconv_close" in file clientserver.o
ld: Unsatisfied symbol "libiconv" in file rsync.o
3 errors.
collect2: ld returned 1 exit status
*** Error exit code 1
安装完成之后用swlist显示
gcc 4.2.3 gcc
gettext 0.17 gettext
gperf 3.0.4 gperf
libgcc 4.2.3 libgcc
libiconv 1.13.1 libiconv
make 3.81 make
ncurses 5.7 ncurses
popt 1.7 popt
rsync 3.0.7 rsync
sudo 1.7.2p6 sudo
unzip 5.52 unzip
zlib 1.2.5 zlib
五、安装ruby
# gunzip ruby-1.8.6-p114.tar.gz
# tar -xf ruby-1.8.6-p114.tar
export LDOPTS="+s -L/usr/local/lib -L/usr/local/lib/hpux32"
export CFLAGS="-lcl -lpthread"
./configure –-prefix=/dbra/app/lib/ruby
gmake
gmake install
修改/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.23/rbconfig.rb字段CONFIG["RPATHFLAG"] 为 ""
/*以下步骤需验证,我没有验证
在安装RUBY的时候,configure的时候要加--enable-pthread选项
configure完成后要修改makefile把里面的LIBS选项加上-lcl*/
六、安装gem包
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export SHLIB_PATH=$ORACLE_HOME/lib32
export RUBYOPT=""
cd /dbra/app/softs/rubygems-1.3.1
ruby setup.rb –no-ri –no-rdoc
安装完成检查zlib,openssl,gem list
irb>require 'zlib'
irb>require 'openssl'
gem list
七、安装gem包
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export RUBYOPT=rubygems
export SHLIB_PATH=$ORACLE_HOME/lib32
export LIBPATH=$ORACLE_HOME/lib32
gem install -l --no-rdoc --no-ri activerecord-2.1.0.gem
gem install -l --no-rdoc --no-ri activesupport-2.0.2.gem
gem install -l --no-rdoc --no-ri activerecord-2.0.2.gem
gem install -l --no-rdoc --no-ri rubyforge-1.0.1.gem
gem install -l --no-rdoc --no-ri rake-0.8.3.gem
gem install -l --no-rdoc --no-ri net-ssh-2.0.3.gem
gem install -l --no-rdoc --no-ri net-sftp-2.0.1.gem
gem install -l --no-rdoc --no-ri log4r-1.0.5.gem
gem install -l --no-rdoc --no-ri hoe-1.8.2.gem
gem install -l --no-rdoc --no-ri activerecord-oracle_enhanced-adapter-1.1.8.gem
gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
gem install -l --no-rdoc --no-ri rails-2.0.2.gem
gem install -l --no-rdoc --no-ri actionpack-2.0.2.gem
gem install -l --no-rdoc --no-ri actionmailer-2.0.2.gem
gem install -l --no-rdoc --no-ri activeresource-2.0.2.gem
gem install -l --no-rdoc --no-ri cgi_multipart_eof_fix-2.5.0.gem
gem install -l --no-rdoc --no-ri fastthread-1.0.1.gem
gem install -l --no-rdoc --no-ri daemons-1.0.10.gem
gem install -l --no-rdoc --no-ri mongrel-1.1.4.gem
gem install -l --no-rdoc --no-ri gem_plugin-0.2.3.gem
gem install -l --no-rdoc --no-ri mongrel_cluster-1.0.5.gem
gem install -l --no-rdoc --no-ri gettext-1.93.0.gem
gem install -l --no-rdoc --no-ri activerecord-oracle-adapter-1.0.0.9250.gem
gem install -l --no-rdoc --no-ri ruby-prof-0.7.3.gem
oci8安装也可以用编译包安装
tar -xf ruby-oci8-1.0.2.tar
cd ruby-oci8-1.0.2
su - dbra
su root
export SCRIPT_HOME=/dbra/app/shells
export RUBY_HOME=/dbra/app/ruby
export WEB_HOME=/dbra/app/web
export DBRA_BASE=/dbra/app
export PATH=$DBRA_BASE/lib/ruby/bin:$SCRIPT_HOME:/usr/sbin:$PATH
export TBACKUP_BASE=/Tbackup
export TPRIMARY_BASE=/dbra
export RUBYOPT=rubygems
export SHLIB_PATH=$ORACLE_HOME/lib32
export LIBPATH=$ORACLE_HOME/lib32
make
make install
八、错误日志记录
1)rsync 采用编译包安装时出错
gcc -std=gnu99 -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -o rsync flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o fileio.o batch.o clientname.o chmod.o acls.o xattrs.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
ld: Unsatisfied symbol "libiconv_open" in file rsync.o
ld: Unsatisfied symbol "libiconv_close" in file clientserver.o
ld: Unsatisfied symbol "libiconv" in file rsync.o
3 errors.
collect2: ld returned 1 exit status
*** Error exit code 1
2)ruby(版本为ruby-1.8.6-p114.tar.gz)采用make编译时报错
# make
MAKE=make /bin/sh ./config.status
config.status: creating Makefile
Makefile updated, restart.
*** Error exit code 1
# make
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c array.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c bignum.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c class.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c compar.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c dir.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c dln.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c enum.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c error.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c eval.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c file.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c gc.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c hash.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c inits.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c io.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c marshal.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c math.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c numeric.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c object.c
gcc -g -O2 -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I. -c pack.c
gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords > lex.c || \
cp "./lex.c" .
sh: gperf: not found.
cp: ./lex.c and ./lex.c are identical
*** Error exit code 1
打上补丁包之后,报错依然
swinstall -s DZYWRX76:/dbra/app/softs/gperf-3.0.4-ia64-11.31.depot
安装ruby1.87版本,报错,但是make可以继续
...
( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$ keywords > lex.c.tmp && mv lex.c.tmp lex.c ) || \
if test -f lex.c; then \
touch lex.c && echo lex.c touched.; \
else \
cp ./lex.c lex.c && echo lex.c copied.; \
fi
sh: gperf: not found.
lex.c touched.
gcc -g -O
安装完成之后zlib无法获取,解决办法为采用ruby 1.8.6用gmake,gmake install安装
# irb
irb(main):001:0> require 'zlib'
LoadError: no such file to load -- zlib
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):1
irb(main):002:0> exit
# gem list
/dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:1
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb:3
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb:2
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:140:in `load_and_instantiate'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:65:in `[]'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:118:in `find_command'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:104:in `process_args'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:in `run'
from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
from /dbra/app/lib/ruby/bin/gem:24
3)oci8安装出错
# gem install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-oci8-1.0.2.gem:
ERROR: Failed to build gem native extension.
/dbra/app/lib/ruby/bin/ruby extconf.rb install -l --no-rdoc --no-ri ruby-oci8-1.0.2.gem
checking for load library path... (LD_LIBRARY_PATH)...
found: /oradata/ora9208/product/db_1/lib32/libclntsh.so.9.0 looks like a full client.
checking for cc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/dbra/app/lib/ruby/bin/ruby
--with-instant-client
--without-instant-client
./oraconf.rb:402:in `check_cc': RuntimeError (RuntimeError)
from ./oraconf.rb:389:in `init'
from ./oraconf.rb:518:in `initialize'
from ./oraconf.rb:238:in `new'
from ./oraconf.rb:238:in `get'
from extconf.rb:24
ng
---------------------------------------------------
error messages:
C compiler doesn't work correctly.
---------------------------------------------------
See:
* http://ruby-oci8.rubyforge.org/en/HowToInstall.html
* http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html
Gem files will remain installed in /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2 for inspection.
Results logged to /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/gem_make.out
后台日志显示:
# vi /dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/mkmf.log
"/dbra/app/lib/ruby/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.2/ext/oci8/mkmf.log" 10 lines, 503 characters
"gcc -o conftest -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.31 -I. -lcl -lpthread conftest.c -L'.' -L'/dbra/app/lib/ruby/lib' -Wl,-R'/dbra/a
pp/lib/ruby/lib' -L. -lruby-static -ldld -ldl -lm -lc"
/dbra/app/lib/ruby/lib/ruby/1.8/mkmf.rb:222: warning: Insecure world writable dir /dbra/app/lib in PATH, mode 040777
ld: Bad text origin argument: /dbra/app/lib/ruby/lib
Fatal error.
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: int main() { return 0; }
/* end */
解决办法:
修改/dbra/app/lib/ruby/lib/ruby/1.8/ia64-hpux11.31/rbconfig.rb中的CONFIG["RPATHFLAG"] 为 ""
发表评论
-
[zt]MC/ServiceGuard命令详解
2011-06-20 21:02 1646挂载卷组 命令: vgchange –a n vgxx; ... -
[zt]HP小机常见故障及解决办法
2011-06-20 20:51 1720检查服务器进程是否正常; 主要通过cmviewcl命令查看pk ... -
记一次HP-UX存储修复
2011-05-10 10:54 2128昨天客户数据库由于本地硬盘出现故障,导致交换空间不足,进而导致 ... -
hp-ux ruby调用oci错误之解决过程
2010-12-17 17:59 1148今天在hp-ux 11.11 pa平台安装ruby和oci8, ... -
hp-ux gcc安装之core dump
2010-12-17 17:51 1831今天又在客户现场做dbra项目,安装平台是hp-ux pa 1 ... -
serviceguard的一些命令
2010-11-11 09:12 1056查看MC配置命令:cmviewconf 查看MC当前状态:cm ... -
HP-UX IA 11.31 Oracle 9.2安装内核参数修改
2010-10-20 10:59 1898NPROC 4096 KSI_ALLOC_MAX (NPROC ... -
HP-UX 安装tusc
2010-06-13 16:02 2989在HP-UX环境下,我们可以用tusc跟踪进程的调度情况。 1 ... -
HP-UX修改文件系统大文件属性
2010-05-26 17:08 2428HP-UX版本为 引用# uname -a HP-UX rx2 ... -
HP-UX增加交换空间
2010-05-12 15:59 1994HP-UX环境增加交换空间步骤如下 1、查看当前交换空间使用情 ... -
HP-UX使用swlist查看patch
2010-04-22 14:26 7015因项目需要,最近一直在折腾HP-UX小机,在这里记录一下,以防 ... -
HP-UX搭建NFS
2010-04-21 15:44 4971因项目需要,简要记录NFS搭建过程。 NFS服务端版本为 引用 ... -
HP-UX查看集群命令cmviewcl
2010-02-09 18:29 6588以下仅作记录 引用# cmviewcl -v CLUSTER ... -
HP-UX: Asynchronous i/o
2010-02-04 10:32 2214PURPOSE ------- The purpose o ... -
What is Swap Space(Pseudo-Swap)?
2010-02-03 16:46 1368Pseudo-swap space allows for t ... -
Kernel Parameter Setting
2010-01-29 11:59 1401Unix kernel parameters can be t ... -
HP-UX crontab问题处理一则
2009-08-19 12:02 28571、Oracle用户没有权限执行crontab 引用$ cro ... -
SP2-0734
2009-07-23 17:09 4524今天在数据库巡检过程中,碰到了SP2-0734,怀疑是环境变量 ...
相关推荐
### Oracle 11g R2 RAC 安装详解(HP-UX 11.31 ia64 平台) #### Oracle 11g R2 RAC 新特性 **Oracle 11g R2 将自动存储管理 (ASM) 和 Oracle Clusterware 集成在 Oracle Grid Infrastructure 软件中** - **存储...
2202_Java11_11.0.5_HP-UX_B.11.31_IA.depot swinstall -s
2201_Java80_1.8.0.23.00_HP-UX_B.11.31_IA.depot swinstall -s
《Oracle11g R2 for HP-UX11.31安装手册》是一部详尽的指导文档,由实践经验丰富的专业人士精心编纂。本手册主要针对在HP-UX 11.31操作系统上安装Oracle 11g Release 2 (R2) 的Real Application Clusters (RAC)提供...
在HP-UX 11.31 ia64平台上安装Oracle 11gR2 RAC是一项复杂但至关重要的任务,因为它涉及到操作系统、网络配置、存储和Oracle软件的集成。以下是关于这个主题的详细解释: 1. **系统需求**:首先,你需要确保你的HP-...
OpenSSL_A.01.01.01d.001_HP-UX_B.11.31_IA_PA.depot swinstall -s
2201_Java70_1.7.0.33.00_HP-UX_B.11.31_IA.depot swinstall -s
1910_HPjmeterAgent_4.6.00.00_HP-UX_B.11.31_IA.depot 客户端,HPjmeter agent内存分析工具
### HP-UX11i安装指南知识点解析 #### 一、HP-UX11i概述 HP-UX11i是HP(惠普)公司推出的一款基于Unix的操作系统,广泛应用于服务器环境中。它具备高性能、高可靠性和安全性等特点,适用于各种关键业务应用。 ####...
在给出的文件内容中,涵盖了安装和维护Oracle11g R2 RAC(Real Application Clusters)在HP-UX11.31 IA64版本操作系统上的详细步骤和知识点。Oracle RAC是一种用于构建高可用性数据库的集群技术,适用于HP-UX这样的...
1910_HPjmeterConsole_4.6.00.00_HP-UX_B.11.31_IA.depot 控制台,HPjmeter Console内存分析工具
### HP-UX 下 Oracle 11g 安装详解 #### 一、安装环境与配置 在本章节中,我们将详细介绍适用于 Oracle 11g 的 HP-UX 系统配置需求,确保安装过程顺利。 ##### 主机配置 - **CPU**: 6 颗 Intel Itanium 处理器 ...
HP-UX 11i v2 安装与更新指南 HP-UX 11i v2 安装与更新指南
《Oracle 10g RAC在HP-UX 11.31上的安装指南》 Oracle Real Application Clusters (RAC) 是Oracle数据库的一种高可用性和负载均衡解决方案,它允许多个数据库实例同时访问同一个物理数据库,从而实现故障切换和资源...
超经典 hp-ux11.31 Oracle 10g RAC数据库图解安装
本文档旨在详细介绍HPE Integrity rx2800、rx2900、BL870C i6以及rx9800刀片式服务器上的HP-UX 11.31系统的安装与配置流程,并提供常见故障案例及其解决方案。通过本指南的学习,读者能够掌握服务器的基本安装配置...
hp_ux_11.31A.06.20.006_HP-UX_B.11.31_IA_PA.depot,安全加固
本文将深入探讨RRDtool的核心功能、在HP-UX上的安装与配置,以及源码编译过程。 首先,RRDtool的核心功能在于它能够高效地存储时间序列数据,并提供灵活的查询和图表生成能力。RRD(Round Robin Database)数据库是...