I'm trying to run installjava and I'm getting an error that
I do not know how to fix:
"The context allocation routine failed when it tried to load
localization files!!
One or more following problems may caused the failure
Cannot access the sybase home directory, please check
environment variable SYBASE or ~sybase
An error occurred when attempting to allocate
localization-related structures."
On my system, I have /etc/profile that contains paths to all
executables:
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/php5/bin:/WebKit/WebKitTools/Scripts"
export PATH
Do I just need to add something like this inside
/etc/profile to fix?
export SYBASE=/path/to/sybase
Generally, where is the executable that goes into
/path/to/sybase?
Thanks!
Look in the directory where you installed Sybase. There should
be a file there named "SYBASE.sh" that illustrates all of the
variables that need to be set in order to run any of the client
utilities like ISQL or installjava.
If you are running the C shell (type "echo $SHELL"), they also
provide a "SYBASE.csh".
So you can then execute the appropriate file to set the environment
variables for you.
C-Shell: source SYBASE.csh
KSH or Bourne: . SYBASE.sh
Thanks,
Neal
Thanks! I'm actually running a bash shell so I guess I need
to set the environment variables manually inside
/etc/profile?
I think the syntax for the bash shell is compatible with
SYBASE.sh. Since /etc/profile affects all users, I don't
know if you want to modify it or not, it is up to you.
When bash is invoked as an interactive login shell, or as a
non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one
that exists and is readable. The --noprofile option may be
used when the shell is started to inhibit this behavior.
Thanks,
Neal