[ncl-install] ncl - libbz2 shared libraries

Brandon Fisel bjfisel at gmail.com
Tue Oct 22 12:49:59 MDT 2013


Hi Mary,

I was able to fix this by adding: setenv LD_LIBRARY_PATH
$HOME/lib:${LD_LIBRARY_PATH}

ldd $NCARG_ROOT/bin/ncl returns (for the only occurrence of
libbz2): libbz2.so.1.0 => /u/fisel/lib/libbz2.so.1.0 (0x00007fa2563d9000)
I do not have access to the locate command.

-------------------------------------------------------------
Brandon J Fisel


On Tue, Oct 22, 2013 at 11:33 AM, Mary Haley <haley at ucar.edu> wrote:

> Hi Brandon,
>
> I'm not sure if the issue is with a poorly-linked libbz file, or if you
> have a version of bz2 that is incompatible with what NCL was compiled with.
>
> You didn't quite set the LD_LIBRARY_PATH correctly, as you don't want to
> include the actual file name in the list.
>
> Try:
>
>     setenv LD_LIBRARY_PATH $HOME:${LD_LIBRARY_PATH}
>
> Note that it is generally not recommended to fix shared library issues in
> this fashion. The true fix is to try to figure out why your system bz2 is
> not compatible with the one NCL is built with.
>
> Which NCL binary did you download, and what does the following report:
>
> ldd $NCARG_ROOT/bin/ncl
> locate libbz2
>
> --Mary
>
>
> On Oct 21, 2013, at 3:00 PM, Brandon Fisel <bjfisel at gmail.com> wrote:
>
> > Hi,
> >
> > I have downloaded and extracted the ncl v.6.1.2 (nodap) binary and upon
> running the executable, I am receiving the following:
> > bin/ncl: error while loading shared libraries: libbz2.so.1.0: cannot
> open shared object file: No such file or directory
> >
> > The system I am using has libbz2.so located in /lib64:
> > libbz2.so.1 libbz2.so.1.0.5
> >
> > I attempted to create a symbolic link to the libbz2.so.1 in my $HOME
> directory and added the location of the libbz2 to my LD_LIBRARY_PATH, and
> received the same error as above:
> > ln -s /lib64/libbz2.so.1 $HOME/libbz2.so.1.0
> > setenv LD_LIBRARY_PATH $HOME/libbz2.so.1.0:${LD_LIBRARY_PATH}
> >
> > Following from some previous ncl-install archived discussions, I
> successfully downloaded and compiled (static and shared) bzip2 libraries,
> and added the location of the shared library to the LD_LIBRARY_PATH and am
> still receiving the same error as above.
> >
> > Should I compile the source code rather than use the binaries provided
> to me?
> >
> > Cheers,
> > -------------------------------------------------------------
> > Brandon J Fisel
> > _______________________________________________
> > ncl-install mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20131022/db36294c/attachment.html 


More information about the ncl-install mailing list