Hi, I'm using Ubuntu 18.04. I git cloned the latest ptpd (2.3.1) and tried to install the package, when I ran "make install", errors occurred. It looks like I got permission denied.
tseng@machine-pc:~/ptpd$ make install make install-recursive make[1]: Entering directory '/home/tseng/ptpd' Making install in src make[2]: Entering directory '/home/tseng/ptpd/src' make[3]: Entering directory '/home/tseng/ptpd/src' /bin/mkdir -p '/usr/local/sbin' /bin/bash ../libtool --mode=install /usr/bin/install -c ptpd2 '/usr/local/sbin' libtool: install: /usr/bin/install -c ptpd2 /usr/local/sbin/ptpd2 /usr/bin/install: cannot create regular file '/usr/local/sbin/ptpd2': Permission denied Makefile:510: recipe for target 'install-sbinPROGRAMS' failed make[3]: [install-sbinPROGRAMS] Error 1 make[3]: Leaving directory '/home/tseng/ptpd/src' Makefile:863: recipe for target 'install-am' failed make[2]: [install-am] Error 2 make[2]: Leaving directory '/home/tseng/ptpd/src' Makefile:516: recipe for target 'install-recursive' failed make[1]: [install-recursive] Error 1 make[1]: Leaving directory '/home/tseng/ptpd' Makefile:816: recipe for target 'install' failed make: [install] Error 2
Therefore, I use "sudo make install" and got
tseng@machine-pc:~/ptpd$ sudo make install make install-recursive make[1]: Entering directory '/home/tseng/ptpd' Making install in src make[2]: Entering directory '/home/tseng/ptpd/src' make[3]: Entering directory '/home/tseng/ptpd/src' /bin/mkdir -p '/usr/local/sbin' /bin/bash ../libtool --mode=install /usr/bin/install -c ptpd2 '/usr/local/sbin' libtool: install: /usr/bin/install -c ptpd2 /usr/local/sbin/ptpd2 /bin/mkdir -p '/usr/local/share/man/man5' /usr/bin/install -c -m 644 ptpd2.conf.5 '/usr/local/share/man/man5' /bin/mkdir -p '/usr/local/share/man/man8' /usr/bin/install -c -m 644 ptpd2.8 '/usr/local/share/man/man8' make[3]: Leaving directory '/home/tseng/ptpd/src' make[2]: Leaving directory '/home/tseng/ptpd/src' make[2]: Entering directory '/home/tseng/ptpd' make[3]: Entering directory '/home/tseng/ptpd' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/local/share/ptpd' /usr/bin/install -c -m 644 src/leap-seconds.list src/ptpd2.conf.minimal src/ptpd2.conf.default-full src/templates.conf doc/PTPBASE-MIB.txt '/usr/local/share/ptpd' make[3]: Leaving directory '/home/tseng/ptpd' make[2]: Leaving directory '/home/tseng/ptpd' make[1]: Leaving directory '/home/tseng/ptpd'
Does it mean the installation is completed? Thank you!
Log in to post a comment.
Hi,
I'm using Ubuntu 18.04. I git cloned the latest ptpd (2.3.1) and tried to install the package, when I ran "make install", errors occurred. It looks like I got permission denied.
tseng@machine-pc:~/ptpd$ make install
make install-recursive
make[1]: Entering directory '/home/tseng/ptpd'
Making install in src
make[2]: Entering directory '/home/tseng/ptpd/src'
make[3]: Entering directory '/home/tseng/ptpd/src'
/bin/mkdir -p '/usr/local/sbin'
/bin/bash ../libtool --mode=install /usr/bin/install -c ptpd2 '/usr/local/sbin'
libtool: install: /usr/bin/install -c ptpd2 /usr/local/sbin/ptpd2
/usr/bin/install: cannot create regular file '/usr/local/sbin/ptpd2': Permission denied
Makefile:510: recipe for target 'install-sbinPROGRAMS' failed
make[3]: [install-sbinPROGRAMS] Error 1
make[3]: Leaving directory '/home/tseng/ptpd/src'
Makefile:863: recipe for target 'install-am' failed
make[2]: [install-am] Error 2
make[2]: Leaving directory '/home/tseng/ptpd/src'
Makefile:516: recipe for target 'install-recursive' failed
make[1]: [install-recursive] Error 1
make[1]: Leaving directory '/home/tseng/ptpd'
Makefile:816: recipe for target 'install' failed
make: [install] Error 2
Therefore, I use "sudo make install" and got
tseng@machine-pc:~/ptpd$ sudo make install
make install-recursive
make[1]: Entering directory '/home/tseng/ptpd'
Making install in src
make[2]: Entering directory '/home/tseng/ptpd/src'
make[3]: Entering directory '/home/tseng/ptpd/src'
/bin/mkdir -p '/usr/local/sbin'
/bin/bash ../libtool --mode=install /usr/bin/install -c ptpd2 '/usr/local/sbin'
libtool: install: /usr/bin/install -c ptpd2 /usr/local/sbin/ptpd2
/bin/mkdir -p '/usr/local/share/man/man5'
/usr/bin/install -c -m 644 ptpd2.conf.5 '/usr/local/share/man/man5'
/bin/mkdir -p '/usr/local/share/man/man8'
/usr/bin/install -c -m 644 ptpd2.8 '/usr/local/share/man/man8'
make[3]: Leaving directory '/home/tseng/ptpd/src'
make[2]: Leaving directory '/home/tseng/ptpd/src'
make[2]: Entering directory '/home/tseng/ptpd'
make[3]: Entering directory '/home/tseng/ptpd'
make[3]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/local/share/ptpd'
/usr/bin/install -c -m 644 src/leap-seconds.list src/ptpd2.conf.minimal src/ptpd2.conf.default-full src/templates.conf doc/PTPBASE-MIB.txt '/usr/local/share/ptpd'
make[3]: Leaving directory '/home/tseng/ptpd'
make[2]: Leaving directory '/home/tseng/ptpd'
make[1]: Leaving directory '/home/tseng/ptpd'
Does it mean the installation is completed? Thank you!