Subject | Re: [firebird-support] Multiple server installs on linux |
---|---|
Author | Mark O'Donohue |
Post date | 2008-12-14T11:01:18Z |
Hi Mr Anderson
I did a quick check, and I think I know what your problem is.
I did a quick check, and I think I know what your problem is.
On 14/12/08 01:32, Anderson Farias wrote:
>
>
> Hi Carrell,
>
> >Install first vesion as normal, as you wish. However make sure the file
> >location for
> >binaries is sensible and named /opt/firebird/fb1_5/
>
you need to go and have a look at:
$cd /usr/lib/
$ls -l libfbembed*
libfbembed.so -> /opt/firebird/lib/libfbembed.so
libfbembed.so.1 -> /opt/firebird/lib/libfbembed.so.1
libfbembed.so.1.5.5 -> /opt/firebird/lib/libfbembed.so.1.5.5
libfbembed.so.2.1 -> /opt/firebird/lib/libfbembed.so.2.1
libfbembed.so.2.1.1 -> /opt/firebird/lib/libfbembed.so.2.1.1
The fb2.1's will point to the new install, but the older fb1.5 entries
still point to where they were originally installed, which is probably
now where the new install is, and they need to point to your new directory.
You need to update them to point to where you have moved the old
install, with something line the following:
$rm libfbembed.so.1
$rm libfbembed.so.1.5.5
$ln -s /opt/firebird_15/lib/libfbembed.so.1 .
$ln -s /opt/firebird_15/lib/libfbembed.so.1.5.5 .
(make sure you have the dot at the end).
You can test that by running the server directly at the command line.
/opt/firebird_15/bin/fb_inet_server
If the links are wrong it will give an an error. You can also try the
following to see where it resolves the libraries to :
$ldd /opt/firebird_15/bin/fb_inet_server
linux-gate.so.1 => (0xffffe000)
libfbembed.so.1 => /usr/lib/libfbembed.so.1 (0xb7e01000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7d47000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7d02000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7cd4000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cd0000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7cab000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b61000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7b56000)
/lib/ld-linux.so.2 (0x80000000)
That should set you right, so the server starts.
And while you are there you should do the same for the fb1.5 client
libraries:
$ls -l libfbclient*
...
libfbclient.so.1 -> /opt/firebird/lib/libfbclient.so.1
libfbclient.so.1.5.5 -> /opt/firebird/lib/libfbclient.so.1.5.5
....
for the old /opt/firebird_15/bin/isql to work, those pointers will also
need to be updated to point to where they have been moved.
Apart from that, for the other bit, the /etc/xinit.d/ scripts you seem
to have that under control.
Good luck !
Cheers - Mark