Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch失败 #153

Open
weilai201 opened this issue May 26, 2017 · 4 comments
Open

patch失败 #153

weilai201 opened this issue May 26, 2017 · 4 comments

Comments

@weilai201
Copy link

OS version: CentOS Linux release 7.3.1611 (Core)
Tengine version: Tengine/2.1.1 (nginx/1.6.2)

下载最新版本的nginx_tcp_proxy_module 后,解压。然后下载tengine 解压。
切换到tengine解压目录,执行“patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch ”

[root@nginx1 tengine]# patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch 
patching file p1
Hunk #1 FAILED at 66.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 36.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 32.
Hunk #2 FAILED at 42.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patch: **** Can't reopen file p1 : No such file or directory

不知道是什么原因?

@cell13
Copy link

cell13 commented May 30, 2017

很大可能是使用patche的命令不对,你可以尝试下这个命令:
patch p0 < /tmp/nginx_tcp_proxy_module-master/tcp.patch

@Andyliwr
Copy link

image
还是不行 @cell13

@cell13
Copy link

cell13 commented Nov 24, 2017

@Andyliwr 你需要看下你得nginx版本,有的nginx版本用p1,有的用p0就可以。具体可以参考下patch命令的用法。如果你对nginx版本没有特殊的要求,可以使用我下面的命令进行安装操作:
wget -P /opt/ http://nginx.org/download/nginx-1.13.3.tar.gz wget -P /opt/ https://github.com/yaoweibin/nginx_upstream_check_module/archive/master.zip tar -xzvf /opt/nginx-1.13.3.tar.gz -C /opt/ unzip master yum -y install gcc gcc-c++ yum -y install zlib zlib-devel pcre pcre-devel yum -y install openssl openssl-devel yum -y install unzip git cd /opt/ cd /opt/nginx-1.13.3 patch -p0 < ../nginx_upstream_check_module-master/check_1.11.5+.patch ./configure make && make install

@zengdd-pro
Copy link

OS version: CentOS Linux release 7.3.1611 (Core)
Tengine version: Tengine/2.1.1 (nginx/1.6.2)

下载最新版本的nginx_tcp_proxy_module 后,解压。然后下载tengine 解压。
切换到tengine解压目录,执行“patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch ”

[root@nginx1 tengine]# patch p1 < /tmp/nginx_tcp_proxy_module-master/tcp.patch 
patching file p1
Hunk #1 FAILED at 66.
1 out of 1 hunk FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 36.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patching file p1
Hunk #1 FAILED at 32.
Hunk #2 FAILED at 42.
2 out of 2 hunks FAILED -- saving rejects to file p1.rej
patch: **** Can't reopen file p1 : No such file or directory

不知道是什么原因?

有解决吗,我的也是这个问题?不知道什么原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants