Hi everyone,
after much pain, searching and help I have managed to compile
Quickfixengine on 64 bit linux. I am posting this email to anyone else
that may be struggling to do this. Maybe it could be posted on a wiki,
help page since the mail digest is pretty hard to search (well, can't
be searched).
Linux: Fedora 10 and Centos 5
Linked in: Mysql and Ruby (I was not able to link in python, always got errors)
Need all the libraries plus: mysql-devel, ruby, ruby-devel
run ./configure --with-mysql=/usr --with-ruby
# point to 64 bit mysql libraries, and pthread
vim config.status:
s,@LIBS@, -lpthread -lxml2 -lz -lm -L/usr/lib64/mysql -lmysqlclient ,;t t
s,@MYSQL_LIBS@,-L/usr/lib64/mysql -lmysqlclient,;t t
run ./config.status
# due to gcc 4.3 new library rules: http://gcc.gnu.org/gcc-4.3/porting_to.html
vim src/C++/Utility.h
add
include <cstdlib>
include <cstring>
now:
make
if no errors:
su, make install
if no errors:
cd tests
it is easier to run unit and acceptance tests as su, I randomly use port 1000
./runut 1000
./runat 1000
# ignore the example files for now, they don't have the correct
environment variables setup
cd bin
./run_executor_ruby
if no errors: you have arrived!
thanks to George Hrysanthopoulos for sharing how to fix the
config.status file (found in some Nabble archive) and Kenny Stone for
the suggestion to run ./bin/run_executor_ruby instead of the examples
themselves.
Michael
|