From: Curt Sampson Date: 2005-01-27T18:22:35+09:00 Subject: Re: [ANN] Wee 0.5.0 On Thu, 27 Jan 2005, Michael Neumann wrote: > Hm, now the question is, which install.rb program I should use? Any > hints? Can I expect rake (Ruby make) to be installed? Well, here's an excerpt from my install script. BASEDIR=$(cd $(dirname $0)/../.. && /bin/pwd) INSTALL_DIR=$BASEDIR/install RUBY_LIB=$BASEDIR/install/lib/ruby cd $(dirname $0) mkdir -p $RUBY_LIB config_args=" --prefix=$INSTALL_DIR --std-ruby=/usr/local/ruby/1.8 --site-ruby-common=$RUBY_LIB --site-ruby=$RUBY_LIB --so-dir=$RUBY_LIB " if [ ! -f $RUBY_LIB/mysql.so ]; then (cd mysql-ruby && ruby extconf.rb --with-mysql-config $config_args && make && ruby -run -e install -- -vpm 0755 mysql.so $RUBY_LIB/ && make realclean && rm mysql.c ) fi # [many packages deleted here] if [ ! -f $RUBY_LIB/activerecord.rb ]; then (cd activerecord && ruby install.rb $RUBY_LIB) fi Every package seems to install slightly differently, which is annoying. But the basic idea is that I have the correct versions of most of the stuff I need in CVS. To deploy, I do a checkout, build all of the stuff (C libraries, apache, php, php libs, ruby libs, etc. etc.) into a special install dir, and run using that. Thus, I don't care what particular ruby libraries happen to be installed on a machine: I know that I'm using the correct ones that I tested my software with in development. cjs -- Curt Sampson +81 90 7737 2974 http://www.NetBSD.org Make up enjoying your city life...produced by BIC CAMERA