• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X Error Compile ubuntu 16.04

cs007

New Member
Joined
Dec 2, 2010
Messages
71
Reaction score
1
Error while executing command

Code:
root@ubuntu:/home/sources# sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make -j 2
autoreconf: 'configure.ac' or 'configure.in' is required
 
C++:
sudo apt-get install -y git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev
sudo git clone --recursive https://github.com/otland/forgottenserver.git
cd forgottenserver
sudo mkdir build && cd build && cmake ..
 
C++:
sudo apt-get install -y git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev
sudo git clone --recursive https://github.com/otland/forgottenserver.git
cd forgottenserver
sudo mkdir build && cd build && cmake ..

MySQL Error Message: Can't connect to local MySQL server through socket '' (111)
> ERROR: Failed to connect to database.
>> No services running. The server is NOT online.
 
EDIT:

Ignore all and folow below:
Code:
sudo su
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
sudo apt-get install -y apache2 htop screen php php-cli php-fpm libapache2-mod-php php-mcrypt mysql-server php-mysql unzip zip php-curl php-json phpmyadmin
sudo apache2ctl configtest
phpenmod mcrypt
sudo nano /etc/apache2/apache2.conf
Add in the end: ServerName 127.0.0.1
Add in the end: Include /etc/phpmyadmin/apache.conf
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo chmod 777 /var/www/html
sudo nano /etc/apache2/mods-enabled/dir.conf
ADD index.php IN 1st POSITION
sudo systemctl restart apache2
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo apt-get install -y git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev
git clone --recursive https://github.com/otland/forgottenserver.git
cd forgottenserver
mkdir build && cd build && cmake ..
screen make
service mysql start
screen ./tfs
 
Last edited:
Check if your file my.cnf (usually in the /etc/mysql/ folder) is correctly configured with:
CSS:
socket=/var/lib/mysql/mysql.sock

You can check if mysql is running with the following command:
CSS:
mysqladmin -u root -p status

Try changing your permission to mysql folder. If you are working locally, you can try:
CSS:
sudo chmod -R 755 /var/lib/mysql/
Code:
root@ubuntu:/home/global# mysqladmin -u root -p status
Enter password:
Uptime: 12924  Threads: 1  Questions: 481  Slow queries: 0  Opens: 400  Flush tables: 1  Open tables: 227  Queries per second avg: 0.037
 
Code:
root@ubuntu:/home/global# mysqladmin -u root -p status
Enter password:
Uptime: 12924  Threads: 1  Questions: 481  Slow queries: 0  Opens: 400  Flush tables: 1  Open tables: 227  Queries per second avg: 0.037

Please, ignore all and follow my edit post above!
 
EDIT:

Ignore all and folow below:
Code:
sudo su
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
sudo apt-get install -y apache2 htop screen php php-cli php-fpm libapache2-mod-php php-mcrypt mysql-server php-mysql unzip zip php-curl php-json phpmyadmin
sudo apache2ctl configtest
phpenmod mcrypt
sudo nano /etc/apache2/apache2.conf
Add in the end: ServerName 127.0.0.1
Add in the end: Include /etc/phpmyadmin/apache.conf
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo chmod 777 /var/www/html
sudo nano /etc/apache2/mods-enabled/dir.conf
ADD index.php IN 1st POSITION
sudo systemctl restart apache2
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo apt-get install -y git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libpugixml-dev
git clone --recursive https://github.com/otland/forgottenserver.git
cd forgottenserver
mkdir build && cd build && cmake ..
screen make
service mysql start
screen ./tfs
same error
 
Back
Top