bntjah / lc-installer

Lancache Installer Script
8 stars 9 forks source link

nginx compiler error on ubuntu 17.x series #21

Closed bctrainers closed 6 years ago

bctrainers commented 6 years ago

Hi,

The version of nginx (1.12.1) pulled for lancache has issues on ubuntu 17.x series during compile. This will result in the compiler to fail of nginx, and the rest of the script will end up with a bad installation.

What appears to have resolved this issue is editing Line 4 of the installer.sh file at https://github.com/bntjah/lc-installer/blob/master/installer.sh#L4 to lc_nginx_version=1.13.8

bntjah commented 6 years ago

Hi @bctrainers have a look at https://github.com/bntjah/lc-installer/blob/test/Files/Nginx.sh

bctrainers commented 6 years ago

Checked it out, even attempted the lc-installer test branch - seems to make no difference, be it Debian 8 or 9 or Ubuntu 17.x series.

###
NGINX
###
Install NGINX Through This Script? (Yy/Nn):
Y
Downloading Nginx from the internet
--2018-01-18 03:55:01--  http://nginx.org/download/nginx-EXIT_RESULT=0.tar.gz
Resolving nginx.org (nginx.org)... 95.211.80.227, 206.251.255.63, 2606:7100:1:69::3f, ...
Connecting to nginx.org (nginx.org)|95.211.80.227|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-18 03:55:01 ERROR 404: Not Found.

Unpacking the Downloaded File                              [  OK  ]

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Unpacking Wandenberg NGNX Push Stream Module               [  OK  ]
--2018-01-18 03:55:01--  https://codeload.github.com/wandenberg/nginx-push-stream-module/tar.gz/0.5.1?dummy=/wandenberg-nginx-push-stream-module-0.5.1_GH0.tar.gz
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/usr/portbuild/www/nginx/work/wandenberg-nginx-push-stream-module-0.5.1_GH0.tar.gz’

/usr/portbuild/www/nginx/work/wandenberg-nginx-push-stream-     [  <=>                                                                                                                                    ] 171.16K   770KB/s    in 0.2s

2018-01-18 03:55:02 (770 KB/s) - ‘/usr/portbuild/www/nginx/work/wandenberg-nginx-push-stream-module-0.5.1_GH0.tar.gz’ saved [175263]

Unpacking Frickle Labs NGNX Cache Purge Module             [  OK  ]
--2018-01-18 03:55:02--  http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz
Resolving labs.frickle.com (labs.frickle.com)... 5.9.135.91
Connecting to labs.frickle.com (labs.frickle.com)|5.9.135.91|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12248 (12K) [application/octet-stream]
Saving to: ‘/usr/portbuild/www/nginx/work/ngx_cache_purge-2.3.tar.gz’

/usr/portbuild/www/nginx/work/ngx_cache_purge-2.3.tar.gz    100%[========================================================================================================================================>]  11.96K  --.-KB/s    in 0.003s

2018-01-18 03:55:03 (3.71 MB/s) - ‘/usr/portbuild/www/nginx/work/ngx_cache_purge-2.3.tar.gz’ saved [12248/12248]

Downloading Multiplay Range Cache Module                   [  OK  ]
Cloning into '/usr/portbuild/www/nginx/work/nginx-range-cache'...
remote: Counting objects: 21, done.
remote: Total 21 (delta 0), reused 0 (delta 0), pack-reused 21
Unpacking objects: 100% (21/21), done.
Files/Nginx.sh: line 78: cd: /usr/portbuild/www/nginx/work/nginx-EXIT_RESULT=0: No such file or directory
Patching NGINX for Range Cache from Multiplay
Configuring NGINX with the necessary modules               [  OK  ]
Files/Nginx.sh: line 88: ./configure: No such file or directory
Making... Go Grab a coFfee or Redbull...
make: *** No targets specified and no makefile found.  Stop.
Installing...
make: *** No rule to make target 'install'.  Stop.

On the script, seems to no longer respect variable calls.

bntjah commented 6 years ago

I do see an error occur: you are trying to download nginx-EXIT_RESULT=0 are you adding variables to the script somehow?

bctrainers commented 6 years ago

Not adding anything, this is a direct git clone of the test repo. Only change i've made was to allow execution of the .sh files in Files/ and the installer.sh file. Is this not required?


root@vbox003-lancache:~# uname -a
Linux vbox003-lancache 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux```
bntjah commented 6 years ago

Hi Bctrainers, its a test as in alpha but if you run the script by it self so sh Files/Nginx.sh should build & compile Nginx with the modules provided by Multiplay

bctrainers commented 6 years ago

Ah ok, will do that then. :)

bntjah commented 6 years ago

So imported most of the things to the installer so closing this