make DESTDIR="mypath" install failed
GoogleCodeExporter opened this issue · 9 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. enter fakeroot environment
2. ./configure --prefix=/usr --enable-test --enable-doc --enable-tool
3. make
4. make DESTDIR="mypath"
What is the expected output? What do you see instead?
install to my specific path
What version of the product are you using? On what operating system?
2.5.232
Please provide any additional information below.
make install log
================
Making install in src
make[1]: Entering directory '/var/abs/local/sockperf/src/sockperf-2.5.232/src'
make[2]: Entering directory '/var/abs/local/sockperf/src/sockperf-2.5.232/src'
test -z "/usr/bin" || /usr/bin/mkdir -p
"/var/abs/local/sockperf/pkg/sockperf/usr/bin"
cp: cannot create regular file ‘/usr/bin/./sockperf_2.5.232’: Permission
denied
Makefile:557: recipe for target 'install-data-local' failed
make[2]: *** [install-data-local] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/install -c sockperf '/var/abs/local/sockperf/pkg/sockperf/usr/bin'
make[2]: Leaving directory '/var/abs/local/sockperf/src/sockperf-2.5.232/src'
Makefile:446: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/var/abs/local/sockperf/src/sockperf-2.5.232/src'
Makefile:292: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Original issue reported on code.google.com by dlin...@gmail.com
on 16 Dec 2013 at 9:02
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
Hi,
Checkout latest version 2.5.240.
Last two patches should fix the issue.
Thanks
Original comment by orkmella...@gmail.com
on 16 Dec 2013 at 11:26
- Changed state: Fixed
GoogleCodeExporter commented
Hi dlin.tw,
Thanks for taking the time for reporting this.
If you believe this a defect and if you know how to fix it than we'll be glad
to insert a patch from you and give you the credit.
Otherwise, AFAICS we don't have resources for this issue and I can't tell when
someone will handle it.
Thanks,
Avner
Original comment by avne...@gmail.com
on 16 Dec 2013 at 9:28
- Added labels: Pjm-Visited
- Removed labels: Pjm-New
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
Here is my patch for 2.5.240
Original comment by dlin...@gmail.com
on 18 Dec 2013 at 10:11
Attachments:
GoogleCodeExporter commented
Hi,
The patch remove and add the same lines. It does not change the code.
Original comment by orkmella...@gmail.com
on 18 Dec 2013 at 11:18
GoogleCodeExporter commented
The major differences are '{' and '('. You should read it again.
Original comment by dlin...@gmail.com
on 18 Dec 2013 at 12:46
GoogleCodeExporter commented
Download & try to install 2.5.240. It still exist problems.
Making install in src
make[1]: Entering directory '/var/abs/local/sockperf/src/sockperf-2.5.240/src'
make[2]: Entering directory '/var/abs/local/sockperf/src/sockperf-2.5.240/src'
test -z "/usr/bin" || /usr/bin/mkdir -p
"/var/abs/local/sockperf/pkg/sockperf/usr/bin"
cp: cannot create regular file
‘/var/abs/local/sockperf/pkg/sockperf/usr/bin/.’: No such file or directory
Makefile:557: recipe for target 'install-data-local' failed
make[2]: *** [install-data-local] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/install -c sockperf '/var/abs/local/sockperf/pkg/sockperf/usr/bin'
make[2]: Leaving directory '/var/abs/local/sockperf/src/sockperf-2.5.240/src'
Makefile:446: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/var/abs/local/sockperf/src/sockperf-2.5.240/src'
Makefile:292: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Original comment by dlin...@gmail.com
on 18 Dec 2013 at 12:42
GoogleCodeExporter commented
Hi dlin.tw,
Can you please provide patch that fixes it.
Please notice that the patch should be on configure.ac or on Makefile.am and
not on Makefile.
Avner
Original comment by avne...@gmail.com
on 18 Dec 2013 at 9:17