Compiling:CentOS

From ArcEmu-Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial Setup)
m (Reverted edits by Adams Quinn (talk) to last revision by Dfighter)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
CentOS is a popular Linux distribution for servers, which is significantly different than Ubuntu which our Linux documentation assumes you have.
 
CentOS is a popular Linux distribution for servers, which is significantly different than Ubuntu which our Linux documentation assumes you have.
Please note that this "guide" is for CentOS 5.5 (and presumably will work with newer too).
+
Please note that this "guide" is for CentOS 6.0 (and presumably will work with newer too).
  
 
====Initial Setup====
 
====Initial Setup====
Line 11: Line 11:
 
First we need to update/install gcc and g++ compilers.
 
First we need to update/install gcc and g++ compilers.
 
<source lang="bash">
 
<source lang="bash">
sudo yum remove gcc-c++
+
sudo yum install gcc gcc-c++
sudo yum remove gcc
+
sudo yum install gcc44
+
sudo yum install gcc44-c++
+
</source>
+
 
+
The gcc44-c++ package is not the default package and CentOS install it's binaries with the "44" suffix, which confuses our build scripts so we need to manually create symlinks for them.
+
<source lang="bash">
+
sudo ln -s /usr/bin/gcc44 /usr/bin/gcc
+
sudo ln -s /usr/bin/g++44 /usr/bin/g++
+
 
</source>
 
</source>
  
 
After it's done we can install the other tools and libraries we will need.
 
After it's done we can install the other tools and libraries we will need.
 
<source lang="bash">
 
<source lang="bash">
sudo yum install zlib-devel
+
sudo yum install zlib-devel openssl-devel mysql-devel pcre-devel
sudo yum install openssl-devel
+
sudo yum install git
sudo yum install mysql-devel
+
sudo yum install pcre-devel
+
sudo yum install subversion
+
 
</source>
 
</source>
  
=== CMake install ===
+
==== CMake install ====
  
 
We need to install CMake, which sadly doesn't come with CentOS.
 
We need to install CMake, which sadly doesn't come with CentOS.

Latest revision as of 01:49, 15 January 2012

ArcEmu currently ONLY supports: 3.3.5a 12340 June 29, 2010


Contents

Building Arcemu on CentOS

CentOS is a popular Linux distribution for servers, which is significantly different than Ubuntu which our Linux documentation assumes you have. Please note that this "guide" is for CentOS 6.0 (and presumably will work with newer too).

Initial Setup

We need to install the tools and libraries that we will be using to build Arcemu. First we need to update/install gcc and g++ compilers.

sudo yum install gcc gcc-c++

After it's done we can install the other tools and libraries we will need.

sudo yum install zlib-devel openssl-devel mysql-devel pcre-devel
sudo yum install git

CMake install

We need to install CMake, which sadly doesn't come with CentOS.

  • Open up a terminal
  • Go to your home directory
cd ~


  • Get the CMake package from their site


wget http://www.cmake.org/files/v2.8/cmake-2.8.4-Linux-i386.tar.gz


NOTE:
This address was valid at the time of writing this how-to. If it doesn't work when you are trying, you will need to find the right link, here: http://cmake.org/cmake/resources/software.html


  • Unpack and copy it to /usr/local


sudo tar xvfz cmake-2.8.4-Linux-i386.tar.gz
 
cd cmake-2.8.4-Linux-i386
 
sudo cp -R cmake-2.8.4-Linux-i386/* /usr/local


NOTE:
The actual version number in the file/directory names might be different, depending on the current version offered by the authors of CMake



MySQL Setup

Now we will have to install MySQL server.

sudo yum install mysql-server

When we are done with that we need to configure it so we can actually use it In order to do that we need to first start it.

sudo /etc/init.d/mysqld start

It will show some messages, which is a nice read, but it will all come down to doing this:

sudo /bin/mysql_secure_installation


Further Installation Steps

From now on, the steps should be the same as in the main guide, so you might as well return to that page.

Compiling:_Linux#Security_and_Accounts

Personal tools