# Have trouble compiling src on Linux

**URL:** <https://discourse.cataclysmdda.org/t/have-trouble-compiling-src-on-linux/11306>\
**Category:** The Garage\
**Created:** [January 27, 2016, 6:28am UTC](https://discourse.cataclysmdda.org/t/have-trouble-compiling-src-on-linux/11306 "2016-01-27T06:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arcadia](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/arcadia/32/528_2.png) [@arcadia](https://discourse.cataclysmdda.org/u/arcadia)\
**Post date:** [January 27, 2016, 6:28am UTC](https://discourse.cataclysmdda.org/t/have-trouble-compiling-src-on-linux/11306/1 "2016-01-27T06:28:35Z")

</div>

os is centos 6.5 x64. I’m using cmake for compiling the game. Commands are:

> cmake .. -DCMAKE\_BUILD\_TYPE=optimized -DCMAKE\_INSTALL\_PREFIX="/opt" -DUSE\_HOME\_DIR=0 -DLUA=1 -DLUA\_BINARY="/usr/local/bin/lua" -DLUA\_INCLUDE\_DIR="/usr/local/include" -DLUA\_LIBRARY="/usr/local/lib/liblua.a" -DRELEASE=1 -DLANGUAGES="zh\_CN" make && make install

This will raise tons of undefined symbol error on lua related code. I have lua5.1 in /usr and lua5.2 in /usr/local. Not sure how to pass all the path correctlly.

If I set LUA=0 then it’s all ok. Except I cannot start the game out of the project folder, game says:  
DEBUG: could not read data/raw/keybindings.json

I checked /opt find data/\* are put in /opt/share/cataclysm-dda/\*. What should I do to set the game found the path correctly?

UPDATE: problem 2 solved, simply put the binary back to the project folder and delete all the installed data files. And use a shell script to launch game. Now I will try to make it work in dgamelaunch

\*Sorry for my English, I hope I explain my problems clearly.
