quiche
quiche copied to clipboard
Error when "make install" in ubuntu
I try to install nginx + quiche in ubuntu 22.04 after follow instruction in https://github.com/cloudflare/quiche/tree/master/nginx, there is nothing problem until command "make" but, after I command "make install", I got error like this
root@2gb1cpu-ger:~/nginx-1.16.1# make install
make -f objs/Makefile install
make[1]: Entering directory '/root/nginx-1.16.1'
test -d '/root/nginx-1.16.1' || mkdir -p '/root/nginx-1.16.1'
test -d '/root/nginx-1.16.1/sbin' \
|| mkdir -p '/root/nginx-1.16.1/sbin'
test ! -f '/root/nginx-1.16.1/sbin/nginx' \
|| mv '/root/nginx-1.16.1/sbin/nginx' \
'/root/nginx-1.16.1/sbin/nginx.old'
cp objs/nginx '/root/nginx-1.16.1/sbin/nginx'
test -d '/root/nginx-1.16.1/conf' \
|| mkdir -p '/root/nginx-1.16.1/conf'
cp conf/koi-win '/root/nginx-1.16.1/conf'
cp: 'conf/koi-win' and '/root/nginx-1.16.1/conf/koi-win' are the same file
make[1]: *** [objs/Makefile:1379: install] Error 1
make[1]: Leaving directory '/root/nginx-1.16.1'
make: *** [Makefile:11: install] Error 2
i think a 'koi-win' file already exists which is why cp is'nt working.
try this command
rm /root/nginx-1.16.1/conf/koi-win
then do :
make install
I have the same problem
root@ubuntu-16gb-nbg1-1:/nginx-1.16.1# make install
make -f objs/Makefile install
make[1]: Entering directory '/nginx-1.16.1'
test -d '/nginx-1.16.1' || mkdir -p '/nginx-1.16.1'
test -d '/nginx-1.16.1/sbin'
|| mkdir -p '/nginx-1.16.1/sbin'
test ! -f '/nginx-1.16.1/sbin/nginx'
|| mv '/nginx-1.16.1/sbin/nginx'
'/nginx-1.16.1/sbin/nginx.old'
cp objs/nginx '/nginx-1.16.1/sbin/nginx'
test -d '/nginx-1.16.1/conf'
|| mkdir -p '/nginx-1.16.1/conf'
cp conf/koi-win '/nginx-1.16.1/conf'
cp: 'conf/koi-win' and '/nginx-1.16.1/conf/koi-win' are the same file
make[1]: *** [objs/Makefile:1379: install] Error 1
make[1]: Leaving directory '/nginx-1.16.1'
make: *** [Makefile:11: install] Error 2
root@ubuntu-16gb-nbg1-1:/nginx-1.16.1#
i think a 'koi-win' file already exists which is why cp is'nt working.
try this command
rm /root/nginx-1.16.1/conf/koi-win
then do :
make install
This solution not work
I find solution... In tutorial --prefix $PWD change on /etc/nginx
./configure
--prefix=/etc/nginx
--build="quiche-$(git --git-dir=../quiche/.git rev-parse --short HEAD)"
--with-http_ssl_module
--with-http_v2_module
--with-http_v3_module
--with-openssl=../quiche/quiche/deps/boringssl
--with-quiche=../quiche
我也有相同的问题,但是我是在make时报错,显示有未声明的变量,请问有没有解决办法?