{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9415","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9415/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9415/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9415/events","html_url":"https://github.com/NixOS/nixpkgs/issues/9415","id":102666166,"number":9415,"title":"[openarena] error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory","user":{"login":"joepie91","id":1663259,"avatar_url":"https://avatars.githubusercontent.com/u/1663259?v=3","gravatar_id":"","url":"https://api.github.com/users/joepie91","html_url":"https://github.com/joepie91","followers_url":"https://api.github.com/users/joepie91/followers","following_url":"https://api.github.com/users/joepie91/following{/other_user}","gists_url":"https://api.github.com/users/joepie91/gists{/gist_id}","starred_url":"https://api.github.com/users/joepie91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joepie91/subscriptions","organizations_url":"https://api.github.com/users/joepie91/orgs","repos_url":"https://api.github.com/users/joepie91/repos","events_url":"https://api.github.com/users/joepie91/events{/privacy}","received_events_url":"https://api.github.com/users/joepie91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/documentation","name":"documentation","color":"fef2c0"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/non-nixos","name":"non-nixos","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-08-23T22:18:38Z","updated_at":"2015-10-07T14:15:07Z","closed_at":null,"body":"* __Package:__ openarena\r\n* __Error:__ /nix/store/q8smn7k0y349ymfc9mdnja0wa6s79njv-openarena-0.8.8/openarena-0.8.8/openarena.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory\r\n* __Platform:__ openSUSE 13.1, x86_64, XFCE\r\n* __Version:__ nix-env (Nix) 1.9\r\n\r\nInstallation works, running it does not.\r\n\r\n```\r\nsven@linux-etoq:~> nix-env -i openarena\r\ninstalling ‘openarena-0.8.8’\r\nthese paths will be fetched (390.19 MiB download, 426.80 MiB unpacked):\r\n  /nix/store/q8smn7k0y349ymfc9mdnja0wa6s79njv-openarena-0.8.8\r\nfetching path ‘/nix/store/q8smn7k0y349ymfc9mdnja0wa6s79njv-openarena-0.8.8’...\r\n\r\n*** Downloading ‘https://cache.nixos.org/nar/194liswh0vgrj02q7q7ww8igizn45bri6ip4m5wxa47s3ghj65q7.nar.xz’ to ‘/nix/store/q8smn7k0y349ymfc9mdnja0wa6s79njv-openarena-0.8.8’...\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  390M  100  390M    0     0  7996k      0  0:00:49  0:00:49 --:--:-- 9247k\r\n\r\nbuilding path(s) ‘/nix/store/j0lc0hns2kna9sw1g3k46zbazxhsxha0-user-environment’\r\nsven@linux-etoq:~> openarena \r\n/nix/store/q8smn7k0y349ymfc9mdnja0wa6s79njv-openarena-0.8.8/openarena-0.8.8/openarena.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/146207514","html_url":"https://github.com/NixOS/nixpkgs/issues/9415#issuecomment-146207514","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/9415","id":146207514,"user":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars.githubusercontent.com/u/1785925?v=3","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T14:15:07Z","updated_at":"2015-10-07T14:15:07Z","body":"- `LD_LIBRARY_PATH=~/.nix_libs` is slightly dangerous with having standard libs in there (libz in particular). It means that all nix-installed stuff will use that libz instead of the one they were compiled against. But if the list is very small, it might cause no problems (and it's rather easy to set up).\r\n- DRI drivers are located by libGL &ndash; I'm not sure how distros typically configure libGL's search path; it might even differ.\r\n- For inspecting (broken dynamic) linkage it seems easiest to run `ldd` on the executables or libraries, but it won't show *dlopen*ed libs and some programs do use that to open libGL.\r\n- There are also some other libs taken from that path, e.g. `libvdpau_*.so`. (I don't remember how libva works ATM.)"}}