Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-25-2012, 08:06 AM
|
#1
|
LQ Newbie
Registered: Aug 2008
Posts: 22
Rep:
|
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
|
|
|
08-25-2012, 09:06 AM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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?
|
|
|
08-25-2012, 09:31 AM
|
#3
|
LQ Newbie
Registered: Aug 2008
Posts: 22
Original Poster
Rep:
|
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
|
|
|
08-25-2012, 09:39 AM
|
#4
|
Member
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 649
Rep:
|
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.
|
|
|
08-25-2012, 10:26 AM
|
#5
|
Member
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257
Rep:
|
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.
|
|
|
08-25-2012, 10:41 AM
|
#6
|
LQ Newbie
Registered: Aug 2008
Posts: 22
Original Poster
Rep:
|
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
|
|
|
08-25-2012, 11:38 AM
|
#7
|
Member
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 649
Rep:
|
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 07:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|