LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2011, 10:24 AM   #1
sudeepkulkarni
Member
 
Registered: Mar 2011
Location: Sangli, Maharashtra, India
Distribution: Linux Mint 11 (Katya), Slackware 13.1, Slackware 13.37
Posts: 30

Rep: Reputation: 0
Exclamation How to take care of dependencies while installing applications?


I am quite new to Slackware Linux. After reading quite a lot about this distro, I have come to know that Slackware doesn't provide tools for managing dependencies. So how do I take care of dependencies?

If there's already a thread regarding this, please redirect me to that particular thread.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-06-2011, 10:26 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Start with a full install. RTFM before installing new applications (for example, slackbuilds.org lists dependencies in the build script descriptions).

That's really it.

If you need to install a number of SlackBuilds in a specific order (to satisfy dependencies), then you can use sbopkg (it's a frontend for SlackBuilds.org) to create and run a build queue.

Last edited by dugan; 04-06-2011 at 10:30 AM.
 
Old 04-06-2011, 12:33 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
yeah, what he said.... sbopkg saves a lot of headaches. you can even select a package with dependencies, go select the dependency packages, then re-sort the queue to install the packages in the correct order. this saves a lot of time and trouble. the only problem i'm finding with sbopkg is that some packages i want have been moved or whatever from their address as sbopkg sees it.

Last edited by unclejed613; 04-06-2011 at 12:35 PM.
 
Old 04-06-2011, 12:36 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Adding just a little bit to dugen's excellent advice, you may want to build something for which there is no SlackBuilds.org or Slacky.eu or some other Slackware package available; e.g., you download a package.tar.gz, unpack it and proceed with configure-make-make-install. When configure runs, it'll typically yammer at you about missing libraries and the like and stop. Pretty simple to find and install something that's missing or the wrong version or whatever and rerun configure till you get a successful conclusion. Not as pleasant as simply executing Whatever.SlackBuild but easy enough to not be a huge problem (and, usually, things that are missing or the wrong version are available at SlackBuilds.org.

One additional tool you may want to have is Src2Pkg which is an excellent automagic Slackware package build-a-package-from-the-source utility -- it won't deal with missing or version dependencies (that's your responsibility), but it goes a long way toward making what you do choose to install easy to maintain and update.

Fact is, library and version requirements are almost always included on the source web site or in a README or INSTALL file in the software package. Ain't that hard.

Hope this helps some.
 
Old 04-06-2011, 01:41 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
but rember to use packages made by slackbuilds whenever possible, you'll find much easier to track which stuff is installed and where (you'll have to trade the losing of this feature when you just "configure; make; make install").
 
Old 04-06-2011, 01:58 PM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
You can cheat by looking at the repositories http://www.salixos.org/wiki/index.php/Download for SalixOS (based on Slackware) but with dependency tracking. I often look to see if they have a package and look at the dependency list.

samac
 
Old 04-06-2011, 02:41 PM   #7
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by samac View Post
You can cheat by looking at the repositories http://www.salixos.org/wiki/index.php/Download for SalixOS (based on Slackware) but with dependency tracking. I often look to see if they have a package and look at the dependency list.

samac
I have used Salix as an extra source of packages as well. Quite handy and they provide build scripts in their source directory if you do want to customise a package. They build scripts are typically in SLKBUILD format but this doesn't bother me as I also use Arch and SLKBUILDs and PKGBUILDs (from Arch) look very similar.
 
Old 04-06-2011, 02:46 PM   #8
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Rep: Reputation: 49
Get sbopkg at http://www.sbopkg.org/downloads.php

Download the 'pre-built package', see: Package: A pre-built Slackware package of the latest version of sbopkg...

In a terminal, change to where the download was saved and do:
Code:
installpkg sbopkg-version-noarch-1_cng.tgz
(today it would be: installpkg sbopkg-0.34.1-noarch-1_cng.tgz )

Then, in the terminal, type:
Code:
sbopkg
and it will start.
 
2 members found this post helpful.
Old 04-07-2011, 11:27 AM   #9
owor
LQ Newbie
 
Registered: Jul 2005
Location: East africa
Distribution: slackware 13.37 for x86, OpenBSD, FreeBSD, Fedora,Frugalware
Posts: 15

Rep: Reputation: 0
What about using ldd? I usually start with for example 'ldd $(which emacs) at the shell.
It is slower but it helps.
 
Old 04-07-2011, 03:21 PM   #10
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
I never tried this, but it might work:

requiredbuilder is a tool designed to determine Slackware packages dependencies: http://www.stabellini.net/requiredbuilder.html It relies on ldd, as per question.

This would involve exploding all Slackware's packages; e.g:

mkdir /tmp/build
cd /tmp/build
tar xvf /media/SlackDVD/slackware64/y/bsd-games-2.13-x86_64-11.txz

Then creating a slack-required in /install of the package

requiredbuilder -v -y /tmp/build

Then re-building the package:

makepkg -l y -c n /tmp/bsd-games-2.13-x86_64-11.txz

You will need to do that for all packages.

Then you may use slapt-get to have dependency resolution
 
Old 04-10-2011, 12:38 AM   #11
sudeepkulkarni
Member
 
Registered: Mar 2011
Location: Sangli, Maharashtra, India
Distribution: Linux Mint 11 (Katya), Slackware 13.1, Slackware 13.37
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks everyone for the information. I think it's sufficient.
 
  


Reply



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
Need help installing rpm with dependencies Micro420 Red Hat 2 03-14-2007 11:42 PM
Installing Dependencies mapra Linux - Software 1 02-13-2006 07:30 AM
Installing and Dependencies sage576 Mandriva 7 08-22-2003 05:53 PM
Gentoo: USE Flags applications dependencies.. MasterC Linux - General 0 06-17-2003 09:51 PM
[n00b] Upgrading non-RPM applications & dependencies. Anacific Linux - Software 1 06-01-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:50 PM.

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