DanWin / hosting

This is a setup for a Tor based shared web hosting server
https://danwin1210.de/hosting/
GNU General Public License v3.0
341 stars 126 forks source link

install-binaries nginx make fail #89

Closed hardcod3dd closed 3 years ago

hardcod3dd commented 3 years ago

using the script, by accident i see the line causing isse.it was because of libatomic.even tho it is installed on the system "make" fails with error like libatomic not found.

debian 10 fresh install.cant exactly copy the error but it was libatomics-ops libs not found issue.as soon as script stops i will post here exact error just in case.

Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster

hardcod3dd commented 3 years ago
checking for atomic_ops library ... not found

./auto/configure: error: libatomic_ops library was not found.

tried to get lib directory with dpkg -L libatomic-ops-dev and changed the --with-libatomic to --with-libatomic=/usr/lib/x86_64-linux-gnu but now it gives me this error.script might have deleted some files at first failed attempt.so recloning repo and running install script again.

cd /usr/lib/x86_64-linux-gnu \
&& if [ -f Makefile ]; then make distclean; fi \
&& ./configure
/bin/sh: 3: ./configure: not found
make[1]: *** [objs/Makefile:2281: /usr/lib/x86_64-linux-gnu/Makefile] Error 127
make[1]: *** Bitmemiş işler için bekliyor....
make[1]: Leaving directory '/root/hosting/nginx'
make: *** [Makefile:11: install] Error 2
rm -rf Makefile objs
HEAD is now at 5cef7de7 Slice filter: clear original Accept-Ranges.
root@debian:~/hosting# 

i even tried to install libatomic from source. still getting this

........
+ ngx_stream_lua_module was configured
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for atomic_ops library ... not found

./auto/configure: error: libatomic_ops library was not found.
hardcod3dd commented 3 years ago

Fixed by this (dirty but works)

Download libatomic from github Create directory under hosting/libatomic Extract Archive to hosting/libatomic Go inside libatomic folder and run install commands from repo Copy all lib* files from /usr/local/lib to hosting/libatomic/src Edit the --with-libatomic to --with-libatomic=../libatomic on the script (use ctrl-f) Run the script again(i manually entered commands for debugging.)

DanWin commented 3 years ago

nginx does indeed seem to expect libatomic_ops to be shipped as source code and built from scratch 98a1eb29669ce1afd2baf461c3e686f5a32062ef should fix this issue