Results 1 to 9 of 9

Thread: LD_LIBRARY_PATH disappeared?

  1. #1

    Default LD_LIBRARY_PATH disappeared?

    Hello:

    I am using 13.2 X64 KDE system. I noticed that when I type command:

    echo $LD_LIBRARY_PATH

    it said:

    LD_LIBRARY_PATH: Undefined variable.


    I am just wondering is this global various decrepted in latest openSUSE?

    thx a lot

  2. #2

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by albumns View Post
    Hello:

    I am using 13.2 X64 KDE system. I noticed that when I type command:

    echo $LD_LIBRARY_PATH

    it said:

    LD_LIBRARY_PATH: Undefined variable.


    I am just wondering is this global various decrepted in latest openSUSE?

    thx a lot
    I have 12.3, 13.1 and 13.2 and

    Code:
    echo "$LD_LIBRARY_PATH"
    returns nothing so what global variable are you asking about?
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  3. #3

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by albumns View Post
    Hello:

    I am using 13.2 X64 KDE system. I noticed that when I type command:

    echo $LD_LIBRARY_PATH

    it said:

    LD_LIBRARY_PATH: Undefined variable.


    I am just wondering is this global various decrepted in latest openSUSE?

    thx a lot
    Is this causing some issue/error somewhere?
    You can set this on the terminal as
    Code:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/lib
    If you want to make this permanent add this to .bash_profile if using bash shell
    --
    Vivek Bhat
    Linux User #496540
    Dell 620 S Desktop, 8GB, Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz, openSuSE Leap 42.1
    +Plasma 5, Kernel 4.1.20-11-default x86_64

  4. #4

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by vendetta18 View Post
    Is this causing some issue/error somewhere?
    You can set this on the terminal as
    Code:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/lib
    You shouldn't have to set that to anything.
    It is empty normally, since ever.
    Setting it is just a hack to run programs that are not properly installed IMHO.

    Still, the error message about it being an "Undefined variable" is strange.
    Exactly _where_ do you type that command to get that error? And/or which shell are you using?
    Bash does not say that here, even for definitely undefined variables:
    Code:
    wolfi@amiga:~> echo $kjgljkdfsgjgh
    
    wolfi@amiga:~>
    Last edited by wolfi323; 11-Nov-2014 at 04:20.

  5. #5

    Default Re: LD_LIBRARY_PATH disappeared?

    This is the only thing that comes to mind.

    Code:
    echo "${LD_LIBRARY_PATH:-Undefined variable}"
    prints

    Code:
    Undefined variable
    or

    Code:
    echo "${LD_LIBRARY_PATH?Undefined variable}"
    which prints

    Code:
    bash: LD_LIBRARY_PATH: Undefined variable
    Which one is it?
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,889
    Blog Entries
    3

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by albumns View Post
    Hello:

    I am using 13.2 X64 KDE system. I noticed that when I type command:

    echo $LD_LIBRARY_PATH

    it said:

    LD_LIBRARY_PATH: Undefined variable.
    It is normal for LD_LIBRARY_PATH to be undefined. Typically, libraries are found at standard places. One defines LD_LIBRARY_PATH to override that default. Best to leave it undefined unless you really understand what you are doing.

    There's another point here. You appear to be using "csh" as your shell. That's what I use, too.

    csh/tcsh: LD_LIBRARY_PATH: Undefined variable.

    sh/bash: (just outputs an empty line)
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  7. #7

    Default Re: LD_LIBRARY_PATH disappeared?

    thanks a lot for the reply.

    Yes, I am using tcsh. I never have this problem in all other previous version. I thought this various should be a system default one....


    Quote Originally Posted by nrickert View Post
    It is normal for LD_LIBRARY_PATH to be undefined. Typically, libraries are found at standard places. One defines LD_LIBRARY_PATH to override that default. Best to leave it undefined unless you really understand what you are doing.

    There's another point here. You appear to be using "csh" as your shell. That's what I use, too.

    csh/tcsh: LD_LIBRARY_PATH: Undefined variable.

    sh/bash: (just outputs an empty line)

  8. #8

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by albumns View Post
    I never have this problem in all other previous version. I thought this various should be a system default one....
    _What_ problem?
    You still didn't tell why you think this is a _problem_ or what problem you have with LD_LIBRARY_PATH being undefined.

    That variable is undefined by default, and unnecessary. And that's not new.

    If _you_ want/need it being set to something, _you_ have to set it.

  9. #9
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,889
    Blog Entries
    3

    Default Re: LD_LIBRARY_PATH disappeared?

    Quote Originally Posted by albumns View Post
    I never have this problem in all other previous version.
    Since it isn't actually a problem, then I guess you don't have this problem now, either.

    You might have previously been running some software that needed LD_LIBRARY_PATH to be defined. Usually, it is better to not have it defined unless really needed.

    The default system shell is "bash". If you don't do a lot of command line stuff, you probably won't notice the difference.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •