c - Determine if a lib/program/executable (nano for instance) is shipped with a UNIX/Linux distribution (lets say solaris 10) by default -


i want add dynamic link specific library in c code
and/or call specific program in script.

im writing c application in linux/unix.

i can not manage determine beforehand if these libs/executables, want run, 100% present in normal default new copy of each specific release of unix/linux.

for example:
lets want link libz and/or call nano program in c code/script.
how can sure libz and/or nano shipped fresh release of ubuntu12 or hpux31 instance.

is there document comes os releases states programs/libs present in release? can not manage find such documentation.

  • i can buy platforms/machines , install fresh copy of each , every platform/distribution want use , check if files exist, though, expensive in time/money , effort.

  • i check upon installation of application's package if wanted lib/program exist on target machine, can not afford stopping installation reason. have 100% sure program able run on normal fresh copy of distribution of unix/linux.

does have clue?
in advance :)


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -