LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   use slackbuild to install package (https://www.linuxquestions.org/questions/slackware-installation-40/use-slackbuild-to-install-package-4175563572/)

xiongnu 01-10-2016 02:28 PM

use slackbuild to install package
 
i need help on installing package with slackbuild.

i downloaded 'awesome wm' through slackbuild, including the source pkg. but when i run the slackbuild command, i receive an error saying some library not being present.

being new to slackware, my understanding is that slackbuild makes installing packages easier. does slackbuild solve dependency automatically or it's still up to user to install dependencies?

Tonus 01-10-2016 02:54 PM

use slackbuild to install package
 
The slackbuilds will not take care of dependencies for you. It only makes easier to build a package. And the source you got it from may be somehow to be trusted.

I use often sbopkg wich is a very handy tool for the slackbuilds.org repo. Btw their slackbuilds have a README file that provides a depends-on section. Queue files can also make things even easier.

frankbell 01-10-2016 08:34 PM

Slackbuilds from Slackbuilds.org will not resolve dependencies, but each Slackbuild page will list the dependencies that you will need to resolve in order to install that Slackbuild.

According to the Slackbuild page for Awesome WM, Awesome requires libxdg-basedir and lgi. The Awesome Slackbuild page provides links to both of them. Install those, then run the Awesome build script again.

3.1415... 01-11-2016 08:00 AM

The package awesome.info (in general some_slackbuild_name.info) contains dependency information in line that starts with "REQUIRES=", also in README you may find info about some optional dependencies. And remember that after you build dependency you must install the resulting package ;)
In this particular case, first build and install libxdg-basedir (it doesn't depend on anything), then lua (it's required for lgi), lgi and finally awesome.

xiongnu 01-11-2016 10:00 PM

Quote:

Originally Posted by 3.1415... (Post 5476387)
The package awesome.info (in general some_slackbuild_name.info) contains dependency information in line that starts with "REQUIRES=", also in README you may find info about some optional dependencies. And remember that after you build dependency you must install the resulting package ;)
In this particular case, first build and install libxdg-basedir (it doesn't depend on anything), then lua (it's required for lgi), lgi and finally awesome.

thanks a lot! Just built my first slackbuild package :)

one more question: I'm trying out slackware14.1 in virtualbox. can i take the resulted sbo.tgz packages in /tmp and install them on a physical machine? or do i need to repeat the same excise?

3.1415... 01-12-2016 01:36 AM

Quote:

Originally Posted by xiongnu (Post 5476708)
thanks a lot! Just built my first slackbuild package :)

That's awesome ;) Just be careful, building from source is highly addictive, I already feel empty when my computer doesn't compile anything ;)
Quote:

one more question: I'm trying out slackware14.1 in virtualbox. can i take the resulted sbo.tgz packages in /tmp and install them on a physical machine? or do i need to repeat the same excise?
You should already know it's Slackware, you can do anything with it :) Of course, it doesn't have to work afterwards ;) And now seriously, it depends on your configuration, drivers, what packages you've already installed, slackbuilds assume you have full Slackware installed, and doesn't mention dependencies that are already present in it. So you must experiment for yourself. Good luck.


All times are GMT -5. The time now is 10:21 PM.