Giter VIP home page Giter VIP logo

Comments (6)

n8marti avatar n8marti commented on July 20, 2024

Maybe adding sudo/doas is the right solution, but is it also worth considering using python's glob module in a for loop to search for a library in LD_LIBRARY_PATH? We'd have to be sure to add /lib and /usr/lib to the for-loop, because I don't know if LD_LIBRARY_PATH is necessarily set.

from logoslinuxinstaller.

thw26 avatar thw26 commented on July 20, 2024

Maybe adding sudo/doas is the right solution, but is it also worth considering using python's glob module in a for loop to search for a library in LD_LIBRARY_PATH? We'd have to be sure to add /lib and /usr/lib to the for-loop, because I don't know if LD_LIBRARY_PATH is necessarily set.

That could help us to be further OS independent, such as for BSD and macOS.

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

I found an even better (and much faster) solution using pathlib.Path.rglob. glob.glob was taking forever. Here's a one-line sample of the proof-of-concept, just looking in /usr/lib:

$ python3 -c 'from pathlib import Path; print([p for p in Path("/usr/lib").rglob("libfuse*")][0])'
/usr/lib/x86_64-linux-gnu/libfuse.so.2.9.9

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

The above commit 7aa1671 [still] works on my ubuntu system, but it needs tested on at least debian before I'm satisfied that it solves the problem. Instead of elevating privileges for the ldconfig command, it searches the lib folders directly ($LD_LIBRARY_PATH, /usr/lib, /lib). We would maybe need to add more folder paths for macOS, whose file structure I'm not familiar with.

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

a test build with this change is now available at https://github.com/FaithLife-Community/test-builds/releases/download/v4.0.0alpha-issue10-20231229/LogosLinuxInstaller

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

Telegram/Matrix user "godfollower4ever" confirmed this fix in a group conversation thread

from logoslinuxinstaller.

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.