Cant install spotify-tui via yay

[i3hunor@HunorT480 ~]$  yay -S spotify-tui
:: There are 3 providers available for spotify-tui:
:: Repository AUR
    1) spotify-tui 2) spotify-tui-bin 3) spotify-tui-git 

Enter a number (default=1): 
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  spotify-tui-0.25.0-1

  1 spotify-tui                              (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/i3hunor/.cache/yay/spotify-tui
:: (1/1) Downloaded PKGBUILD: spotify-tui
  1 spotify-tui                              (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/1) Parsing SRCINFO: spotify-tui
==> Making package: spotify-tui 0.25.0-1 (Mon 28 Mar 2022 08:56:01 PM CEST)
==> Retrieving sources...
  -> Downloading spotify-tui-0.25.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   140  100   140    0     0    373      0 --:--:-- --:--:-- --:--:--   373
100  569k    0  569k    0     0   556k      0 --:--:--  0:00:01 --:--:-- 4284k
==> Validating source files with sha512sums...
    spotify-tui-0.25.0.tar.gz ... Passed
==> Making package: spotify-tui 0.25.0-1 (Mon 28 Mar 2022 08:56:04 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found spotify-tui-0.25.0.tar.gz
==> Validating source files with sha512sums...
    spotify-tui-0.25.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting spotify-tui-0.25.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: spotify-tui 0.25.0-1 (Mon 28 Mar 2022 08:56:06 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
   Compiling libc v0.2.82
   Compiling autocfg v1.0.0
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling cfg-if v0.1.10
   Compiling log v0.4.11
   Compiling memchr v2.3.3
   Compiling lazy_static v1.4.0
   Compiling bitflags v1.2.1
   Compiling cfg-if v1.0.0
   Compiling slab v0.4.2
   Compiling byteorder v1.3.4
   Compiling futures-core v0.3.5
   Compiling pin-project-internal v0.4.22
   Compiling futures-sink v0.3.5
   Compiling cc v1.0.58
   Compiling fnv v1.0.7
   Compiling bytes v0.5.6
   Compiling proc-macro-nested v0.1.6
   Compiling pkg-config v0.3.18
   Compiling autocfg v0.1.7
   Compiling proc-macro-hack v0.5.16
   Compiling rand_core v0.4.2
   Compiling proc-macro2 v0.4.30
   Compiling version_check v0.9.2
   Compiling once_cell v1.4.0
   Compiling itoa v0.4.6
   Compiling serde_derive v1.0.128
   Compiling pin-utils v0.1.0
   Compiling futures-io v0.3.5
   Compiling pin-project-lite v0.1.7
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling tinyvec v0.3.3
   Compiling adler v0.2.3
   Compiling matches v0.1.8
   Compiling serde v1.0.128
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.30
   Compiling ident_case v1.0.1
   Compiling strsim v0.7.0
   Compiling httparse v1.3.4
   Compiling native-tls v0.2.4
   Compiling ryu v1.0.5
   Compiling crc32fast v1.2.1
   Compiling gimli v0.23.0
   Compiling failure_derive v0.1.8
   Compiling adler32 v1.2.0
   Compiling try-lock v0.2.3
   Compiling openssl-probe v0.1.2
   Compiling getrandom v0.2.2
   Compiling signal-hook v0.3.9
   Compiling scopeguard v1.1.0
   Compiling percent-encoding v2.1.0
   Compiling object v0.23.0
   Compiling tower-service v0.3.0
   Compiling rustc-demangle v0.1.16
   Compiling encoding_rs v0.8.23
   Compiling serde_json v1.0.64
   Compiling smallvec v1.4.1
   Compiling either v1.5.3
   Compiling dtoa v0.4.6
   Compiling regex-syntax v0.6.18
   Compiling mime v0.3.16
   Compiling quick-error v1.2.3
   Compiling derive_builder v0.7.2
   Compiling unicode-width v0.1.8
   Compiling weezl v0.1.3
   Compiling anyhow v1.0.43
   Compiling base64 v0.12.3
   Compiling rustc-serialize v0.3.24
   Compiling termcolor v1.1.0
   Compiling percent-encoding v1.0.1
   Compiling bytemuck v1.4.1
   Compiling linked-hash-map v0.5.3
   Compiling ppv-lite86 v0.2.8
   Compiling color_quant v1.1.0
   Compiling ansi_term v0.11.0
   Compiling strsim v0.8.0
   Compiling unicode-segmentation v1.6.0
   Compiling random v0.12.2
   Compiling cassowary v0.3.0
   Compiling webbrowser v0.5.5
   Compiling vec_map v0.8.2
   Compiling instant v0.1.7
   Compiling tracing-core v0.1.11
   Compiling thread_local v1.0.1
   Compiling futures-channel v0.3.5
   Compiling num-traits v0.2.12
   Compiling miniz_oxide v0.4.3
   Compiling hashbrown v0.8.1
   Compiling indexmap v1.5.0
   Compiling num-integer v0.1.43
   Compiling num-iter v0.1.42
   Compiling num-rational v0.3.2
   Compiling rand_core v0.3.1
   Compiling rand_jitter v0.1.4
   Compiling rand_chacha v0.1.1
   Compiling rand_pcg v0.1.2
   Compiling rand v0.6.5
   Compiling futures-task v0.3.5
   Compiling http v0.2.1
   Compiling unicase v2.6.0
   Compiling unicode-bidi v0.3.4
   Compiling foreign-types v0.3.2
   Compiling unicode-normalization v0.1.13
   Compiling miniz_oxide v0.3.7
   Compiling openssl-sys v0.9.58
   Compiling lock_api v0.4.1
   Compiling itertools v0.8.2
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling yaml-rust v0.4.5
   Compiling addr2line v0.14.1
   Compiling rand_xorshift v0.1.1
   Compiling rand_hc v0.1.0
   Compiling rand_isaac v0.1.1
   Compiling idna v0.2.0
   Compiling idna v0.1.5
   Compiling http-body v0.3.1
error: failed to run custom build command for `openssl-sys v0.9.58`

Caused by:
  process didn't exit successfully: `/home/i3hunor/.cache/yay/spotify-tui/src/spotify-tui-0.25.0/target/release/build/openssl-sys-57be104769787e05/build-script-main` (exit status: 101)
  --- stdout
  run pkg_config fail: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"`: No such file or directory (os error 2)"

  --- stderr
  thread 'main' panicked at '

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at
  and include information about your system as well as this message.

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = x86_64-unknown-linux-gnu
  openssl-sys = 0.9.58

  It looks like you're compiling on Linux and also targeting Linux. Currently this
  requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
  could not be found. If you have OpenSSL installed you can likely fix this by
  installing `pkg-config`.

  ', /home/i3hunor/.cargo/registry/src/
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
 -> error making: spotify-tui

I opened an issue for this on github, but no answer

Do you have openssl and pkgconf installed?

1 Like

Well i dont think so.
I will try to install it.


pkg-config is part of pkgconf which is in the base-devel group. The packages from that group are required for using the AUR:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.