Broken dependencies on libwebkit2gtk installing citrix-workspace package

Hi dear nix pros!

my wife needs to work from at home, so I tried to install the citrix workspace package. Tried both citrix-workspace-19.0.8 and (after switching to unstable) with citrix-workspace-19.12.0

Both stop with an error. When checking the output of nix-env -i citrix-workspace-19.12.0 it says:

Proceed with installation? [default n WARNING:
One of the prerequisites required for installation is not present- "libwebkit2gtk-4.0.so.37" not found.

Any ideas what I can do?

I do see a message explaining what to do, download from official page, add to store, run install again:

$ NIXPKGS_ALLOW_UNFREE=1 nix run nixpkgs.citrix_workspace
 builder for '/nix/store/m1zns76hhnznkrs52baid4nm0r5cq4bs-linuxx64-19.12.0.19.tar.gz.drv' failed with exit code 1; last 10 log lines:
  (if you do not find version 19.12.0 there, try at
  https://www.citrix.com/downloads/workspace-app/

  Once you have downloaded the file, please use the following command and re-run the  installation:

  nix-prefetch-url file://$PWD/linuxx64-19.12.0.19.tar.gz

  ***
cannot build derivation '/nix/store/8y93n6mrvizsif5b9nl9j0lll0w1qnqg-citrix-workspace-19.12.0.drv': 1 dependencies couldn't be built
[2 built (1 failed), 5 copied (18.7 MiB), 4.0 MiB DL]
error: build of '/nix/store/8y93n6mrvizsif5b9nl9j0lll0w1qnqg-citrix-workspace-19.12.0.drv' failed

Thanks NobbZ, thats what I did. The problem I described occurs afterwards.

Really, this looks like an unresolved dependency to the gtk library. I actually already thougt about how I could get the package into the installation, because when trying to start the workspace app it says

[mrtn@nixtn:~]$ /nix/store/3fr3blshvp35pml7ph623ng8045n1ld2-citrix-workspace-19.12.0/opt/citrix-icaclient/selfservice
/nix/store/3fr3blshvp35pml7ph623ng8045n1ld2-citrix-workspace-19.12.0/opt/citrix-icaclient/selfservice: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

Itā€™s missing the libxml2.so.2 at runtime, which sounds like it might be in libwebkit2gtk.
Any ideas? Iā€™d also be happy with a dirty quick fixā€¦

As for a quick & dirty fix, try (untested Iā€™m on mobile):

nix-env -iA nixos.libxml2
env LD_LIBRARY_PATH=$HOME/.nix-profile/lib critix-run # or whatever

The real solution is to add libxml2 to this packageā€™s inputs.

1 Like

OK, itā€™s getting better! Thanks!

Unfortunately I canā€™t get the runtime environment right (after installing libxml2). It says that libs are missing:

mrtn@nixtn:/nix/store/3fr3blshvp35pml7ph623ng8045n1ld2-citrix-workspace-19.12.0/opt/citrix-icaclient]$ ./selfservice
./selfservice: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

[mrtn@nixtn:/nix/store/3fr3blshvp35pml7ph623ng8045n1ld2-citrix-workspace-19.12.0/opt/citrix-icaclient]$ ./wfica 
./wfica: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

ā€¦unfortunately /.nix-profile/lib is not existing.

Maybe a very basic question, but it seems like the runtime environment ist not set in a way, that even the most basic libraries (like ā€˜libstdc++ā€™) are found.

You see nothing in your ~/.nix-profile/lib ?? Thatā€™s impossibleā€¦

Besides that, I think the issue is that perhaps you are using the unwrapped versionā€¦ Try to remove with nix-env -e the current derivation named citrix in your user environment and try to install the wrapped version with nix-env -iA nixos.citrix_workspace. You should be able to see all attributes with nix search citrix.

As a general thumbrule advice, donā€™t ever count on nix-env -i, always use nix-env -iA or even better, use your configuration.nix so the derivations will be updated also for every ā€˜inputs changeā€™. See How does nix-env -u know when not to apply version updates? and I suspect some of my user overlays are not applied in nix-env --upgrade - #5 by doronbehar

Usually I put everything in configuration.nix - itā€™s just because things didnā€™t work out that I was using ā€˜nix-envā€™.

Unfortunaltey re-creating the derivation doesnā€™t change anything - still the libs arenā€™t found.

I saw the unwraped versions when running ā€˜nix-env -qasP citrix-workspaceā€™, but I always chose the ones without ā€˜unwrappedā€™. Just to be sure I also tried with 19.8.0 again - same thingā€¦

Any ideas?

ping @Ma27 just in caseā€¦

1 Like

I tried to build it straight from master and I encountered a different error:

NUX-selection:2020.03.29-17:13:31

Thatā€™s as far as I can help.

Hi Doron, this is actually more or less the same issue - this error message is also shown to me when I click on the citrix workspace icon after installation.

The strange thing is, that in the until directory of the workspace app some binaries work properly, like the echo appā€¦

I donā€™t see the library webkitgtk being added to the citrix-workspace package.
It should probably be added here https://github.com/NixOS/nixpkgs/blob/944ff7c9e25da2a8b530acca7bd1e6fc94cd55c6/pkgs/applications/networking/remote/citrix-workspace/default.nix#L134.

Sorry guys, I just had to get it working by today morning. This was the end of my Nixos installation, Iā€™m already writing from Debian.

Youā€™re a great bunch of good and really nice people - keep going!

best regads, and thanks a lot to all of you!!
Martin

First of all, Iā€™d like to link the section of citrix-workspace in the nixpkgs manual: Nixpkgs 23.11 manual | Nix & NixOS (in case you want to provide feedback for this, please hit me up!)

Thanks NobbZ, thats what I did. The problem I described occurs afterwards.

Really, this looks like an unresolved dependency to the gtk library. I actually already thougt about how I could get the package into the installation, because when trying to start the workspace app it says

Please install Citrix by either using nix-env -iA or environment.systemPackages. There are several config files etc. that arenā€™t found otherwise (I canā€™t explain in detail whatā€™s happening here, but with such an installation Citrix works fine for me).

I tried to build it straight from master and I encountered a different error:

This usually happens if you donā€™t provide a .ica which tells Citrix where to connect.
Also, Iā€™d recommend to associate .ica files to automatically open Citrix from your browser when downloading such a file. I did this with the following config:

# ~/.config/mimeapps.list
[Default Applications]
application/x-ica=wfica.desktop

Also, in case you experience further issues with Citrix (or other packages I maintain), Iā€™d prefer an issue on GitHub (I just opened Discourse tonight ā€œby accidentā€ and Iā€™m usually not an active reader).

I frequently ask ā€œdoes this belong on discourse or nixpkg GitHub issuesā€.

Maybe we can figure out a rule of thumb and put it at the top of the manual under a ā€œgetting helpā€ section?

1 Like