Toolpack migration Debian5 2-5
From TBwiki
This page explains the procedure required for a Debian 5 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.
mysqldump -u'[DatabaseUsername]' -p'[DatabasePassword]' --opt'[ToolpackDatabaseName]' > '[ToolpackBackupFile]'
ex.
mysqldump -utbdb -ptbdbpw --opt toolpack_0 > toolpack_0.sql
Install ssl development package
apt-get install libssl-dev
Uninstall gem fcgi
Uninstall old gem
gem uninstall fcgi
Upgrade to Ruby 1.8.7
Uninstall current version of ruby
apt-get remove ruby irb ri rdoc build-essential rubygems ruby1.8-dev apt-get remove ruby1.8 libruby1.8
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 cd ext/openssl/ ruby extconf.rb make make install cd ../../.. ln -s /usr/local/bin/ruby /usr/bin/ruby ln -s /usr/local/lib/libruby.so.1.8.7 /usr/lib/libruby1.8.so.1.8
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 cd ext/openssl/ ruby extconf.rb make make install cd ../../.. ln -s /usr/local/bin/ruby /usr/bin/ruby ln -s /usr/local/lib64/libruby.so.1.8.7 /usr/lib64/libruby1.8.so.1.8
Install RubyGems 1.3.5
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 ..
Erase some old gem (may not be needed)
cd /usr/bin rm -f gem gemlock gem_mirror gemri gem_server gemwhich cd -
Install gem fcgi
/usr/local/bin/gem install fcgi