You are not logged in.

#1 2014-10-14 15:48:15

bzpnbx
Member
Registered: 2014-10-05
Posts: 35

How to install missing dependencies?

I'm trying to install Mailpile (https://aur.archlinux.org/packages/mailpile/)

these are showing as missing dependencies when I "makepkg -s"
python2-pgpdump
spambayes>=1.1a6

I got the above two from AUR and "makepkg -s" successfully and then stuck them in /usr/local/bin but it didn't solve the dependencies.  I'm not sure I know what I'm doing. Anybody know how to get Mailpile installed?

Last edited by bzpnbx (2014-10-14 15:48:51)

Offline

#2 2014-10-14 16:00:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: How to install missing dependencies?

Install them with pacman -U --asdep <file>

Offline

#3 2014-10-14 16:01:42

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: How to install missing dependencies?

What do you mean you put them into /usr/local/bin..? makepkg makes packages. Install them with pacman -U /path/to/package.tar.xz (Scimmia's suggestion of passing the --asdeps flag is a good one, since you're installing these packages as dependencies for another package).

Read up on what the AUR is, and how you should use it. It will answer a lot of questions for you.

Last edited by WorMzy (2014-10-14 16:03:22)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2014-10-14 16:43:55

bzpnbx
Member
Registered: 2014-10-05
Posts: 35

Re: How to install missing dependencies?

Thx guys. When I try the pacman -U --asdeps i sitll get errors. I assume that I was to run --asdeps on the extracted tarfile and then try makepkg -s again?
It says the python2-pgpdump is missing metadata?

Offline

#5 2014-10-14 16:47:57

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: How to install missing dependencies?

I don't think you even need --asdeps.  It just installs them as any other package.  Then when they install, makepkg -s the main package.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2014-10-14 16:48:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: How to install missing dependencies?

You did run it on the built package, right? Not on the AUR tarball?

Like Wormzy said, you really need to read the AUR Wiki page.

nomorewindows wrote:

I don't think you even need --asdeps.  It just installs them as any other package.  Then when they install, makepkg -s the main package.

These packages are being installed because they are dependencies of another package. For pacman to function correctly, --asdeps is needed. If you omit it, pacman thinks they're explicitly installed and will not remove them when the main package is removed nor list them in -Qdt.

Last edited by Scimmia (2014-10-14 16:50:36)

Offline

#7 2014-10-14 17:01:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,309

Re: How to install missing dependencies?

I'm probably doing something dirty, but I usually issue a "makepkg -si" command. It builds and installs in one swift motion, faster than the eye can gaze.

Offline

#8 2014-10-14 17:09:16

bzpnbx
Member
Registered: 2014-10-05
Posts: 35

Re: How to install missing dependencies?

[gary@arch Desktop]$ ls
spambayes.tar.gz
[gary@arch Desktop]$ mkdir spambayes-folder
[gary@arch Desktop]$ ls
spambayes-folder  spambayes.tar.gz
[gary@arch Desktop]$ tar -xzvf spambayes.tar.gz -C spambayes-folder/
spambayes/
spambayes/PKGBUILD
[gary@arch Desktop]$ sudo pacman -U --asdeps ~/Desktop/spambayes-folder/spambayes/PKGBUILD
[sudo] password for gary: 
loading packages...
error: could not open file /home/gary/Desktop/spambayes-folder/spambayes/PKGBUILD: Unrecognized archive format
error: '/home/gary/Desktop/spambayes-folder/spambayes/PKGBUILD': cannot open package file
[gary@arch Desktop]$

thx guys. not sure what I'm goofing up here.

Offline

#9 2014-10-14 17:25:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: How to install missing dependencies?

The PKGBUILD is not a package. For the last time READ THE WIKI PAGE!!!

Offline

#10 2014-10-14 17:26:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: How to install missing dependencies?

Please read the AUR page on the wiki.  You need to build the package.  A PKGBUILD is merely a set of instructions on how to download the source code and build the package, you need to use makepkg to actually do that.

You seem to be using makepkg for the final package you want installed (indicated in the first post) - if the dependencies are also in the AUR, they also need to be built with makepkg.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2014-10-14 17:29:37

bzpnbx
Member
Registered: 2014-10-05
Posts: 35

Re: How to install missing dependencies?

Sorry. this is how I understood it orriginally, and I thought with the --asdeps I had to do that before makepkg. I apologize guys.

Last edited by bzpnbx (2014-10-14 17:35:08)

Offline

#12 2014-10-14 17:36:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: How to install missing dependencies?

You're right bzpnbx, I see how that could add a bit of confusion.  The "--asdeps" was just a suggested modification to the 'pacman -U <pkg>' step which is after building with makepkg.

But makepkg itself can use the --asdeps flag, so this would likely be simpler: for any AUR dependency of the package of interest, download the tarbal and use `makepkg -si --asdeps` then for the package of interest `makepkg -si`.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB