GetPoplog / Seed

Scripts for getting Poplog onto your Linux machine
MIT License
8 stars 3 forks source link

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

Open truedat101 opened 8 months ago

truedat101 commented 8 months ago

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.