You are not logged in.

#1 2023-02-24 00:03:11

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 111

(SOLVED) Installing from AUR

I am trying to install a package (hollywood) and got missing dependencies error.

[bart@ASU-X99 ~]$ git clone [url]https://aur.archlinux.org/hollywood.git[/url]
Cloning into 'hollywood'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 68 (delta 8), reused 68 (delta 8), pack-reused 0
Receiving objects: 100% (68/68), 26.46 KiB | 13.23 MiB/s, done.
Resolving deltas: 100% (8/8), done.
[bart@ASU-X99 ~]$ cd hollywood/
[bart@ASU-X99 hollywood]$ makepkg
==> Making package: hollywood 1.21-7 (Thu Feb 23 15:27:21 2023)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> apg
  -> bmon
  -> byobu
  -> ccze
  -> jp2a
  -> mlocate
  -> moreutils
  -> tree
  -> speedometer
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

So I went down the list of those shown as missing only to find that at lease one of the missing pependencies has missing dependencies!

[bart@ASU-X99 hollywood]$ git clone [url]https://aur.archlinux.org/speedometer.git[/url]
Cloning into 'speedometer'...
remote: Enumerating objects: 31, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 31 (delta 1), reused 31 (delta 1), pack-reused 0
Receiving objects: 100% (31/31), 7.76 KiB | 7.76 MiB/s, done.
Resolving deltas: 100% (1/1), done.
[bart@ASU-X99 hollywood]$ cd .. /speedometer
bash: cd: too many arguments
[bart@ASU-X99 hollywood]$ cd ..
[bart@ASU-X99 ~]$ cd speedometer/
[bart@ASU-X99 speedometer]$ makepkg
==> Making package: speedometer 2.9-2 (Thu Feb 23 15:34:08 2023)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> python-urwid
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
[bart@ASU-X99 speedometer]$ 

Am I in over my head?
Should I just not install this package?
Should I remove all the stuff I already did?

Last edited by mt_arch_user (2023-02-24 04:04:35)

Offline

#2 2023-02-24 00:11:36

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: (SOLVED) Installing from AUR

read this page: https://wiki.archlinux.org/title/Makepkg
specifically this part:

If required dependencies are missing, makepkg will issue a warning before failing. To build the package and install needed dependencies, add the flag -s/--syncdeps:

$ makepkg --syncdeps

Offline

#3 2023-02-24 00:12:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: (SOLVED) Installing from AUR

Some of those packages are in the official repos, read the man page for makepkg to see how to install those first. The AUR packages you'll have to build yourself.

Someone, inevitably who has not used Arch for long, will tell you to just use an AUR helper. The reason that is a bad idea is that it will leave you in the dark about how this whole ecosystem works. Once you understand that, it is your informed decision about whether to use one or not.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2023-02-24 01:23:55

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 111

Re: (SOLVED) Installing from AUR

Alright!  Thanks for replying.  I'll digest all this, try it and will report back about my success!

Offline

#5 2023-02-24 03:20:03

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 111

Re: (SOLVED) Installing from AUR

If I understand this correctly, when I make a package from AUR, all of the dependecies must be already installed on my system?
That is, unless I use the --syncdeps flag?

If I use the --syncdeps flag, will that get all the dependecies?

Bart

Offline

#6 2023-02-24 03:27:59

loqs
Member
Registered: 2014-03-06
Posts: 18,962

Re: (SOLVED) Installing from AUR

syndeps only covers packages in the repositories.  Dependencies that are in AUR need to built and installed before the AUR package depending on it.

Offline

#7 2023-02-24 03:52:03

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 111

Re: (SOLVED) Installing from AUR

jasonwryan wrote:

Some of those packages are in the official repos, read the man page for makepkg to see how to install those first. The AUR packages you'll have to build yourself.

Someone, inevitably who has not used Arch for long, will tell you to just use an AUR helper. The reason that is a bad idea is that it will leave you in the dark about how this whole ecosystem works. Once you understand that, it is your informed decision about whether to use one or not.

Well, I followed your instructions and...  It Works!  Thank you!

One more question:  During this process, several directories were made in my home directories.  Do I need to keep these directories and the files in them?

Offline

#8 2023-02-24 03:59:02

loqs
Member
Registered: 2014-03-06
Posts: 18,962

Re: (SOLVED) Installing from AUR

mt_arch_user wrote:

During this process, several directories were made in my home directories.  Do I need to keep these directories and the files in them?

If you keep them you can use Arch_User_Repository#Upgrading_packages.  Otherwise you would follow the same process you have just used when you want to update one the packages you have just built.

Offline

#9 2023-02-24 04:07:03

mt_arch_user
Member
From: Montana, USA
Registered: 2023-01-17
Posts: 111

Re: (SOLVED) Installing from AUR

loqs wrote:
mt_arch_user wrote:

During this process, several directories were made in my home directories.  Do I need to keep these directories and the files in them?

If you keep them you can use Arch_User_Repository#Upgrading_packages.  Otherwise you would follow the same process you have just used when you want to update one the packages you have just built.

Aha!  Can I move these directories out on their present location?

Offline

#10 2023-02-24 04:10:01

loqs
Member
Registered: 2014-03-06
Posts: 18,962

Re: (SOLVED) Installing from AUR

mt_arch_user wrote:

Aha!  Can I move these directories out on their present location?

Yes.

Offline

Board footer

Powered by FluxBB