Giter VIP home page Giter VIP logo

Comments (9)

nhejazi avatar nhejazi commented on May 26, 2024 1

Based on your comments, I found that the easiest (and maybe dirtiest) way was to link /usr/lib/x86_64-linux-gnu/libconfig.so.9 to /usr/lib/libconfig.so.11, which seems to resolve the error I originally reported. It seems like clight expects to find the config file in /root/.config whereas it appears in ~/.config in my system. Is there a way to rectify this without a manual build?

from clight.

nhejazi avatar nhejazi commented on May 26, 2024 1

@FedeDP — thanks for all your help with this. I’m going to close this issue because this doesn’t seem to report any actual deficiency in clight itself, really only the fact that installation on Ubuntu can be an annoyance (since the only way appears to be to build from source — e.g., even the use of dpkg causes a lock from sudo). If the project has time at some point going forward, it might be worth making Ubuntu installs easier via setting up a PPA, etc., but that’s conditional on interest from the clight authors/maintainers and, again, not a problem with clight itself. Thanks again!

from clight.

FedeDP avatar FedeDP commented on May 26, 2024 1

I really hope you enjoy clight!
I'd like to add that i am thinking about entirely dropping deb packages as i don't have much time anymore for my side projects and i don't want to waste time on such a thing.
It would be great if anyone using ubuntu could step up and creating these debs (both clight and clightd) for me, or if clight/clightd was included in debian/ubuntu official repositories.

from clight.

FedeDP avatar FedeDP commented on May 26, 2024

The issue is that i created the deb package from my Archlinux; it has libconfig.so.11, while ubuntu ships libconfig.so.9.
You can fallback at building and installing yourself for now: https://github.com/FedeDP/Clight#build-instructions
Obviously you need "-dev" packages to build clight.

I'll have to figure out a way to let deb package be built from current ubuntu version (may be using a docker image).
Sorry for the inconvenience and thanks for the report!

from clight.

FedeDP avatar FedeDP commented on May 26, 2024

PS: a dirty-but-quick solution would be to link /usr/lib/libconfig.so.9 to /usr/lib/libconfig.so.11 :)

from clight.

nhejazi avatar nhejazi commented on May 26, 2024

thanks for the quick reply! hmm, it looks like I'm missing something --- for some reason neither libconfig.so.9 nor libconfig.so.11 appears under /usr/lib/ (even after a successful apt-get install libconfig9). Is there something obvious that I'm just missing here?

from clight.

FedeDP avatar FedeDP commented on May 26, 2024

Ubuntu installs shared objects in /usr/lib/x86_64-linux-gnu/libconfig.so.9. Unfortunately I think you'll need to build and install clight manually.

from clight.

nhejazi avatar nhejazi commented on May 26, 2024

Oh, I see. Thanks for pointing that out. I'll try building manually then.

from clight.

FedeDP avatar FedeDP commented on May 26, 2024

It seems like clight expects to find the config file in /root/.config whereas it appears in ~/.config in my system. Is there a way to rectify this without a manual build?

It tries to find an /etc/default/clight.conf and then a $HOME/.config.
Are you running clight with sudo or as root user? It does not need that.

from clight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.