Subject | Re: Firebird 1.5 install on red hat 9 |
---|---|
Author | iguana_xyz |
Post date | 2004-08-25T15:34:41Z |
Milan, thanks for your answer, I am really new to linux, I have done
everything you say but I still get some errors:
-----------------
[root@localhost root]# fbsql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/opt/firebird/examples/employee.fdb';
Statement failed, SQLCODE = -902
Unable to complete network request to host "localhost".
-Failed to establish a connection.
-Connection refused
SQL>
-----------------
I edited the /etc/profile like this, I dont know if this is the way to
do it:
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
export PATH=/opt/firebird/bin:$PATH
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
***
The old firebird 1 started automatically, do I have to start firebird
1.5, how do i start it automaticaly?
Do I have to remove some how the old version, what am I doing wrong,
please help!!
Thanks in advance
Alejandro Jourdan
everything you say but I still get some errors:
-----------------
[root@localhost root]# fbsql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/opt/firebird/examples/employee.fdb';
Statement failed, SQLCODE = -902
Unable to complete network request to host "localhost".
-Failed to establish a connection.
-Connection refused
SQL>
-----------------
I edited the /etc/profile like this, I dont know if this is the way to
do it:
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
unset pathmunge
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
export PATH=/opt/firebird/bin:$PATH
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
***
The old firebird 1 started automatically, do I have to start firebird
1.5, how do i start it automaticaly?
Do I have to remove some how the old version, what am I doing wrong,
please help!!
Thanks in advance
Alejandro Jourdan