https://wiki.multitheftauto.com/api.php?action=feedcontributions&user=OpenIDUser65&feedformat=atomMulti Theft Auto: Wiki - User contributions [en]2024-03-28T17:11:12ZUser contributionsMediaWiki 1.39.3https://wiki.multitheftauto.com/index.php?title=Installing_and_Running_MTASA_Server_on_GNU_Linux&diff=39672Installing and Running MTASA Server on GNU Linux2014-05-31T18:50:38Z<p>OpenIDUser65: /* Debian 7 (wheezy) 64 bit */</p>
<hr />
<div>== Installation ==<br />
<br />
=== Main binary ===<br />
Download the latest stable Linux binaries from here:<br />
wget <nowiki>http</nowiki>://linux.mtasa.com/dl/135/multitheftauto_linux-{{Current Version|full}}.tar.gz<br />
<!--<br />
or if you are feeling daring, get the latest nightly build from here:<br />
wget <nowiki>http</nowiki>://nightly.mtasa.com/?multitheftauto_linux-{{Current Version|full}}-latest<br />
--><br />
Unpack into a directory:<br />
tar -xf multitheftauto_linux*<br />
<br />
=== Default config ===<br />
Download the default config files:<br />
wget <nowiki>http</nowiki>://linux.mtasa.com/dl/135/baseconfig-{{Current Version|full}}.tar.gz<br />
<br />
Unpack and move into the deathmatch directory:<br/><br />
('''''Note:''' Only do this for new installations as it will overwrite any existing config files.)''<br />
tar -xf baseconfig*<br />
mv baseconfig*/* multitheftauto_linux*/mods/deathmatch<br />
<br />
<!--<br />
=== Default resources ===<br />
Download the latest default resources:<br />
wget <nowiki>http</nowiki>://mtasa-resources.googlecode.com/files/mtasa-resources-r959.zip<br />
(mtasa-resources-r959.zip is an example. Check https://code.google.com/p/mtasa-resources/downloads/list?q=label:Latest for the latest file name)<br />
--><br />
<br />
=== Test ===<br />
You can now test if the server will start correctly, by entering the install directory:<br />
cd multitheftauto_linux*<br />
<br />
and launching:<br />
./mta-server<br />
<br />
== Running with 32 or 64 bit Linux==<br />
=== Make sure your server libraries and stuff are up to date ===<br />
On Debian/Ubuntu this is done with:<br />
apt-get update<br />
apt-get upgrade<br />
<br />
== Running with 32 bit Linux ==<br />
===32 bit Troubleshooting===<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on 32 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install libreadline5<br />
<br />
* If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on 32 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install libncursesw5<br />
<br />
== Running with 64 bit Linux ==<br />
===Debian 7 (wheezy) 64 bit===<br />
Before running MTASA Server, use this command line for installation of 32 bit libs :<br/><br />
<br />
apt-get install lib32ncursesw5 lib32readline5 g++-multilib lib32z1<br />
<br />
===Install 32 bit libs for your 64 bit distro===<br />
For 64 bit Debian 6, this is achieved with:<br/><br />
''(Some 64 bit distros have 32 bit libs already installed for you. So this step might not be required)''<br />
<br />
apt-get install ia32-libs<br />
<br />
===64 bit Troubleshooting===<br />
====64 bit Debian/Ubuntu====<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on 64 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install lib32readline5<br />
<br />
* If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on 64 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install lib32ncursesw5<br />
<br />
====64 bit CentOS 6====<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", edit '''''/etc/yum.conf''''' and add this line:<br />
multilib_policy=all<br />
Then issue this command:<br />
yum install compat-readline5<br />
* Further 64 bit solutions can be found [http://forum.mtasa.com/viewtopic.php?f=106&t=35328#p367282 on the forums]<br />
<br />
== MySQL Troubleshooting==<br />
* If you are using the inbuild MySQL functions such as [[dbConnect]] and [[dbQuery]], you will need to have '''libmysqlclient.so.15''' installed.<br />
* If you can't get '''libmysqlclient.so.15''' installed by conventional means, then try [http://nightly.mtasa.com/files/libmysqlclient.so.15 downloading the file from here] and copying it to your Linux server '''/usr/lib/''' directory.<br />
<br />
==Cent OS Troubleshooting==<br />
* If you are using Cent OS and you get something like /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by xmll.so) this can be resolved by doing downloading the archive [[http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/libstdc++-4.3.0-8.i386.rpm here]] and unpacking it with the following command:<br />
<br />
rpm2cpio libstdc++-4.3.0-8.i386.rpm | cpio -i --make-directories<br />
<br />
== Server crashes ==<br />
<br />
If your Linux server crashes, please obtain a backtrace and post a report on our [http://bugs.mtasa.com/ Bug tracker]<br />
<br />
====To obtain a backtrace:====<br />
===Do you have a core dump file in the the MTA server directory?===<br />
It's usually called 'core', and usually over 100MB, and looks something like this:<br />
[[Image:Core.png]]<br />
====If you have a core dump file in the the MTA server directory:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA install directory do this command<br />
gdb mta-server -c core<br />
*When gdb launches, do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*Save the output<br />
*(To exit gdb, use the quit command)<br />
<br />
====If you do not have a core dump file in the the MTA server directory:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA server directory start the mta-server like this:<br />
gdb mta-server -ex "set print thread-events off" --eval-command run<br />
*Now wait for a crash. (Ignore any weird screen output in the meantime)<br />
*When a crash occurs, do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*Save the output<br />
*(To exit gdb, use the quit command)<br />
<br />
<br />
== '''Server freezes''' ==<br />
<br />
If your Linux server freezes, please obtain a backtrace with thread information and post a report on our [http://bugs.mtasa.com/ Bug tracker]<br />
<br />
====To obtain a backtrace with thread information:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA server directory start the mta-server like this:<br />
gdb mta-server -ex "set print thread-events off" --eval-command run<br />
*Now wait for a freeze. (Ignore any weird screen output in the meantime)<br />
*When a freeze occurs, press ctrl-c to start gdb<br />
*Then do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*And then this command to get thread information:<br />
info threads<br />
*Save the output<br />
*(To exit gdb, use the quit command)</div>OpenIDUser65https://wiki.multitheftauto.com/index.php?title=Installing_and_Running_MTASA_Server_on_GNU_Linux&diff=39671Installing and Running MTASA Server on GNU Linux2014-05-31T14:38:33Z<p>OpenIDUser65: /* Running with 64 bit Linux - Debian 7 (wheezy) */</p>
<hr />
<div>== Installation ==<br />
<br />
=== Main binary ===<br />
Download the latest stable Linux binaries from here:<br />
wget <nowiki>http</nowiki>://linux.mtasa.com/dl/135/multitheftauto_linux-{{Current Version|full}}.tar.gz<br />
<!--<br />
or if you are feeling daring, get the latest nightly build from here:<br />
wget <nowiki>http</nowiki>://nightly.mtasa.com/?multitheftauto_linux-{{Current Version|full}}-latest<br />
--><br />
Unpack into a directory:<br />
tar -xf multitheftauto_linux*<br />
<br />
=== Default config ===<br />
Download the default config files:<br />
wget <nowiki>http</nowiki>://linux.mtasa.com/dl/135/baseconfig-{{Current Version|full}}.tar.gz<br />
<br />
Unpack and move into the deathmatch directory:<br/><br />
('''''Note:''' Only do this for new installations as it will overwrite any existing config files.)''<br />
tar -xf baseconfig*<br />
mv baseconfig*/* multitheftauto_linux*/mods/deathmatch<br />
<br />
<!--<br />
=== Default resources ===<br />
Download the latest default resources:<br />
wget <nowiki>http</nowiki>://mtasa-resources.googlecode.com/files/mtasa-resources-r959.zip<br />
(mtasa-resources-r959.zip is an example. Check https://code.google.com/p/mtasa-resources/downloads/list?q=label:Latest for the latest file name)<br />
--><br />
<br />
=== Test ===<br />
You can now test if the server will start correctly, by entering the install directory:<br />
cd multitheftauto_linux*<br />
<br />
and launching:<br />
./mta-server<br />
<br />
== Running with 32 or 64 bit Linux==<br />
=== Make sure your server libraries and stuff are up to date ===<br />
On Debian/Ubuntu this is done with:<br />
apt-get update<br />
apt-get upgrade<br />
<br />
== Running with 32 bit Linux ==<br />
===32 bit Troubleshooting===<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on 32 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install libreadline5<br />
<br />
* If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on 32 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install libncursesw5<br />
<br />
== Running with 64 bit Linux ==<br />
===Debian 7 (wheezy) 64 bit===<br />
Before running MTASA Server, use this command line for installation of 32 bit libs :<br/><br />
<br />
apt-get install lib32ncursesw5 g++-multilib lib32z1<br />
<br />
<br />
===Install 32 bit libs for your 64 bit distro===<br />
For 64 bit Debian 6, this is achieved with:<br/><br />
''(Some 64 bit distros have 32 bit libs already installed for you. So this step might not be required)''<br />
<br />
apt-get install ia32-libs<br />
<br />
===64 bit Troubleshooting===<br />
====64 bit Debian/Ubuntu====<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on 64 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install lib32readline5<br />
<br />
* If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on 64 bit Debian/Ubuntu by doing this:<br />
<br />
apt-get install lib32ncursesw5<br />
<br />
====64 bit CentOS 6====<br />
* If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", edit '''''/etc/yum.conf''''' and add this line:<br />
multilib_policy=all<br />
Then issue this command:<br />
yum install compat-readline5<br />
* Further 64 bit solutions can be found [http://forum.mtasa.com/viewtopic.php?f=106&t=35328#p367282 on the forums]<br />
<br />
== MySQL Troubleshooting==<br />
* If you are using the inbuild MySQL functions such as [[dbConnect]] and [[dbQuery]], you will need to have '''libmysqlclient.so.15''' installed.<br />
* If you can't get '''libmysqlclient.so.15''' installed by conventional means, then try [http://nightly.mtasa.com/files/libmysqlclient.so.15 downloading the file from here] and copying it to your Linux server '''/usr/lib/''' directory.<br />
<br />
==Cent OS Troubleshooting==<br />
* If you are using Cent OS and you get something like /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by xmll.so) this can be resolved by doing downloading the archive [[http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/9/Fedora/i386/os/Packages/libstdc++-4.3.0-8.i386.rpm here]] and unpacking it with the following command:<br />
<br />
rpm2cpio libstdc++-4.3.0-8.i386.rpm | cpio -i --make-directories<br />
<br />
== Server crashes ==<br />
<br />
If your Linux server crashes, please obtain a backtrace and post a report on our [http://bugs.mtasa.com/ Bug tracker]<br />
<br />
====To obtain a backtrace:====<br />
===Do you have a core dump file in the the MTA server directory?===<br />
It's usually called 'core', and usually over 100MB, and looks something like this:<br />
[[Image:Core.png]]<br />
====If you have a core dump file in the the MTA server directory:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA install directory do this command<br />
gdb mta-server -c core<br />
*When gdb launches, do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*Save the output<br />
*(To exit gdb, use the quit command)<br />
<br />
====If you do not have a core dump file in the the MTA server directory:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA server directory start the mta-server like this:<br />
gdb mta-server -ex "set print thread-events off" --eval-command run<br />
*Now wait for a crash. (Ignore any weird screen output in the meantime)<br />
*When a crash occurs, do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*Save the output<br />
*(To exit gdb, use the quit command)<br />
<br />
<br />
== '''Server freezes''' ==<br />
<br />
If your Linux server freezes, please obtain a backtrace with thread information and post a report on our [http://bugs.mtasa.com/ Bug tracker]<br />
<br />
====To obtain a backtrace with thread information:====<br />
*Install gdb. To install gdb on Debian, use this command:<br />
apt-get install gdb<br />
*And from the MTA server directory start the mta-server like this:<br />
gdb mta-server -ex "set print thread-events off" --eval-command run<br />
*Now wait for a freeze. (Ignore any weird screen output in the meantime)<br />
*When a freeze occurs, press ctrl-c to start gdb<br />
*Then do this command to get a module list:<br />
i sh<br />
*And then this command to get a backtrace:<br />
bt<br />
*And then this command to get thread information:<br />
info threads<br />
*Save the output<br />
*(To exit gdb, use the quit command)</div>OpenIDUser65