LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to check application dependent (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-application-dependent-4175423939/)

BlinkingSpirit 08-25-2012 08:06 AM

how to check application dependent
 
Hi,

if i want to install new application, how do i know what are the necessary libraries or other stuff for the application to work.
What can i do to check this before installing? i am using slackware.
until now, i have installed some application from slackbuild.org, and some inform you what packages are necessary and other doesn't inform anything (if i'm not wrong), i also have installed some of applications from the source, in this case the google helped.

regards

pixellany 08-25-2012 09:06 AM

If you get an application from the maintainer of your distro, then they will tell you the libraries and whatnot that are required. In most cases, this is handled automatically. Slackware is one of the exceptions.

What do you want to install, and where are you getting it?

BlinkingSpirit 08-25-2012 09:31 AM

Just curiosity and to know if it possible, this moment i'm not installing anything special.
just another day i was installing mysql workbench, it was needed installing about 15 packages before i could compile it, i only could do this because in slackbuild.org there is a list of the required packages. if i could learn how is better than depending in other person.

regards

414N 08-25-2012 09:39 AM

Well, the places where you should look for this kind of information should be:
  • the application webpage. You should easily find a list of dependencies if the documentation has a "Installing from source" section.
  • the application source tarball itself. Many include a README and/or INSTALL file that explain what you require
If none of those places contains the information you seek and you're building from source, simply try building the application: the build system itself will bail out if you're lacking some mandatory requirement, telling you what that is.
If you're not building from source but repackaging a binary-only application it will be even easier, because the application won't start unless all the shared libraries it requires are in place. If you're lacking one of them, the dynamic linker will stop your program execution printing out what it failed to find.

linuxxer 08-25-2012 10:26 AM

Slackware Linux uses simple package management.

If you installing software from Slackbuids.Org,
then they provide you dependency related with Slackware version.

But if you are installing software from other sources,
then only way, use :
Code:

$ ldd `which cmd_name`
this command show you libraries required to run the 'cmd_name' command.

BlinkingSpirit 08-25-2012 10:41 AM

ok, thanks for replies.
here is another question, is there any command to see what is installed in system? i noticed that not every package is listed in pkgtool. in the beginning i remove the source after installation, and this installation is not listed as package, but now i keep the source so i can trace which application is installed.

regards

414N 08-25-2012 11:38 AM

pkgtool only manages Slackware tgz/txz packages, not applications manually built from source and installed with a "make install".
To better manage your applications built from source you should first package them and then install that package.
You can read a SlackBuild script to see what the commands are, but basically you only need to specify a prefix under which "make install" puts everything (it's usually done with an override of the DESTDIR makefile variable) and then issue a makepkg command inside that directory.


All times are GMT -5. The time now is 09:07 AM.