Skip to content

make install POPLOG_HOME_DIR requires root to run without a failure (Ubuntu 22.04) #142

@truedat101

Description

@truedat101

If I specify a non-root path, for example, to my own home subdir, the command will still fail in the last step because it tries to link to /usr/local

make install POPLOG_HOME_DIR=/home/myhome/some/path

mkdir -p /usr/local/bin
ln -sf /home/myhome/some/path/poplog/current_usepop/pop/bin/poplog /usr/local/bin/
# Target "install" completed
ln: failed to create symbolic link '/usr/local/bin/poplog': Permission denied

Expected behavior is the build script should know if the user installed with sudo or not, or at least verify the permission to write to /usr/local. My expectation is this wouldn't install anywhere not requested. A knowledgeable user will know to set the path and determine if they want to link into /usr/local/bin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions