Git Product home page Git Product logo

Comments (12)

iminkin avatar iminkin commented on September 27, 2024

what's wrong?

from sibelia.

vyahhi avatar vyahhi commented on September 27, 2024
  1. make install should install Sibelia locally, not fail.
  2. sudo make install should install Sibelia system-wide

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

What is "install locally"? Where should it be installed?

By the way, from our INSTALL.md:

"If you want to install "Sibelia" to a location other than /usr/local/bin,
run CMake with -DCMAKE_INSTALL_PREFIX option set:

cmake ../src -DCMAKE_INSTALL_PREFIX="<install destination>"

from sibelia.

vyahhi avatar vyahhi commented on September 27, 2024

e.g. /usr/local/share/

BTW, in previous versions make install worked fine.

To be more clear, as written in INSTALL.md:

To build and install the program, type following:

cd build
cmake ../src
make install

— it is not working.

First solution — just change 'make install' to 'sudo make install' in INSTALL.md. But it's not a good way, since I don't like to sudo anything if it's not 100% necessary.

Second solution — if you encounter in make 'file cannot create directory: /usr/share/sibelia. Maybe need administrative privileges.', install Sibelia locally (to the current directory) automatically.

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

"BTW, in previous versions make install worked fine." This is very strange. It seems that on you machine anyone can write in /usr/local/bin. On all Linux systems that I saw writing to /usr/local/bin is permitted for root only. I don't know about Mac, maybe on Mac anyone can write there by default, or you have changed this manually.

P.S. I hate UNIX.

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

I meant that previous version also installed itself into /usr/local/bin by default, and on normal systems it required root rights.

from sibelia.

vyahhi avatar vyahhi commented on September 27, 2024

/usr/local/* is accessible by current user (that's why it's local).
/usr/share is not.

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

/usr/local is "local" because it's local to the current machine, not user!

"The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr.

Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr."

http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY

from sibelia.

fenderglass avatar fenderglass commented on September 27, 2024

/usr/local belongs to machine, not to user
It is used for installation programs, which are not fully integrated to system (installing manually, not as a package).
Normally, users without root privelegies cannot modify whole root filesystem, so it is strange, that installation in /usr/local doesn`t fails
In addition, default installation prefix for make install should be /usr/local

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

I think that there is nothing to discuss here -- I changed INSTALL.md so that it contains sudo make install

from sibelia.

vyahhi avatar vyahhi commented on September 27, 2024

😢

from sibelia.

iminkin avatar iminkin commented on September 27, 2024

http://habrastorage.org/storage1/edcaa898/70b48a52/3072387b/da577538.png

from sibelia.

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.