Ticket #16476 (closed defect: fixed)
git-core 1.6.0.1 instaweb fails, can't run perl
| Reported by: | walter@… | Owned by: | bryan@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | Port Bugs |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | git instaweb perl | Cc: | maccheck@…, ryandesign@… |
| Port: | git-core |
Description
Symptom: git instaweb fails as follows:
$ git instaweb --httpd webrick (09-05 21:06) /opt/local/libexec/git-core/git-instaweb: line 6015: /usr/bin/env perl: No such file or directory [2008-09-05 21:06:29] INFO WEBrick 1.3.1 [2008-09-05 21:06:29] INFO ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1] No known browser available. http://127.0.0.1:1234
The web server is launched but it doesn't work because the gitweb.cgi file is not written.
The reason seems to be that the Portfile has this:
PERL_PATH="/usr/bin/env perl"
which causes trouble when git-instaweb does this:
PERL='/usr/bin/env perl' ... "$PERL" -p -e "$script" "$1.tmp" > "$1"
I guess it's not surprising that setting PERL_PATH to something other than a path wouldn't work, but so far instaweb is the only thing I've tried that has the problem.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

