Conform with File Hierarchy Standard on Linux: where to put binary examples for a library?

StackOverflow https://stackoverflow.com/questions/17830948

  •  04-06-2022
  •  | 
  •  

문제

I am creating a debian package for a library and would like to install binary samples. I was thinking to put them under /usr/share/libname, but lintian complains (arch-dependent-file-in-usr-share). According FHS this correct, but where can put those files?

도움이 되었습니까?

해결책

It's actually not correct according to the FHS; /usr/share is quite explicitly for "architecture-independent data". /usr/lib is the arch-dependent equivalent, and that's probably what you want (/usr/lib/libname).

See http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA for details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top