EternalTerminal icon indicating copy to clipboard operation
EternalTerminal copied to clipboard

Cannot compile from source

Open ishmael1851 opened this issue 5 years ago • 2 comments

Tried to compile on Centos6 from up-to-date git clone.

/EternalTerminal/src/base/CryptoHandler.cpp: In member function ‘std::string et::CryptoHandler::encrypt(const string&)’: /EternalTerminal/src/base/CryptoHandler.cpp:28:35: error: ‘crypto_secretbox_MACBYTES’ was not declared in this scope string retval(buffer.length() + crypto_secretbox_MACBYTES, '\0'); ^ /EternalTerminal/src/base/CryptoHandler.cpp:31:64: error: ‘crypto_secretbox_easy’ was not declared in this scope buffer.length(), nonce, key) == -1); ^ /EternalTerminal/src/base/CryptoHandler.cpp:5:15: note: in definition of macro ‘SODIUM_FAIL’ int rc = (X);
^ /EternalTerminal/src/base/CryptoHandler.cpp: In member function ‘std::string et::CryptoHandler::decrypt(const string&)’: /EternalTerminal/src/base/CryptoHandler.cpp:38:35: error: ‘crypto_secretbox_MACBYTES’ was not declared in this scope string retval(buffer.length() - crypto_secretbox_MACBYTES, '\0'); ^ /EternalTerminal/src/base/CryptoHandler.cpp:41:61: error: ‘crypto_secretbox_open_easy’ was not declared in this scope buffer.length(), nonce, key) == -1) {

ishmael1851 avatar Mar 14 '20 21:03 ishmael1851

I was able to get this to install by first installing the most recent version of "libsodium" from source. Alas, Centos6 doesn't use systemd. Is there another way of starting the server?

ishmael1851 avatar Mar 14 '20 23:03 ishmael1851

@ishmael1851 what does centos6 use? You could run the server manually (as root):

etserver --cfgfile /etc/et.cfg

MisterTea avatar May 07 '20 15:05 MisterTea