Toolpack migration CentOS4 2-5
From TBwiki
(Difference between revisions)
(Creation) |
(remove unnecessary step + fix gem command) |
||
(2 intermediate revisions by one user not shown) | |||
Line 13: | Line 13: | ||
mysqldump -utbdb -ptbdbpw --opt toolpack_0 > toolpack_0.sql | mysqldump -utbdb -ptbdbpw --opt toolpack_0 > toolpack_0.sql | ||
+ | === Uninstall gem fcgi === | ||
+ | Uninstall old gem | ||
+ | gem uninstall fcgi | ||
=== Upgrade to Ruby 1.8.7 === | === Upgrade to Ruby 1.8.7 === | ||
Line 28: | Line 31: | ||
make | make | ||
make install | make install | ||
+ | ln -s /usr/local/bin/ruby /usr/bin/ruby | ||
cd ext/openssl/ | cd ext/openssl/ | ||
ruby extconf.rb | ruby extconf.rb | ||
Line 33: | Line 37: | ||
make install | make install | ||
cd ../../.. | cd ../../.. | ||
− | |||
For 64 bits system: | For 64 bits system: | ||
Line 42: | Line 45: | ||
make | make | ||
make install | make install | ||
+ | ln -s /usr/local/bin/ruby /usr/bin/ruby | ||
cd ext/openssl/ | cd ext/openssl/ | ||
ruby extconf.rb | ruby extconf.rb | ||
Line 47: | Line 51: | ||
make install | make install | ||
cd ../../.. | cd ../../.. | ||
− | |||
=== Install RubyGems 1.3.5 === | === Install RubyGems 1.3.5 === | ||
+ | Install RubyGems | ||
wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/rubygems-1.3.5.tgz | wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/rubygems-1.3.5.tgz | ||
tar -zxf rubygems-1.3.5.tgz | tar -zxf rubygems-1.3.5.tgz | ||
Line 57: | Line 61: | ||
ruby setup.rb | ruby setup.rb | ||
cd .. | cd .. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Install gem fcgi === | === Install gem fcgi === | ||
/usr/local/bin/gem install fcgi | /usr/local/bin/gem install fcgi |
Latest revision as of 13:40, 26 May 2010
This page explains the procedure required for a CentOS 4 host to upgrade a Toolpack v2-3 or v2-4 system to a Toolpack v2-5 system.
Contents |
Toolpack Migration Steps
Create a backup of your configuration
If not already done, do a backup of your database, just to be on the safe side.
mysqldump -u'[DatabaseUsername]' -p'[DatabasePassword]' --opt'[ToolpackDatabaseName]' > '[ToolpackBackupFile]'
ex.
mysqldump -utbdb -ptbdbpw --opt toolpack_0 > toolpack_0.sql
Uninstall gem fcgi
Uninstall old gem
gem uninstall fcgi
Upgrade to Ruby 1.8.7
Uninstall current version of ruby
rpm -e ruby-1.8.6.287-1 ruby-devel-1.8.6.287-1 ruby-libs-1.8.6.287-1 ruby-rdoc-1.8.6.287-1 ruby-irb-1.8.6.287-1
Install ruby
For 32 bits system:
wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/ruby-1.8.7-p174.tar.gz tar -zxf ruby-1.8.7-p174.tar.gz cd ruby-1.8.7-p174 ./configure --libdir=/usr/local/lib --enable-shared make make install ln -s /usr/local/bin/ruby /usr/bin/ruby cd ext/openssl/ ruby extconf.rb make make install cd ../../..
For 64 bits system:
wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/ruby-1.8.7-p174.tar.gz tar -zxf ruby-1.8.7-p174.tar.gz cd ruby-1.8.7-p174 ./configure --libdir=/usr/local/lib64 --enable-shared make make install ln -s /usr/local/bin/ruby /usr/bin/ruby cd ext/openssl/ ruby extconf.rb make make install cd ../../..
Install RubyGems 1.3.5
Install RubyGems
wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/rubygems-1.3.5.tgz tar -zxf rubygems-1.3.5.tgz cd rubygems-1.3.5 ruby setup.rb cd ..
Install gem fcgi
/usr/local/bin/gem install fcgi