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.
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…
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.
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…
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…
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:
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).