TerminalImageViewer icon indicating copy to clipboard operation
TerminalImageViewer copied to clipboard

install uses illegal syntax: `/usr/bin/install: illegal option -- D`

Open barracuda156 opened this issue 1 week ago • 3 comments

Describe the Bug

install uses illegal option that breaks destroot.

To Reproduce

Run the build on macOS, try installing.

Expected Behavio(u)r

Installation should succeed.

Screenshots

make: Entering directory `/opt/local/var/macports/build/terminal-image-viewer-f96c3059/work/TerminalImageViewer-1.2.1/src'
/usr/bin/install -c -D tiv /opt/local/var/macports/build/terminal-image-viewer-f96c3059/work/destroot/usr/local/bin/tiv
/usr/bin/install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

Version/Commit Hash

1.2.1

OS Specifics

macOS 10.6.8

barracuda156 avatar Dec 11 '25 15:12 barracuda156

Could you verify if replacing the relevant line with

	mkdir -p $(DESTDIR)$(bindir)
	$(INSTALL) $(PROGNAME) $(DESTDIR)$(bindir)/$(PROGNAME)

works?

aaronliu0130 avatar Dec 12 '25 01:12 aaronliu0130

Yes, just using install works fine.

barracuda156 avatar Dec 12 '25 07:12 barracuda156

Could you verify that what I sent works? The meaning of -D is to make sure the parent directories exist, which is needed on systems that aren't macOS.

aaronliu0130 avatar Dec 12 '25 20:12 aaronliu0130