Find the answer to your Linux question:
Results 1 to 8 of 8
Good day everyone, I'm trying to run an executable program: "gzdumper". It comes with the Splunk distribution, in case anyones knows what it is. I had a problem with the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44

    Trouble with libraries


    Good day everyone,

    I'm trying to run an executable program: "gzdumper". It comes with the Splunk distribution, in case anyones knows what it is. I had a problem with the libiconv.so library, but I was able to solve it with symlinks.

    Now, still playing with librairies, I couldn't solve that one out: gzdumper: error while loading shared libraries: libpcrecpp.so.0: cannot open shared object file: No such file or directory.

    I have this library, I've created symlinks for it from /usr/lib and /lib - that one worked for the previous library). How can I determine which path I have to build to the library?

    Thanks in advance.

  2. #2
    Linux Newbie
    Join Date
    Jan 2007
    Location
    Cupertino, CA
    Posts
    157
    Try running 'ldd /path/to/gzdumper' and see if it tells the expected path for the missing library. Post the output here if you need further help.

  3. #3
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44
    Quote Originally Posted by nikunjb
    Try running 'ldd /path/to/gzdumper' and see if it tells the expected path for the missing library.
    It outputs:

    Code:
            libexslt.so.0 => /usr/lib/libexslt.so.0 (0x008ff000)
            libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00a29000)
            libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00ab0000)
            libdl.so.2 => /lib/libdl.so.2 (0x0089e000)
            libz.so.1 => /usr/lib/libz.so.1 (0x008c9000)
            libpthread.so.0 => /lib/tls/libpthread.so.0 (0x008eb000)
            libiconv.so.2 => /lib/libiconv.so.2 (0x00378000)
            libm.so.6 => /lib/tls/libm.so.6 (0x008a4000)
            libpcrecpp.so.0 => not found
            libpcre.so.0 => /lib/libpcre.so.0 (0x00111000)
            libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00121000)
            libc.so.6 => /lib/tls/libc.so.6 (0x00771000)
            libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00a5b000)
            libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x001ec000)
            /lib/ld-linux.so.2 (0x00758000)
            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x008db000)
            libnsl.so.1 => /lib/libnsl.so.1 (0x00a11000)

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jan 2007
    Location
    Cupertino, CA
    Posts
    157
    Can you follow all the symlinks you have created for the missing lib file and do you end up at a concrete file? Maybe you can post outputs of 'ls -al' for each link and the actual file in the chain here. Sometimes permissions can mess it up to..

  6. #5
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44
    Quote Originally Posted by nikunjb
    Can you follow all the symlinks you have created for the missing lib file and do you end up at a concrete file?
    Here it goes.

    In splunk/lib:
    Code:
    lrwxrwxrwx   1 root     root          19 ao�� 23 12:07 libpcrecpp.so -> libpcrecpp.so.0.0.0
    lrwxrwxrwx   1 root     root          19 ao�� 23 12:07 libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
    -rwxr-xr-x   1 root     root       26648 ao��  1  2006 libpcrecpp.so.0.0.0
    In /lib/:
    Code:
    lrwxrwxrwx   1 root root      19 f��v  7 14:21 libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
    In /usr/lib/:
    Code:
    lrwxrwxrwx    1 root root      19 f��v  7 14:22 libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
    Thanks for your help!

  7. #6
    Linux Newbie
    Join Date
    Jan 2007
    Location
    Cupertino, CA
    Posts
    157
    splunk/lib?

    Is that a standard path in the Splunk distro? Or is it in your LD_LIBRARY_PATH?

    If not, maybe you should create the links in /lib and /usr/lib pointing to the full path of the file...

  8. #7
    Just Joined! stukov's Avatar
    Join Date
    Feb 2007
    Posts
    44
    Yes it is a standard path. By the way, Splunk is an application. Maybe the term "distribution" was confusing. There, I mean the distribution of the application. Maybe "release" would be better.

    All my symlinks lead to the library libpcrecpp.so.0.0.0 found in the splunk/lib folder.

  9. #8
    Linux Newbie
    Join Date
    Jan 2007
    Location
    Cupertino, CA
    Posts
    157
    From the ls output you posted here, it seems like the symlinks in /lib and /usr/lib just point to a name without full path info. You should try pointing the links to the actual correct path of that file.

Posting Permissions

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