3proxy icon indicating copy to clipboard operation
3proxy copied to clipboard

problem install

Open karinaardos opened this issue 1 year ago • 4 comments

I do not understand the command line Linux. Previously, the installation took place without problems, but now this mistake. /etc/init.d/3proxy: 17: /etc/3proxy/3proxy: not found

karinaardos avatar Nov 09 '24 22:11 karinaardos

same problem

qPyth avatar Nov 10 '24 11:11 qPyth

same problem

I have yet installed using the instructions chatGPT

#DOWNLOAD THE SOURCE CODE wget https://github.com/3proxy/3proxy/archive/refs/tags/0.9.3.tar.gz #WE UNNECESSARILY tar -xzf 3proxy-0.9.3.tar.gz #WE GO TO THE DOWNLOADED FILE cd 3proxy-0.9.3 #COMPILE make -f Makefile.Linux #MOVE sudo cp ./bin/3proxy /usr/local/bin/3proxy

LET'S CONFIGURE THE CONFIGURATION FILE /etc/3proxy/3proxy.cfg

#

daemon nserver 8.8.8.8 nserver 8.8.4.4 nscache 65536 timeouts 1 5 30 60 180 1800 15 60

log /var/log/3proxy/3proxy.log

logformat "L%C - %U [%d/%o/%Y:%H:%M:%S] ""%T"" %O %N/%R:%r"

flush auth iponly allow * ADD YOU IP proxy -p9999 flush users user21:CL:qwerty auth iponly strong cache allow slava * You IP admin -p8081 flush auth iponly allow * ADD YOU IP flush auth iponly allow * ADD YOU IP

#

WE SET THE RIGHTS sudo chmod -R 755 /etc/3proxy

#CREATE A SERVICE FOR THE SERVICE Открыть файл /etc/rc.local ADD THE LINE IN FRONT OF THE LINE exit 0 /usr/local/bin/3proxy /etc/3proxy/3proxy.cfg &

karinaardos avatar Nov 11 '24 19:11 karinaardos

system info: Linux vm897697 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

# make -f Makefile.Linux 
make[1]: Entering directory '/root/3proxy-0.9.4/src'
gcc -g  -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER 3proxy.c
In file included from 3proxy.c:9:
proxy.h:18:10: fatal error: stdio.h: No such file or directory
   18 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile.inc:51: 3proxy.o] Error 1
make[1]: Leaving directory '/root/3proxy-0.9.4/src'
make: *** [Makefile.inc:7: all] Error 2

I try to compile previous version and got the same error

# make -f Makefile.Linux 
make[1]: Entering directory '/root/3proxy-0.9.3/src'
gcc -g  -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER 3proxy.c
In file included from 3proxy.c:9:
proxy.h:18:10: fatal error: stdio.h: No such file or directory
   18 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile.inc:51: 3proxy.o] Error 1
make[1]: Leaving directory '/root/3proxy-0.9.3/src'
make: *** [Makefile.inc:7: all] Error 2

something missed..

keekkenen avatar Nov 13 '24 19:11 keekkenen

I do not understand the command line Linux. Previously, the installation took place without problems, but now this mistake. /etc/init.d/3proxy: 17: /etc/3proxy/3proxy: not found

change the path in 3proxyinstall.sh with mv src/3proxy /etc/3proxy/ on mv bin/3proxy /etc/3proxy/

SirDraiger avatar Feb 10 '25 13:02 SirDraiger