LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-25-2012, 08:06 AM   #1
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Rep: Reputation: 0
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
 
Old 08-25-2012, 09:06 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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?
 
Old 08-25-2012, 09:31 AM   #3
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Original Poster
Rep: Reputation: 0
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
 
Old 08-25-2012, 09:39 AM   #4
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 649

Rep: Reputation: 190Reputation: 190
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.
 
Old 08-25-2012, 10:26 AM   #5
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Rep: Reputation: Disabled
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.
 
Old 08-25-2012, 10:41 AM   #6
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Original Poster
Rep: Reputation: 0
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
 
Old 08-25-2012, 11:38 AM   #7
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 649

Rep: Reputation: 190Reputation: 190
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] int size is compiler dependent or OS dependent tarunchawla Programming 4 11-30-2011 03:46 AM
How to check installed application sanmugamnkl Linux - Newbie 7 11-14-2011 09:56 AM
How to check the command for the loaded application? q0987 Linux - Enterprise 7 01-14-2007 10:55 AM
Check application visibility 3saul Programming 9 02-13-2006 08:43 PM
check current version of application tarheel92x Fedora 1 04-21-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration