Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux MintなどほかのDebian系への対応 #96

Open
friendbear opened this issue Nov 16, 2023 · 5 comments
Open

Linux MintなどほかのDebian系への対応 #96

friendbear opened this issue Nov 16, 2023 · 5 comments

Comments

@friendbear
Copy link

ぜひ使わせていただきたいので以下の環境でInstallを試みました。
image

実行したコマンドは以下になります

    5  2023-11-16 14:38:41 git clone https://github.com/kazuki0824/recisdb-rs.git
    6  2023-11-16 14:38:42 cd recisdb-rs
    7  2023-11-16 14:38:42 sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
    8  2023-11-16 14:38:45 cargo build -F dvb --release
    9  2023-11-16 14:39:13 sudo cp -a target/release/recisdb /usr/local/bin
   10  2023-11-16 14:39:51 brew install libdvbv5
   11  2023-11-16 14:40:20 brew install libdv
   12  2023-11-16 14:40:57 sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-cogit clone https://github.com/kazuki0824/recisdb-rs.git
   13  2023-11-16 14:40:57 cd recisdb-rs
   14  2023-11-16 14:40:57 sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
   15  2023-11-16 14:40:57 cargo build -F dvb --release
   16  2023-11-16 14:41:03 sudo cp -a target/release/recisdb /usr/local/bin
   17  2023-11-16 14:41:46 brew install libdvbv5-0
   18  2023-11-16 14:42:13 brew install libbi
   19  2023-11-16 14:42:45 git clone https://github.com/kazuki0824/recisdb-rs.git
   20  2023-11-16 14:42:46 cd recisdb-rs
   21  2023-11-16 14:42:46 sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
   22  2023-11-16 14:42:46 cargo build -F dvb --release
   23  2023-11-16 14:43:06 sudo cp -a target/release/recisdb /usr/local/bin
   24  2023-11-16 14:43:20 brew install libdvbv5

実行結果は以下になります

~/GitHub
✦2 ➜ git clone https://github.com/kazuki0824/recisdb-rs.git
cd recisdb-rs
sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
cargo build -F dvb --release
sudo cp -a target/release/recisdb /usr/local/bin
Cloning into 'recisdb-rs'...
remote: Enumerating objects: 1997, done.
remote: Counting objects: 100% (442/442), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 1997 (delta 285), reused 243 (delta 234), pack-reused 1555
Receiving objects: 100% (1997/1997), 349.72 KiB | 2.57 MiB/s, done.
Resolving deltas: 100% (1185/1185), done.
Enter PIN for 'Certificate For PIV Authentication (Yubico PIV Authentication)':
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.

    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5.git`
    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git`
    Updating crates.io index
    Updating git repository `https://github.com/kazuki0824/cryptographies-reference.git`
  Downloaded lazycell v1.3.0
  Downloaded os_str_bytes v6.6.1
  Downloaded toml v0.8.8
  Downloaded concurrent-queue v2.3.0
  Downloaded libloading v0.8.1
  Downloaded futures-io v0.3.29
  Downloaded indexmap v2.1.0
  Downloaded number_prefix v0.4.0
  Downloaded xattr v1.0.1
  Downloaded futures-executor v0.3.29
  Downloaded rustc-hash v1.1.0
  Downloaded quick-error v2.0.1
  Downloaded ctrlc v3.4.1
  Downloaded cexpr v0.6.0
  Downloaded clang-sys v1.6.1
  Downloaded tar v0.4.40
  Downloaded indicatif v0.17.7
  Downloaded toml_edit v0.21.0
  Downloaded bindgen v0.68.1
  Downloaded rustix v0.38.24
  Downloaded ar v0.9.0
  Downloaded futures-time v3.0.0
  Downloaded zopfli v0.8.0
  Downloaded lzma-sys v0.1.20
  Downloaded cargo-deb v2.0.0
  Downloaded cpp_utils v0.3.0
  Downloaded clap-num v1.0.2
  Downloaded nix v0.27.1
  Downloaded hashbrown v0.14.2
  Downloaded portable-atomic v1.5.1
  Downloaded winnow v0.5.19
  Downloaded rustix v0.37.27
  Downloaded clap v3.2.25
  Downloaded rayon v1.8.0
  Downloaded textwrap v0.16.0
  Downloaded cargo_toml v0.16.3
  Downloaded rayon-core v1.12.0
  Downloaded toml_datetime v0.6.5
  Downloaded clap_derive v3.2.25
  Downloaded errno v0.3.7
  Downloaded xz2 v0.1.7
  Downloaded clap_lex v0.2.4
  Downloaded waker-fn v1.1.1
  Downloaded typed-arena v2.0.2
  Downloaded serde_spanned v0.6.4
  Downloaded parking v2.2.0
  Downloaded getopts v0.2.21
  Downloaded cmake v0.1.50
  Downloaded md5 v0.7.0
  Downloaded flate2 v1.0.28
  Downloaded libloading v0.7.4
  Downloaded 51 crates (3.9 MB) in 2.09s
   Compiling libc v0.2.150
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling pkg-config v0.3.27
   Compiling serde v1.0.192
   Compiling crossbeam-utils v0.8.16
   Compiling memchr v2.6.4
   Compiling bitflags v2.4.1
   Compiling glob v0.3.1
   Compiling futures-core v0.3.29
   Compiling version_check v0.9.4
   Compiling rustix v0.38.24
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling hashbrown v0.14.2
   Compiling aho-corasick v1.1.2
   Compiling crc32fast v1.3.2
   Compiling regex-syntax v0.8.2
   Compiling scopeguard v1.2.0
   Compiling equivalent v1.0.1
   Compiling indexmap v2.1.0
   Compiling clang-sys v1.6.1
   Compiling slab v0.4.9
   Compiling quote v1.0.33
   Compiling winnow v0.5.19
   Compiling rayon-core v1.12.0
   Compiling pin-project-lite v0.2.13
   Compiling syn v2.0.39
   Compiling crossbeam-deque v0.8.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling io-lifetimes v1.0.11
   Compiling log v0.4.20
   Compiling either v1.9.0
   Compiling adler v1.0.2
   Compiling serde_json v1.0.108
   Compiling syn v1.0.109
   Compiling futures-io v0.3.29
   Compiling minimal-lexical v0.2.1
   Compiling miniz_oxide v0.7.1
   Compiling nom v7.1.3
   Compiling dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)
   Compiling proc-macro-error v1.0.4
   Compiling cc v1.0.83
   Compiling errno v0.3.7
   Compiling xattr v1.0.1
   Compiling filetime v0.2.22
   Compiling polling v2.8.0
   Compiling num-traits v0.2.17
   Compiling libloading v0.7.4
   Compiling futures-task v0.3.29
   Compiling typed-arena v2.0.2
   Compiling regex-automata v0.4.3
   Compiling termcolor v1.4.0
   Compiling bindgen v0.68.1
   Compiling humantime v2.1.0
   Compiling itoa v1.0.9
   Compiling cargo-deb v2.0.0
   Compiling unicode-width v0.1.11
   Compiling rustix v0.37.27
   Compiling event-listener v2.5.3
   Compiling ryu v1.0.15
   Compiling fastrand v2.0.1
   Compiling bitflags v1.3.2
   Compiling getopts v0.2.21
   Compiling cmake v0.1.50
   Compiling rayon v1.8.0
   Compiling zopfli v0.8.0
   Compiling lzma-sys v0.1.20
   Compiling tar v0.4.40
   Compiling is-terminal v0.4.9
   Compiling tempfile v3.8.1
error: failed to run custom build command for `dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)`

Caused by:
  process didn't exit successfully: `/Users/k22/GitHub/recisdb-rs/target/release/build/dvbv5-sys-0219447a41237edb/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBDVBV5_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBDVBV5_STATIC
  cargo:rerun-if-env-changed=LIBDVBV5_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /Users/k22/.cargo/git/checkouts/rust-libdvbv5-sys-8a1d416c3e62894c/7cab8db/build.rs:32:49:
  called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" "pkg-config" "--libs" "--cflags" "libdvbv5"` did not exit successfully: exit status: 1
  error: could not find system library 'libdvbv5' required by the 'dvbv5-sys' crate

  --- stderr
  Package libdvbv5 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libdvbv5.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libdvbv5' found

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
cp: target/release/recisdb: No such file or directory

recisdb-rs on  master via 🦀 v1.73.0 took 33s
✦ ❯ brew install libdvbv5
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 9 taps (virtuslab/scala-cli, hashicorp/tap, homebrew/cask-versions, homebrew/bundle, homebrew/cask-fonts, snyk/tap, aws/tap, homebrew/core and homebrew/cask).
==> New Formulae
asitop              faircamp            intercept           python-jinja        ruler
biodiff             flyscrape           minder              python-networkx     witness
bkcrack             geoip2fast          pdfalyzer           python-sympy
==> New Casks
deskpad                  font-material-symbols    jazz2-resurrection       ok-json
douyin-chat              hoppscotch               libndi

You have 33 outdated formulae and 1 outdated cask installed.

Warning: No available formula with the name "libdvbv5". Did you mean libdv?
==> Searching for similarly named formulae and casks...
==> Formulae
libdv

To install libdv, run:
  brew install libdv

recisdb-rs on  master via 🦀 v1.73.0
✦ ❯ brew install libdv
==> Downloading https://ghcr.io/v2/homebrew/core/libdv/manifests/1.0.0-1
############################################################################################# 100.0%
==> Fetching dependencies for libdv: popt
==> Downloading https://ghcr.io/v2/homebrew/core/popt/manifests/1.19
############################################################################################# 100.0%
==> Fetching popt
==> Downloading https://ghcr.io/v2/homebrew/core/popt/blobs/sha256:4826c003aae6f5407fc0f7e9db8ae2a8e
############################################################################################# 100.0%
==> Fetching libdv
==> Downloading https://ghcr.io/v2/homebrew/core/libdv/blobs/sha256:e9109a663d65ae5085c53d011421cc9c
############################################################################################# 100.0%
==> Installing dependencies for libdv: popt
==> Installing libdv dependency: popt
==> Downloading https://ghcr.io/v2/homebrew/core/popt/manifests/1.19
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/94e6f7b21ebef77002bacd7723041fffb66adc4c45ea452722ff5ab60d0a14e7--popt-1.19.bottle_manifest.json
==> Pouring popt--1.19.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/popt/1.19: 10 files, 173.4KB
==> Installing libdv
==> Pouring libdv--1.0.0.ventura.bottle.1.tar.gz
🍺  /usr/local/Cellar/libdv/1.0.0: 21 files, 493.9KB
==> Running `brew cleanup libdv`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

recisdb-rs on  master via 🦀 v1.73.0
✦ ➜ sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-cogit clone https://github.com/kazuki0824/recisdb-rs.git
cd recisdb-rs
sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
cargo build -F dvb --release
sudo cp -a target/release/recisdb /usr/local/bin
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.

The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.

   Compiling serde_derive v1.0.192
   Compiling regex v1.10.2
   Compiling lzma-sys v0.1.20
   Compiling dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)
   Compiling syn v1.0.109
   Compiling io-lifetimes v1.0.11
   Compiling proc-macro-error v1.0.4
   Compiling cexpr v0.6.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling itertools v0.11.0
   Compiling concurrent-queue v2.3.0
   Compiling flate2 v1.0.28
   Compiling xz2 v0.1.7
   Compiling crossbeam-channel v0.5.8
error: failed to run custom build command for `dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)`

Caused by:
  process didn't exit successfully: `/Users/k22/GitHub/recisdb-rs/target/release/build/dvbv5-sys-0219447a41237edb/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBDVBV5_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBDVBV5_STATIC
  cargo:rerun-if-env-changed=LIBDVBV5_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /Users/k22/.cargo/git/checkouts/rust-libdvbv5-sys-8a1d416c3e62894c/7cab8db/build.rs:32:49:
  called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" "pkg-config" "--libs" "--cflags" "libdvbv5"` did not exit successfully: exit status: 1
  error: could not find system library 'libdvbv5' required by the 'dvbv5-sys' crate

  --- stderr
  Package libdvbv5 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libdvbv5.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libdvbv5' found

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
cp: target/release/recisdb: No such file or directory

recisdb-rs/recisdb-rs on  master via 🦀 v1.73.0
✦ ❯ brew install libdvbv5-0
Warning: No available formula with the name "libdvbv5-0". Did you mean libdbi?
==> Searching for similarly named formulae and casks...
==> Formulae
libdbi

To install libdbi, run:
  brew install libdbi

recisdb-rs/recisdb-rs on  master via 🦀 v1.73.0
✦ ❯ brew install libbi
==> Downloading https://ghcr.io/v2/homebrew/core/libbi/manifests/1.4.5_4
############################################################################################# 100.0%
==> Fetching dependencies for libbi: automake, gsl, libaec, hdf5, netcdf and qrupdate
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
############################################################################################# 100.0%
==> Fetching automake
==> Downloading https://ghcr.io/v2/homebrew/core/automake/blobs/sha256:ae77a247a13ea860236a29b02769f
############################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gsl/manifests/2.7.1
############################################################################################# 100.0%
==> Fetching gsl
==> Downloading https://ghcr.io/v2/homebrew/core/gsl/blobs/sha256:9e28ec4b8e62b94c208312780b63f417b0
############################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libaec/manifests/1.1.2
############################################################################################# 100.0%
==> Fetching libaec
==> Downloading https://ghcr.io/v2/homebrew/core/libaec/blobs/sha256:5f42304a1ff88ca94ec7ff8f8e2f7cc
############################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/manifests/1.14.3
############################################################################################# 100.0%
==> Fetching hdf5
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/blobs/sha256:7b75e6dc9ebe984a7786a540609858002
############################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/netcdf/manifests/4.9.2_1
############################################################################################# 100.0%
==> Fetching netcdf
==> Downloading https://ghcr.io/v2/homebrew/core/netcdf/blobs/sha256:731dc8e39faaa4f0a9a0f04c3513618
############################################################################################# 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/qrupdate/manifests/1.1.2_15
############################################################################################# 100.0%
==> Fetching qrupdate
==> Downloading https://ghcr.io/v2/homebrew/core/qrupdate/blobs/sha256:eae9333e11a79c651d8313e0b9c96
############################################################################################# 100.0%
==> Fetching libbi
==> Downloading https://ghcr.io/v2/homebrew/core/libbi/blobs/sha256:dd70fd096c61c3df6ac7ae162bdca03a
############################################################################################# 100.0%
==> Installing dependencies for libbi: automake, gsl, libaec, hdf5, netcdf and qrupdate
==> Installing libbi dependency: automake
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/6863d3ffa73c5a5cbf1f1ea9e47b60784d09b232ac9e56149c1b931d9ec44d8b--automake-1.16.5.bottle_manifest.json
==> Pouring automake--1.16.5.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/automake/1.16.5: 131 files, 3.5MB
==> Installing libbi dependency: gsl
==> Downloading https://ghcr.io/v2/homebrew/core/gsl/manifests/2.7.1
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/ccc57d0d588c8f68375a9367b84e846779d5264af8abcec35bb966d01529d46c--gsl-2.7.1.bottle_manifest.json
==> Pouring gsl--2.7.1.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/gsl/2.7.1: 290 files, 10.1MB
==> Installing libbi dependency: libaec
==> Downloading https://ghcr.io/v2/homebrew/core/libaec/manifests/1.1.2
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/b23aa9b445440a24bced4e836a63a5084debb1446f41886db93afdd6609b4ff7--libaec-1.1.2.bottle_manifest.json
==> Pouring libaec--1.1.2.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/libaec/1.1.2: 18 files, 196.1KB
==> Installing libbi dependency: hdf5
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/manifests/1.14.3
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/0d5191afae4109a42644c03e749fec9f45625cec1c2cfad7b50b76e758c99284--hdf5-1.14.3.bottle_manifest.json
==> Pouring hdf5--1.14.3.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/hdf5/1.14.3: 287 files, 18.9MB
==> Installing libbi dependency: netcdf
==> Downloading https://ghcr.io/v2/homebrew/core/netcdf/manifests/4.9.2_1
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/3536eeabad8f36e10606ea2676e126c17d783b46387892077d098bb77f310578--netcdf-4.9.2_1.bottle_manifest.json
==> Pouring netcdf--4.9.2_1.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/netcdf/4.9.2_1: 31 files, 3.7MB
==> Installing libbi dependency: qrupdate
==> Downloading https://ghcr.io/v2/homebrew/core/qrupdate/manifests/1.1.2_15
Already downloaded: /Users/k22/Library/Caches/Homebrew/downloads/54e58e8b1989401aabe8bf10ac603b7be83672b1bb906c4b4ab091dd839de6c3--qrupdate-1.1.2_15.bottle_manifest.json
==> Pouring qrupdate--1.1.2_15.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/qrupdate/1.1.2_15: 11 files, 477.7KB
==> Installing libbi
==> Pouring libbi--1.4.5_4.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/libbi/1.4.5_4: 2,209 files, 13.7MB
==> Running `brew cleanup libbi`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

recisdb-rs/recisdb-rs on  master via 🦀 v1.73.0
✦ ➜ git clone https://github.com/kazuki0824/recisdb-rs.git
cd recisdb-rs
sudo apt install -y build-essential clang cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config
cargo build -F dvb --release
sudo cp -a target/release/recisdb /usr/local/bin
Cloning into 'recisdb-rs'...
remote: Enumerating objects: 1997, done.
remote: Counting objects: 100% (442/442), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 1997 (delta 285), reused 243 (delta 234), pack-reused 1555
Receiving objects: 100% (1997/1997), 349.72 KiB | 3.46 MiB/s, done.
Resolving deltas: 100% (1185/1185), done.
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.

    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5.git`
    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git`
    Updating crates.io index
    Updating git repository `https://github.com/kazuki0824/cryptographies-reference.git`
   Compiling libc v0.2.150
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling pkg-config v0.3.27
   Compiling serde v1.0.192
   Compiling memchr v2.6.4
   Compiling crossbeam-utils v0.8.16
   Compiling futures-core v0.3.29
   Compiling rustix v0.38.24
   Compiling glob v0.3.1
   Compiling version_check v0.9.4
   Compiling bitflags v2.4.1
   Compiling memoffset v0.9.0
   Compiling crossbeam-epoch v0.9.15
   Compiling scopeguard v1.2.0
   Compiling hashbrown v0.14.2
   Compiling aho-corasick v1.1.2
   Compiling regex-syntax v0.8.2
   Compiling crc32fast v1.3.2
   Compiling equivalent v1.0.1
   Compiling clang-sys v1.6.1
   Compiling slab v0.4.9
   Compiling quote v1.0.33
   Compiling pin-project-lite v0.2.13
   Compiling rayon-core v1.12.0
   Compiling syn v2.0.39
   Compiling winnow v0.5.19
   Compiling indexmap v2.1.0
   Compiling crossbeam-deque v0.8.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling serde_json v1.0.108
   Compiling syn v1.0.109
   Compiling log v0.4.20
   Compiling either v1.9.0
   Compiling adler v1.0.2
   Compiling cc v1.0.83
   Compiling errno v0.3.7
   Compiling minimal-lexical v0.2.1
   Compiling io-lifetimes v1.0.11
   Compiling futures-io v0.3.29
   Compiling nom v7.1.3
   Compiling filetime v0.2.22
   Compiling xattr v1.0.1
   Compiling miniz_oxide v0.7.1
   Compiling dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)
   Compiling proc-macro-error v1.0.4
   Compiling num-traits v0.2.17
   Compiling polling v2.8.0
   Compiling libloading v0.7.4
   Compiling futures-task v0.3.29
   Compiling itoa v1.0.9
   Compiling regex-automata v0.4.3
   Compiling fastrand v2.0.1
   Compiling typed-arena v2.0.2
   Compiling unicode-width v0.1.11
   Compiling lzma-sys v0.1.20
   Compiling humantime v2.1.0
   Compiling termcolor v1.4.0
   Compiling bitflags v1.3.2
   Compiling bindgen v0.68.1
   Compiling event-listener v2.5.3
   Compiling rustix v0.37.27
   Compiling cargo-deb v2.0.0
   Compiling ryu v1.0.15
   Compiling zopfli v0.8.0
   Compiling getopts v0.2.21
   Compiling xz2 v0.1.7
   Compiling is-terminal v0.4.9
   Compiling tempfile v3.8.1
   Compiling rayon v1.8.0
   Compiling concurrent-queue v2.3.0
   Compiling flate2 v1.0.28
error: failed to run custom build command for `dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix/latest-bindgen-unaligned-access#7cab8db0)`

Caused by:
  process didn't exit successfully: `/Users/k22/GitHub/recisdb-rs/recisdb-rs/recisdb-rs/target/release/build/dvbv5-sys-0219447a41237edb/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBDVBV5_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBDVBV5_STATIC
  cargo:rerun-if-env-changed=LIBDVBV5_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /Users/k22/.cargo/git/checkouts/rust-libdvbv5-sys-8a1d416c3e62894c/7cab8db/build.rs:32:49:
  called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" "pkg-config" "--libs" "--cflags" "libdvbv5"` did not exit successfully: exit status: 1
  error: could not find system library 'libdvbv5' required by the 'dvbv5-sys' crate

  --- stderr
  Package libdvbv5 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libdvbv5.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libdvbv5' found

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
cp: target/release/recisdb: No such file or directory

recisdb-rs on  master via 🦀 v1.73.0
✦ ❯ brew install libdvbv5
Warning: No available formula with the name "libdvbv5". Did you mean libdv?
==> Searching for similarly named formulae and casks...
==> Formulae
libdv ✔

To install libdv ✔, run:
  brew install libdv ✔

実行後の
PKG_CONFFIG_PATHは以下の設定になっているので

✦ ➜ echo $PKG_CONFIG_PATH
/usr/local/opt/openssl@3/lib/pkgconfig

**前提としましてPKG_CONFIG_PATHの設定方法は知っております。
libdvb5 を追加しようと思い、ライブラリの場所を探しています。
そのため 以下のクエリを実行しましたが良さそうなものが見つかりません。

search query

お手数ですがご教授いただけませんでしょうか。

@tsukumijima
Copy link
Collaborator

私は recisdb の開発のお手伝いをしている程度の者ですが、まず recisdb では macOS は一切サポートされていません。
まず macOS 向けの TS 抜きチューナードライバが基本ありませんので (少なくとも recisdb で対応している chardev 版と V4L-DVB 版に対応したものはないし、まず macOS と Linux ではドライバの作法自体が全く異なる) 、仮にビルドに成功したとしても利用は不可能だと考えられます。

@friendbear
Copy link
Author

ご回答いただきありがとうございます😊

Linuxで再度挑戦させていただきます。
次に試すのはLinux Mintを予定しております。

また何かありましたらご教授いただけますと幸いでしす。

何卒よろしくお願いします🙇

@kazuki0824
Copy link
Owner

@friendbear 確認はしていないものの、Mintなら動くはずです。Debian系は少なくとも全てカバーしておきたい思いがあるので、もし動かなければ教えてください。

@friendbear
Copy link
Author

動作確認遅れてしまい申し訳ありません。

設定ログを後日こちら💁のISSUEに報告させてください。

@kazuki0824
Copy link
Owner

kazuki0824 commented Nov 20, 2023

あと、Linux, Windows(UWPやARM除く)についてはdecodeのみサポートしてもいいかもですね。
チューナデバイスを開くのは前述のとおり、Windows or Linuxしか択がないのですが、decodeはWindowsだとシステムのwinscard.dll、それ以外だとlibpcsclite (https://pcsclite.apdu.fr/ 末尾)があれば動かせるはずなので、サポートはしないがビルドは通るようにするのは可能だと思います

@kazuki0824 kazuki0824 reopened this Nov 20, 2023
@kazuki0824 kazuki0824 changed the title [QUESTION] Intel macOS 13.6.1 において実行に必要なライブラリの場所をご教授いただけませんでしょうか。 Linux MintなどほかのDebian系への対応 Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants