[Zope] SyBase connection problem
Hung Jung Lu
hungjunglu@hotmail.com
Tue, 11 Jan 2000 17:59:54 PST
Thanks to Chris McDonough for the help.
My SybaseDAv2 is running, now! :)
Before getting it to work, besides the shared
library problem (/etc/ld.so.conf and ldconfig)
I also ran into another problem. I will mention it
so if other people run into the same problem
they can look it up here. My Zope was throwing
the error message:
"The context allocation routine failed when it
tried to load localization files!! One or more
following problems may caused the failure
Your sybase home directory is /opt/sybase-11.9.2
Check the environment variable SYBASE if it is not
the one you want!
Using locale name "en_US" defined in environment
variable LC_ALL
Local name "en_US" doesn't exist in your
/opt/sybase-11.9.2/locales/locales.dat file"
What happened was that in my locales.dat file,
under the [linux] section, I did not have the
"en_US" entry... I only had the
locale = ENGLISH, us_english, iso_1
entry. So I had to duplicate this entry and
change it to:
locale = en_US, us_english, iso_1
After that, I restarted Sybase and Zope, and it
worked.
thanks again!
Hung Jung
>From: Chris McDonough <chrism@digicool.com>
>
>SybaseDAv2 takes all its information from the interfaces file. As long
>as you put a hostname in the server field and that hostname resolves to
>the IP address that's listed in the interfaces file, it uses that
>interfaces entry to access the database. This also means that the port
>it looks to on the server is the one that is specified within the
>interfaces file. Usually, you can just type the name you've defined in
>the interfaces file into the server textbox within SybaseDAv2.
>
>AFAIK, the interfaces file only controls the client library lookups, and
>you'll need to go change the server port somewhere else (where, I don't
>know).
>
>Before you run Zope, in the start script you'll need to set the $SYBASE
>environment variable to the sybase home directory, and you'll need to
>make sure that the /etc/ld.so.conf file lists $SYBASE/lib as a place to
>find shared libraries. If you add an entry to ld.so.conf, you'll need
>to run ldconfig to reparse the ld.so.conf file. This is on Linux. On
>solaris, you can define an environment variable ($LD_LIBRARY_PATH) that
>points to the sybase lib dir.
>
>If all is well with the world after that, you should be able to connect
>to your database.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com