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

Unable to run Tusk after AUR installation #186

Open
lelelemonade opened this issue Apr 12, 2019 · 10 comments
Open

Unable to run Tusk after AUR installation #186

lelelemonade opened this issue Apr 12, 2019 · 10 comments
Labels

Comments

@lelelemonade
Copy link

on arch linux i install from aur,but it just do not launch,here is what happen

Screenshot_20190412_102532

@quaeched
Copy link

Same here. I had issue with missing libnode.so.
Literally

tusk: error while loading shared libraries: libnode.so: cannot open shared object file: No such file or directory

Apparently, in Electron 4.0.0 and newer, there should be none, according to this thread.
After I did export LD_LIBRARY_PATH=/opt/gitkraken/, for there the file is located, I received the same message as described by @lelelemonade.

Downloading a binary from here enables me to run the application once again.

@azisaka
Copy link

azisaka commented Apr 13, 2019

Same here, it happened after upgrading electron to electron-4.1.1-2 on archlinux.

@piedrok
Copy link

piedrok commented Apr 16, 2019

Exactly the same problem here...

IS there any workaround?

@quaeched
Copy link

@piedrok, here.

Downloading a binary from here enables me to run the application once again.

@chiboreache
Copy link

+1

@klaudiosinani
Copy link
Owner

Please download the RMP binaries from the latest GitHub release, since the AUR repository is not officially maintained or supported and the readme reference to it will be removed as soon as possible.

@klaudiosinani klaudiosinani changed the title tusk wont start Unable to run Tusk after AUR installation Apr 20, 2019
@chiboreache
Copy link

But why?

AUR is just an install script for exact the same RPM bin's

@azisaka
Copy link

azisaka commented Apr 22, 2019

The problem is the electron version used to compile the source code. Tusk requires 3.x and Archlinux offers the 4.x. The 4.x doesn't support linking to libnode.so.

@azisaka
Copy link

azisaka commented Apr 22, 2019

To make it installable on Archlinux I've created the PKGBUILD

pkgname=tusk
pkgver=0.22.0
pkgrel=20190422
pkgdesc="Refined Evernote desktop app"
arch=('x86_64')
url="https://github.com/klaussinani/tusk"
license=('MIT')
makedepends=('rpmextract')
source=(
    "https://github.com/klaussinani/tusk/releases/download/v$pkgver/tusk-$pkgver.$arch.rpm"
)
md5sums=(
    '4bfc35758359ba20de328758b94e7341'
)

build() {
    rpmextract.sh tusk-$pkgver.$arch.rpm
}

package() {
  cd "${srcdir}/opt/Tusk"

  install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}" ./*.pak ./*.dat ./*.bin ./*.so
  install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/locales" ./locales/*
  install -Dm644 -t "${pkgdir}/usr/lib/${pkgname}/resources" ./resources/*
  install -Dm755 -t "${pkgdir}/usr/lib/${pkgname}" ./${pkgname}

  install -dm755 "${pkgdir}/usr/bin"
  ln -sf "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"

  install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}

And the new tusk.desktop file

[Desktop Entry]
Name=Tusk
Comment=Refined Evernote desktop app
Exec="/usr/bin/tusk" %U
Terminal=false
Type=Application
Icon=tusk
Categories=Productivity;

Just create a directory somewhere called tusk and put the PKGBUILD inside it. Then create the src directory and put the tusk.desktop file there.

Run the following:

makepkg -g
makepkg
sudo pacman -U tusk-0.22.0-20190422-x86_64.pkg.tar.xz

Now you have the binary available in an Archlinux fashion.

@chiboreache
Copy link

@azisaka
or much easier - just use functionality of aur wrapper, and edit PKGBUILD after -S tusk

worked like a charm, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants