AMD Athlon64 Compile
Posted: Mon Jan 30, 2012 10:05 pm
I recently bought a new Linux box (Debian AMD64) and I just tried compiling World on it and holy crap, major problems. Initially the problem was "CPU you selected does not support x86-64 instruction set". After fixing that there were numerous 64bit problems I found that didn't let me finish the compiling process. So I spent a bunch of time tonight getting World to compile for this architecture. The new Makefile is called makefile.a64 and should only be used if you're running AMD Ahtlon64.
I made the decision to create a separate Makefile for this, so we can leave the Linux 32bit version alone. If you are running AMD64 and want to compile you have one of two options:
Keep the files the same but issue a different make command (recommended if you commit to SVN in order to avoid conflicts)
Rename the original Makefile to something else and rename the AMD Makefile to makefile.
Additional Notes
The new makefile uses a utility called mysql_config to determine where your MySQL includes and libraries are so you can keep them installed where ever you want and we don't have to include static directories in the Makefile. If you do not have mysql_config you'll need the mysqlclient developer library. It's very easy to install:
Debian (Ubuntu, etc):
Redhat, CentOS, etc (it should be something like this - I don't have one of these distros so I'm not sure):
Please let me know if anyone runs into any issues.
I made the decision to create a separate Makefile for this, so we can leave the Linux 32bit version alone. If you are running AMD64 and want to compile you have one of two options:
Keep the files the same but issue a different make command (recommended if you commit to SVN in order to avoid conflicts)
Code: Select all
make -f makefile.a64Code: Select all
mv makefile makefile.orig
mv makefile.a64 makefile
makeThe new makefile uses a utility called mysql_config to determine where your MySQL includes and libraries are so you can keep them installed where ever you want and we don't have to include static directories in the Makefile. If you do not have mysql_config you'll need the mysqlclient developer library. It's very easy to install:
Debian (Ubuntu, etc):
Code: Select all
sudo apt-get install libmysqlclient-devCode: Select all
yum install libmysqlclient-dev
yum install mysql-devel.x86_64