Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Environment Variable Error when executing installjava

40 views
Skip to first unread message

slinky66

unread,
May 29, 2007, 8:26:31 AM5/29/07
to
Hi,

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!

Neal Stack

unread,
May 29, 2007, 8:59:28 AM5/29/07
to
Hello,

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

slinky66

unread,
May 29, 2007, 9:30:31 AM5/29/07
to
Hi,

Thanks! I'm actually running a bash shell so I guess I need
to set the environment variables manually inside
/etc/profile?

Neal Stack

unread,
May 29, 2007, 12:09:21 PM5/29/07
to
Hello,

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

0 new messages