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