simply run 'make'
Hello. I will manage without unnecessary preludes - many have been waiting for the official release, and now they have waited. On Habré already have a couple of articles on how to install MTProxy from the docker.
But with the installation of the
source, many are broken off - after
simply run 'make' errors are issued. How to install MTProxy from source without errors on Centos 7 - under the cat
Download the source
cd ~ git clone https://github.com/TelegramMessenger/MTProxy
Check the openssl version
openssl version
Most likely the output will be like:
OpenSSL 1.0.2k-fips 26 Jan 2017
Update openssl to 1.1.0
Hyde taken
from hereInstall auxiliary tools
sudo yum install libtool perl-core zlib-devel -y
Download source version 1.1.0
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0g.tar.gz
Unpack and go to the folder
tar -zxvf OpenSSL_1_1_0g.tar.gz cd openssl-OpenSSL_1_1_0g
We assemble and install
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib make make test sudo make install
Add a new version to PATH:
Create a file
sudo vi /etc/profile.d/openssl.sh
Content:
Reboot the shell
Create a file
sudo vi /etc/ld.so.conf.d/openssl-1.1.0g.conf
Content:
Apply
sudo ldconfig -v
Check the openssl version
openssl version
OpenSSL 1.1.0h 27 Mar 2018
Open the Makefile and add
CFLAGS:
-I / usr / local / openssl / includeLDFLAGS:
-L / usr / local / openssl / lib CFLAGS = -I/usr/local/openssl/include -m64 -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 LDFLAGS = -L /usr/local/openssl/lib -m64 -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto
Save
And only now
simply make .
make clean make
Further, according to the
readmeAll success, I hope helped
My proxy on Dedik (it would be interesting to do load testing)
t.me/proxy?server=mtp.proxy.mediatube.xyz&port=443&secret=f3f0a2df006d4b4913cc7fd77cc77ffaVDS in Russia and the Netherlands
Our channel in Telegram
Chat for questions