Author Topic: Beersmith won't launch on Arch Linux 64 bits  (Read 4550 times)

Offline Exortus

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
  • BeerSmith 2 Rocks!
Beersmith won't launch on Arch Linux 64 bits
« on: December 24, 2017, 09:40:55 PM »
the error I'm getting

Quote
beersmith2: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

I could not find this file in any repository nor in any package.
I have all the dependencies installed

Offline bhanson

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 16
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #1 on: December 25, 2017, 12:51:39 PM »
I run 64 bit Debian, and have been seeing similar problems.  I get these references:
No locals.
#3  0x00007f90839d86ac in ?? () from /usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0
No symbol table info available.
#4  0x00007f90839d9d25 in ?? () from /usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0
No symbol table info available.
#5  0x00007f907f79e8ba in ?? () from /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-1.0.so.0

At the time Beersmith stopped running, I noticed that Debian had just updated the libwebkitgtk components. 

I think that the problem is in packaging.  For most Linux packages, the dependencies are defined and confined, so that it will prevent automatic updates until it is rebuilt to match.  It's likely that all the Linux distributions will one by one stop running this particular bundle.  It will need to be rebuilt with more modern components to match.

Not sure if that helps.  I haven't had any luck.  If I try to downgrade libwebkitgtk, it would blow away lots of other software.

Offline Exortus

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #2 on: December 25, 2017, 07:48:38 PM »
If I try to downgrade libwebkitgtk, it would blow away lots of other software.

That's exactly why I havent tried that yet, let's just hope they rebuild it to gtk3.

Offline bhanson

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 16
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #3 on: December 31, 2017, 06:10:48 AM »
Yes.  I'm sure Brad will be on it; it's hard to support lots of distributions which all have quirks and differences.  I think this is going to be pretty pervasive though.

Just FYI - I had no issues installing and running Beersmith using Wine, although I don't see how to point it at my document directory without crashing it.  Good enough to make things work until it's fixed.

Offline Exortus

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #4 on: December 31, 2017, 06:13:02 AM »
If I try to downgrade libwebkitgtk, it would blow away lots of other software.

That's exactly why I havent tried that yet, let's just hope they rebuild it to gtk3.

Just a quick update, I was able to find that specific library at rpmfind.net. I downloaded the rpm file, extracted and placed it under /lib.
The error was gone but unfortunally the same error happened to other libraries, So, at this point I belive that I'll have to download one by one in order to make Beersmith run.

Offline bhanson

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 16
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #5 on: January 12, 2018, 05:44:01 AM »
Yeah.  I guess that would work, and you could probably make a temporary directory and include it somehow in your module path, so that all those files don't just get lost forever in the clutter.  I don't think it's a good idea, but if I get desperate maybe.  In the meantime, I'm running under Wine.  At least I can easily use calculators and so forth, and I can transfer recipes later when things run again.

Offline sgreene

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 9
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #6 on: January 18, 2018, 06:23:01 PM »
This has been going on since September with Ubuntu and Mint. I'm starting to think we aren't a development priority, to put it mildly!

I suggested they look into one of the new packaging format, snapd or flatpak, as they can bundle it with statically linked libraries in a sandbox, bin-bang-bim... bob's your uncle, no worrying about dependencies.

Offline jem

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
  • Brewing since 2010
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #7 on: January 21, 2018, 10:11:20 AM »
After upgrading to Fedora 27 the fix is to leverage the Gnome Cash (gnucash) package which still uses the  libwebkitgtk-1.0 and libjavascriptcoregtk-1.0 libraries which are bundled into the rpm.  Then use symbolic links to address the wxwidgets requirements. For me this will hold until the next beersmith addresses the issue (like port to wxGTK3/wxwidgets3).

The fix for Fedora 27 with BeerSmith 2.3.12:

yum install gnucash
ln -s /usr/lib64/gnucash/libwebkitgtk-1.0.so.0.22.17 /usr/lib64/libwebkitgtk-1.0.so.0
ln -s /usr/lib64/gnucash/libjavascriptcoregtk-1.0.so.0.16.19 /usr/lib64/libjavascriptcoregtk-1.0.so.0

Apologies to Debian/Ubuntu users as my getapt is rusty so you will have to adjust the lib locations appropriately.

Unfortunately for Arch Linux users gnucash package was dropped from that distro.

Offline cegolf

  • BeerSmith New Brewer
  • *
  • Posts: 1
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #8 on: January 31, 2018, 09:18:09 PM »
I just want to confirm that this workaround works.  Thanks!

Offline bhanson

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 16
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #9 on: February 11, 2018, 10:05:39 AM »
In Debian, the library path should be /usr/lib/x86/lib/x86_64-linux-gnu


Offline iamben

  • BeerSmith New Brewer
  • *
  • Posts: 1
  • BeerSmith 2 Rocks!
Re: Beersmith won't launch on Arch Linux 64 bits
« Reply #10 on: February 22, 2018, 09:54:43 AM »
I hope this gets fixed soon.  This version of webkit-gtk is long-dead upstream and is riddled with security holes.