Tecno World
New Member
Hello,
it could be very simple and stupid, but I´m not able to determine the correct packagename from a filename.
I will explain:
ldd progname
gives me the dependencies of my program, what I have compiled. To build the package (.deb) I must write in the "control" file of the package folder the dependencies, but not in the given form from ldd. I must write as the package names.
Example:
ldd says: libpcap.so.0.8
control must be: libpcap0.8 (=>0.9.8)
From some packages I know the names, but how can I determide the correct name an version?
I.e. libc.so.6, If I start the program on an other machine, I get the message that I need GLIBC2.28 at least. But how must I write the dependencie of libc/glibc that I can get the correct package during the install? I tried "apt search glibc", but there comes 100 items, but no one points (for me) to a valid package name.
Any hints?
PS: The next question ist, how to determine, in which version the correct lib is available. If a client try to install, and a higher version of a lib is requested, so I will inform the user, to which version he must/should upgrade. In stretch i.e. I must change/add to "stable", so that I have access to the libc6 2.28. In stretch is only 2.24 available.
it could be very simple and stupid, but I´m not able to determine the correct packagename from a filename.
I will explain:
ldd progname
gives me the dependencies of my program, what I have compiled. To build the package (.deb) I must write in the "control" file of the package folder the dependencies, but not in the given form from ldd. I must write as the package names.
Example:
ldd says: libpcap.so.0.8
control must be: libpcap0.8 (=>0.9.8)
From some packages I know the names, but how can I determide the correct name an version?
I.e. libc.so.6, If I start the program on an other machine, I get the message that I need GLIBC2.28 at least. But how must I write the dependencie of libc/glibc that I can get the correct package during the install? I tried "apt search glibc", but there comes 100 items, but no one points (for me) to a valid package name.
Any hints?
PS: The next question ist, how to determine, in which version the correct lib is available. If a client try to install, and a higher version of a lib is requested, so I will inform the user, to which version he must/should upgrade. In stretch i.e. I must change/add to "stable", so that I have access to the libc6 2.28. In stretch is only 2.24 available.
Last edited: