2017年05月30日

Firebird 3.0.2 (64bit) source install CentOS 7 [成功]

CentOS7.3.1611(64bit) / Firebird 3.0.2 (64bit) / source install

1. Firewall 3050port をopen

firewall-cmd --add-port=3050/tcp --zone=public --permanent
firewall-cmd --reload              //firewalldのリロード
 参照


2. yum
yum -y update
yum -y install libstdc++.so.5
yum -y install libstdc++.so.6
yum -y install libncurses.so.5

3. libtommathをinstall
cd /usr/local/src
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum -y install libtommath-devel

4. Firebird-3.0.2.32703-0.amd64.tar.gz  ( libtommathとbitを合わす)
cd /usr/local/src
wget https://sourceforge.net/projects/firebird/files/firebird-linux-amd64/3.0.2-Release/Firebird-3.0.2.32703-0.amd64.tar.gz
tar zxvf Firebird-3.0.2.32703-0.amd64.tar.gz
cd Firebird-3.0.2.32703-0.amd64
./install.sh

5.
chkconfig --list firebird
chkconfig  firebird on

service firebird stop
service firebird start

6.データ用フォルダの作成と権限
mkdir /var/fdb
chown -R firebird.firebird /var/fdb

7. ISQL
cd /opt/firebird/bin
./isql -u sysdba -p masterkey
CREATE DATABASE '/var/fdb/TEST1.FDB' page_size 8192  default character set utf8;
CREATE DATABASE '/var/fdb/TEST2.FDB' default character set utf8;
exit;
Screenshot from 2017-05-30 11-37-15.png


8.データベース作成後に再度権限
chown -R firebird.firebird /var/fdb


posted by a23 at 11:33| Comment(0) | Firebird

2017年05月29日

Firebird 3.0.2 (32bit) source install CentOS 6 [失敗]

CentOS6.9(64bit) / Firebird 3.0.2 (32bit) / source install
libtommath(64bit)をinstall

1. Firewall 3050port をopen

vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3050 -j ACCEPT
/etc/init.d/iptables restart

2. yum
yum -y update
yum -y install libstdc++.so.5
yum -y install libstdc++.so.6
yum -y install libncurses.so.5


3.libtommath(64bit)をinstall
cd /usr/local/src
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum -y install libtommath-devel


4. Firebird-3.0.2.32703-0.i686.tar.gz  ( libtommathとbitを合わす)
cd /usr/local/src
wget https://sourceforge.net/projects/firebird/files/firebird-linux-i386/3.0.2-Release/Firebird-3.0.2.32703-0.i686.tar.gz
001_libtommath_64.png

002_fb_32.png

tar zxvf Firebird-3.0.2.32703-0.i686.tar.gz
cd Firebird-3.0.2.32703-0.i686
./install.sh

003_err.png
Firebird 3.0.2.32703-0.i686 Installation

Press Enter to start installation or ^C to abort
Extracting install data
Updated /etc/services
Please enter new password for SYSDBA user: masterkey
/opt/firebird/bin/gsec: error while loading shared libraries: libtommath.so.0: cannot open shared object file: No such file or directory

Starting Firebird server [default] /usr/bin/dirname: extra operand `-daemon'
詳しくは `/usr/bin/dirname --help' を実行して下さい.
/opt/firebird/bin/fbguard: error while loading shared libraries: libtommath.so.0: cannot open shared object file: No such file or directory
                                                           [失敗]
Starting Firebird server [default] /usr/bin/dirname: extra operand `-daemon'
詳しくは `/usr/bin/dirname --help' を実行して下さい.
/opt/firebird/bin/fbguard: error while loading shared libraries: libtommath.so.0: cannot open shared object file: No such file or directory
                                                           [失敗]
Looks like standalone server failed to start
Trying to continue anyway...
Install completed



posted by a23 at 20:03| Comment(0) | Firebird

Firebird 3.0.2 (32bit) source install CentOS 6 [成功]

CentOS6.9(32bit)  / Firebird 3.0.2 (32bit) / source install
001_arch.png

1. Firewall 3050port をopen

vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3050 -j ACCEPT
/etc/init.d/iptables restart

2. yum
yum -y update
yum -y install libstdc++.so.5
yum -y install libstdc++.so.6
yum -y install libncurses.so.5

3. libtommath(32bit)をinstall
cd /usr/local/src
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum -y install libtommath-devel

4. Firebird-3.0.2.32703-0.i686.tar.gz  ( libtommathとbitを合わす)
cd /usr/local/src
wget https://sourceforge.net/projects/firebird/files/firebird-linux-i386/3.0.2-Release/Firebird-3.0.2.32703-0.i686.tar.gz

tar zxvf Firebird-3.0.2.32703-0.i686.tar.gz
cd Firebird-3.0.2.32703-0.i686
./install.sh
002_ok.png


6.データ用フォルダの作成と権限
mkdir /var/fdb
chown -R firebird.firebird /var/fdb

7. ISQL
cd /opt/firebird/bin
./isql -u sysdba -p masterkey
CREATE DATABASE '/var/fdb/TEST1.FDB' page_size 8192  default character set utf8;
CREATE DATABASE '/var/fdb/TEST2.FDB' default character set utf8;
exit;
chown -R firebird.firebird /var/fdb
003_ok.png


posted by a23 at 19:53| Comment(0) | Firebird