tbje/nginx-upstream-jvm-route

can't find file to patch at input line 5

Opened this issue · 1 comments

hen I did as the document:
[@tj_10_116 nginx]#patch -p0 < ../jvm_route.patch
I got the follow error:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:


|Binary files src/core/.ngx_string.h.swp and src-change/core/.ngx_string.h.swp differ
|diff -ruN src/http/ngx_http_upstream.c src-change/http/ngx_http_upstream.c
|--- src/http/ngx_http_upstream.c 2009-07-01 14:24:20.000000000 +0800

|+++ src-change/http/ngx_http_upstream.c 2009-07-06 15:11:27.000000000 +0800

File to patch:
Then the shell seams to ask me to provide a file to patch.
What can i do ?

after i checkout the newest file, i have the different problem:

[@tj_10_116 upload]# cd /usr/local/nginx/

[@tj_10_116 nginx]# patch p0 < /home/chuanli/upload/nginx-upstream-jvm-route-read-only/jvm_route.patch
patching file p0
Hunk #1 FAILED at 3842.
Hunk #2 FAILED at 3933.
Hunk #3 FAILED at 3972.
Hunk #4 FAILED at 4006.
Hunk #5 FAILED at 4024.
Hunk #6 FAILED at 4053.
6 out of 6 hunks FAILED -- saving rejects to file p0.rej
patching file p0
Hunk #1 FAILED at 85.
Hunk #2 FAILED at 97.
2 out of 2 hunks FAILED -- saving rejects to file p0.rej