randUser

make install: Error while loading shared libraries

Jun 27th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. I installed an rpm package for x265 using fpm and when I run the command x265 --version I get this error:
  2.  
  3. error while loading shared libraries: libx265.so.162: cannot open shared object file: No such file or directory
  4.  
  5. That command was working when I tested the executable binary before converting the source files into an rpm package.
  6.  
  7. # RPM Installed files
  8.  
  9. The file the error is refering to exists as seen below from the output of using the find command:
  10.  
  11. /local/lib/pkgconfig/x265.pc
  12. ./local/lib/libx265.a
  13. ./local/lib/libx265.so
  14. ./local/lib/libx265.so.162
  15. ./local/include/x265_config.h
  16. ./local/include/x265.h
  17. ./local/bin/x265
  18. ./lib64/libx265_main12.so.151
  19. ./lib64/libx265_main10.so.151
  20. ./lib64/libx265.so.151
  21. ./share/licenses/x265-libs
  22.  
  23. # Additional comments
  24.  
  25. It may be useful to consider the last line from running the command make install DESTDIR=/tmp/installdir as I think it could be the problem:
  26.  
  27. ...
  28. Install the project...
  29. -- Install configuration: "Release"
  30. -- Installing: /tmp/installdir/usr/local/lib/libx265.a
  31. -- Installing: /tmp/installdir/usr/local/include/x265.h
  32. -- Installing: /tmp/installdir/usr/local/include/x265_config.h
  33. -- Installing: /tmp/installdir/usr/local/lib/libx265.so.162
  34. -- Installing: /tmp/installdir/usr/local/lib/libx265.so
  35. -- Installing: /tmp/installdir/usr/local/lib/pkgconfig/x265.pc
  36. -- Installing: /tmp/installdir/usr/local/bin/x265
  37. -- Set runtime path of "/tmp/installdir/usr/local/bin/x265" to ""
  38.  
  39. I'm not sure what this means but setting the runtime path to an empty string doesn't seem like a good idea. Would it be necessary to somehow define the runtime path in the cmake command as a possible solution?
Advertisement
Add Comment
Please, Sign In to add comment