Toolpack prerequisite Debian6 2-6

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Created page with 'This page shows the prerequisites required for compiling and running TelcoBridges applications on Debian 6. Most procedures assume supervisor (root) access on the system. == Deb…')
 
m (Added make/g++ prerequisite for Toolpack)
 
(One intermediate revision by one user not shown)
Line 46: Line 46:
 
== Prerequisites for running Toolpack ==
 
== Prerequisites for running Toolpack ==
  
Make sure all prerequisites are already installed. An older version of the MySQL server is required in order to be compatible with the Ruby version.
+
Make sure all prerequisites are already installed. An older version of the MySQL server is required in order to be compatible with the Ruby version. Make and g++ are required to build the custom version of Ruby.
   apt-get install libxml2 zlib1g libmysqlclient unixodbc libmyodbc libfcgi libfcgi-dev lighttpd sysv-rc-conf
+
   apt-get install make g++ libxml2 zlib1g libmysqlclient unixodbc libmyodbc libfcgi libfcgi-dev lighttpd sysv-rc-conf
 
   apt-get install mysql-server-core-5.1=5.1.49-3
 
   apt-get install mysql-server-core-5.1=5.1.49-3
 
   apt-get install mysql-server-5.1=5.1.49-3
 
   apt-get install mysql-server-5.1=5.1.49-3
Line 78: Line 78:
 
Set up my.cnf:
 
Set up my.cnf:
 
   vi /etc/mysql/my.cnf
 
   vi /etc/mysql/my.cnf
Uncomment the '''server-id''' and '''log_bin''' lines
+
* Uncomment the '''server-id''' and '''log_bin''' lines
Change '''max_allowed_packet''' to 200M
+
* Change '''max_allowed_packet''' to 200M
Add '''max_allowed_packet=200M''' in the '''[mysqldump]''' section
+
* Add '''max_allowed_packet=200M''' in the '''[mysqldump]''' section
 +
Restart MySQL server:
 
   service mysql restart
 
   service mysql restart
  

Latest revision as of 10:12, 2 April 2012

This page shows the prerequisites required for compiling and running TelcoBridges applications on Debian 6. Most procedures assume supervisor (root) access on the system.

Contents

Debian 6 OS installation

The configuration used for redacting this page was installed using the debian-6.0.4-amd64-CD-1.iso CD image (http://cdimage.debian.org/debian-cd/6.0.4/amd64/iso-cd/debian-6.0.4-amd64-CD-1.iso). Only the SSH server and standard utilities were installed. No network packages were used.

Make sure sources.list has squeeze in the sources package list (it will not be present if the installation did not use the network packages). If you have problems with apt-get, edit /etc/apt/sources.list and make sure to add these lines (and comment everything else):

 vi /etc/apt/sources.list
 deb http://ftp.debian.org/debian/ squeeze main contrib
 deb-src http://ftp.debian.org/debian/ squeeze main contrib
 deb http://security.debian.org/ squeeze/updates main contrib
 deb-src http://security.debian.org/ squeeze/updates main contrib

Prerequisites for compiling TelcoBridges packages

Get build tools (zlib and libxml2 are required for higher level applications):

 apt-get install make g++ libxml2-dev zlib1g-dev libmysqlclient-dev unixodbc-dev libssl-dev

Install ruby 1.8.7-p174:

 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
 ln -s /usr/local/bin/ruby /usr/bin/ruby
 ln -s /usr/local/lib64/libruby.so.1.8 /lib64/libruby.so.1.8

TelcoBridges only support 64-bit applications on Debian 6. When compiling, use the X86_64=1 flag. For example:

 make all X86_64=1 DBG=1

Prerequisites for running custom TelcoBridges applications

Make sure all prerequisites are already installed:

 apt-get install libxml2 zlib1g

The following prerequisites may be required if the applications use MySQL:

 apt-get install libmysqlclient unixodbc

Prerequisites for running Toolpack

Make sure all prerequisites are already installed. An older version of the MySQL server is required in order to be compatible with the Ruby version. Make and g++ are required to build the custom version of Ruby.

 apt-get install make g++ libxml2 zlib1g libmysqlclient unixodbc libmyodbc libfcgi libfcgi-dev lighttpd sysv-rc-conf
 apt-get install mysql-server-core-5.1=5.1.49-3
 apt-get install mysql-server-5.1=5.1.49-3

Install ruby 1.8.7-p174 (same procedure as mentioned above):

 cd ~
 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
 ln -s /usr/local/bin/ruby /usr/bin/ruby
 ln -s /usr/local/lib64/libruby.so.1.8 /lib64/libruby.so.1.8

Install ODBC driver:

 odbcinst -i -f /usr/share/libmyodbc/odbcinst.ini -d

Set up mysql:

 mysql -u root -p
 CREATE USER 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
 GRANT ALL PRIVILEGES ON *.* TO 'tbdb'@'%' IDENTIFIED BY 'tbdbpw';
 FLUSH PRIVILEGES;
 exit

Set up my.cnf:

 vi /etc/mysql/my.cnf
  • Uncomment the server-id and log_bin lines
  • Change max_allowed_packet to 200M
  • Add max_allowed_packet=200M in the [mysqldump] section

Restart MySQL server:

 service mysql restart

Remove lighttpd from init scripts (remove X's in the lighttpd line):

 sysv-rc-conf
 service lighttpd stop

Install ruby gems:

 cd ~
 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

Install fcgi gem:

 gem install fcgi

Toolpack System installation

Now that the prerequisite are installed, now it is time to install the Toolpack system

Personal tools