jue89 / node-systemd-journald

Native bindings to journald
MIT License
28 stars 10 forks source link

Fails to install on Mint 17.3 #1

Closed ianare closed 8 years ago

ianare commented 8 years ago
npm install 

> systemd-journald@1.1.0 install /home/myproject/node_modules/systemd-journald
> node-gyp rebuild

Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
gyp: Call to 'pkg-config --libs-only-l libsystemd' returned exit status 1 while in binding.gyp. while trying to load binding.gyp

The problem is that on Mint 17.3, the package libsystemd-dev doesn't exist, it's actually split up into systemct-*-dev packages:

sudo aptitude search libsystemd-

i   libsystemd-daemon-dev                             - systemd utility library - development files                 
p   libsystemd-daemon-dev:i386                        - systemd utility library - development files                 
i   libsystemd-daemon0                                - systemd utility library                                     
p   libsystemd-daemon0:i386                           - systemd utility library                                     
i A libsystemd-id128-0                                - systemd 128 bit ID utility library                          
p   libsystemd-id128-0:i386                           - systemd 128 bit ID utility library                          
i A libsystemd-id128-dev                              - systemd 128 bit ID utility library - development files      
p   libsystemd-id128-dev:i386                         - systemd 128 bit ID utility library - development files      
i   libsystemd-journal-dev                            - systemd journal utility library - development files         
p   libsystemd-journal-dev:i386                       - systemd journal utility library - development files         
i A libsystemd-journal0                               - systemd journal utility library                             
p   libsystemd-journal0:i386                          - systemd journal utility library                             
i   libsystemd-login-dev                              - systemd login utility library - development files           
p   libsystemd-login-dev:i386                         - systemd login utility library - development files           
i   libsystemd-login0                                 - systemd login utility library                               
p   libsystemd-login0:i386                            - systemd login utility library
jue89 commented 8 years ago

Thanks for your report!

Yes, the guys from systemd merged all those libs to one somewhere between version 205 and 219. According http://packages.linuxmint.com/ you are using systemd 204 ;)

I've just seen that you patched the problem. :+1: Would you mind if I merge your fix back into my repository?

ianare commented 8 years ago

Yeah Mint is still on Ubuntu 14.04, so no nice systemd out of the box :-(

My patch fixes the build, but I haven't gotten it to work yet. When it's been tested OK I will submit a merge request.

jue89 commented 8 years ago

Thank you a lot!

Just merged your pull request and published your changes at npm.