shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
538 stars 35 forks source link

cp: cannot overwrite non-directory '/usr/local/share/man/man1' with directory 'share/man/man1' #670

Closed hongyi-zhao closed 7 months ago

hongyi-zhao commented 7 months ago

The problem occurs for the latest git version of shutter, as shown below:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy

$ sudo apt -y install shutter
$ sudo apt build-dep -y shutter
$ make
$ sudo make install 
./po2mo.sh
install -Dm644 COPYING /usr/local/share/doc/shutter/COPYING
install -Dm644 README /usr/local/share/doc/shutter/README
install -Dm755 bin/shutter /usr/local/bin/shutter
cp -r share/ /usr/local/
cp: cannot overwrite non-directory '/usr/local/share/man/man1' with directory 'share/man/man1'
make: *** [Makefile:14: install] Error 1
hongyi-zhao commented 7 months ago

Sorry to bother you. This problem is triggered by an error of the type of /usr/local/share/man/man1 on my machine, which should be a directory, but due to some improper manipulation, my script turns this directory into a soft link pointing to a specific file.

Photon89 commented 7 months ago

Great, thanks for letting us know!