afadil / wealthfolio

A Beautiful Private and Secure Desktop Investment Tracking Application
https://wealthfolio.app
GNU Affero General Public License v3.0
4.3k stars 212 forks source link

javascriptcoregtk-4.0 Ubuntu 24.04 #96

Open Pipboyguy opened 1 month ago

Pipboyguy commented 1 month ago

Installing on ubuntu 24.04:

error: failed to run custom build command for `javascriptcore-rs-sys v0.4.0`

Caused by:
  process didn't exit successfully: `/home/marcel/.local/src/wealthfolio/src-tauri/target/release/build/javascriptcore-rs-sys-ae4523b3405adf6d/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  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-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  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-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags javascriptcoregtk-4.0 javascriptcoregtk-4.0 >= 2.24

  The system library `javascriptcoregtk-4.0` required by crate `javascriptcore-rs-sys` was not found.
  The file `javascriptcoregtk-4.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `javascriptcoregtk-4.0.pc`.

Can't find this package in apt repositories. Any suggestions?

❯ apt search javascriptcoregtk
Sorting... Done
Full Text Search... Done
gir1.2-javascriptcoregtk-4.1/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed,automatic]
  JavaScript engine library from WebKitGTK - GObject introspection data

gir1.2-javascriptcoregtk-6.0/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed,automatic]
  JavaScript engine library from WebKitGTK - GObject introspection data

libjavascriptcoregtk-4.0-bin/noble-updates,noble-updates,noble-security,noble-security 2.44.3-0ubuntu0.24.04.1 all
  WebKitGTK JavaScript command-line interpreter (transitional dummy package)

libjavascriptcoregtk-4.1-0/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed,automatic]
  JavaScript engine library from WebKitGTK

libjavascriptcoregtk-4.1-dev/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed]
  JavaScript engine library from WebKitGTK - development files

libjavascriptcoregtk-6.0-1/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed,automatic]
  JavaScript engine library from WebKitGTK

libjavascriptcoregtk-6.0-dev/noble-updates,noble-security,now 2.44.3-0ubuntu0.24.04.1 amd64 [installed]
  JavaScript engine library from WebKitGTK - development files

libjavascriptcoregtk-bin/noble-updates,noble-security 2.44.3-0ubuntu0.24.04.1 amd64
  JavaScript engine library from WebKitGTK - command-line interpreter
Robert-Araujo1 commented 1 month ago

I was with this same error here on ubuntu 24.04.

But I installed some packages and it worked. Here's my solution.

  1. Find your architecture. In my case, it's "amd64". Save this for the next step.

    dpkg --print-architecture
  2. Access debian website and search for the following packages. Download all of them, according with your architecture.

    • libjavascriptcoregtk-4.0-18
    • libjavascriptcoregtk-4.0-dev
    • libwebkit2gtk-4.0-37_2
    • libicu63
    • gir1.2-javascriptcoregtk-4.0
    • gir1.2-webkit2-4.0
    • libenchant1c2a
    • libgdk-pixbuf2.0-0
    • libjpeg62-turbo
    • libwebp6
    • libgdk-pixbuf-xlib-2.0-0
  3. Next, install all.

    dpkg -i <package_name>.deb

After these steps, try run it again.

Pipboyguy commented 1 month ago

@Robert-Araujo1 This is definitely an option, but ideally one should bump the dependencies to their latest.

I don't think this warning should be taken lately from the debian website:

image