Announcement

Collapse
No announcement yet.

Find out where [something] looks for files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Find out where [something] looks for files

    How can I find out where a software or process is looking for files?
    Like some log for "No such file or directory" errors.

    I have this problems now:

    root@kiosk-System-Product-Name:~# gst-editor
    gst-editor: error while loading shared libraries: libgsteditor.so.0: cannot open shared object file: No such file or directory
    root@kiosk-System-Product-Name:~# ls /usr/local/lib
    libavcodec.a libgsteditor.la libgstelementui.so
    libavdevice.a libgsteditor.so libgstelementui.so.0
    libavfilter.a libgsteditor.so.0 libgstelementui.so.0.0.0
    libavformat.a libgsteditor.so.0.0.0 libpostproc.a
    libavutil.a libgstelementbrowser.a libswresample.a
    libgstdebugui.a libgstelementbrowser.la libswscale.a
    libgstdebugui.la libgstelementbrowser.so perl
    libgstdebugui.so libgstelementbrowser.so.0 pkgconfig
    libgstdebugui.so.0 libgstelementbrowser.so.0.0.0 python2.7
    libgstdebugui.so.0.0.0 libgstelementui.a
    libgsteditor.a libgstelementui.la
    root@kiosk-System-Product-Name:~#

    Have tried symlinking it from /usr/lib and /lib, but still no success
    its looking for its files somewhere else.

    #2
    Re: Find out where [something] looks for files

    Open a Konsole and issue

    Code:
    sudo apt-get update
    sudo apt-get install apt-file
    After it is installed, from the same Konsole, issue
    Code:
    sudo apt-file update
    which creates the cache that apt-file uses to locate packages which contain files.

    When it is done creating and indexing its cache, issue

    Code:
    apt-file search libgsteditor
    If it doesn't return anything you haven't got the repository that holds gts-editor in your sources.list.
    If it gives you a list of packages choose the one that makes the most sense to you.

    BTW, I find it strange that gst-editor didn't install all of its dependencies when you installed it. How did you install it?
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Re: Find out where [something] looks for files

      Did pull the whole gst-editor from the google code project, then in the folder, ./configure, make, make install. Then into the lib folder in the pulled project, make, make install

      as you see, the libraries are installed.
      The problem is just that its looking for the libraries somewhere else.

      I need something that logs all the filesystem errors for "File or directory not found" with the full attempted path. Such a utility would be very useful when installing other apps that looks for files in their "wrong" places so I can go in and symlink them.

      apt-file does following when doing as you say:

      root@kiosk-System-Product-Name:/lib/modules# apt-file search libgsteditor
      root@kiosk-System-Product-Name:/lib/modules#

      Comment


        #4
        Re: Find out where [something] looks for files

        I suspect this program is looking in /usr/lib not usr/local/lib.
        Trying copying the mssing files from one to the other and see if it works.

        Please Read Me

        Comment


          #5
          Re: Find out where [something] looks for files

          Or, change the locations in the Makefile.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment

          Working...
          X