Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brackets will not run #55810

Closed
AMDphreak opened this issue Feb 15, 2019 · 3 comments · Fixed by #59195
Closed

Brackets will not run #55810

AMDphreak opened this issue Feb 15, 2019 · 3 comments · Fixed by #59195

Comments

@AMDphreak
Copy link

Issue description

installed with nixos-rebuild test

Error at runtime:

[root@nixos:/etc/nixos]# brackets
/run/current-system/sw/bin/brackets: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No such file or directory

Technical details

[root@nixos:/drives]# nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
  /nix/store/ial8a56ys2rswfq4j2abm3cl99li5b6p-bash-interactive-4.4-p23-dev
copying path '/nix/store/ial8a56ys2rswfq4j2abm3cl99li5b6p-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.97, NixOS, 18.09.2108.8008d0bbc69 (Jellyfish)`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(root): `"nixos-18.09.2108.8008d0bbc69"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@peterhoeg
Copy link
Member

It's a matter of adding the missing librar(y|ies) to bracketLibs. Do you want to try a PR?

@AMDphreak
Copy link
Author

AMDphreak commented Mar 1, 2019

It's a matter of adding the missing librar(y|ies) to bracketLibs. Do you want to try a PR?

Yes! I know how to do git fork/PR, but I don't know the process/syntax for including a missing library. Would you be able to teach me over a chat channel? I can sign up for a chat forum/slack/mattermost/Zulip/IRC. Btw Zulip is the best.

@peterhoeg
Copy link
Member

Due to the time difference, it might be a bit difficult to find a time where we are both online but it basically boils down to:

  1. find the relevant missing libraries (ldd on the binary is the easiest to get an overview)
  2. find the corresponding derivation name in nixpkgs (in case of libxdamage it's xorg.libXdamage)
  3. add that to the bracketLibs list
  4. build and see if it runs. If not, rinse and repeat until it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants