# Cataclysm on Linux help \[Warning - Linux moron\]

**URL:** https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587
**Category:** The Garage
**Created:** [September 24, 2015, 11:49pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587 "2015-09-24T23:49:16Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 24, 2015, 11:49pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/1 "2015-09-24T23:49:16Z")

</div>

- The Garage may not be the best place for this, feel free to move me! -

Currently attempting to learn Linux, so I put Linux Mint on my secondary computer, I know only the basic stuff and some terminal commands. Not enough to really consider myself to know what i’m doing.

I just want to have Cataclysm on there as my friend that uses the computer that’s setup next to mine is trying to learn Cataclysm, and using Wine for it always creates a problem somewhere, and somehow. I tried the guide on the wiki for getting Cataclysm going, but I not only could not figure out how to launch it, but i’m also pretty sure that there was a dependency somewhere that went wrong.  
I am a complete idiot when it comes to Linux, so hopefully one of you gods like Kevin could give me step by step help with this.

tl;dr - Born to be Mild is an idiot and is not good with the Linux.

brb gotta go switch my username to “no such file or directory”

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [September 25, 2015, 4:14am UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/2 "2015-09-25T04:14:31Z")

</div>

It’s way easy on linux, especially if you’re playing terminal mode.  
Download the archive you want.  
Unpack the archive somewhere.  
Open a terminal.  
cd into the directory where you unpacked the archive.  
./cataclysm

If you want to play the tiles version, you need to get the right version of SDL installed.

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 25, 2015, 9:50pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/3 "2015-09-25T21:50:38Z")

</div>

I’ll…try…?

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 25, 2015, 10:04pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/4 "2015-09-25T22:04:24Z")

</div>

Okay as far as I got was cd into the current directory. Now im just sitting in a Cataclysm-DDA directory with everything unpacked there with no clue what to do. Currently searching google trying to figure out what im doing.

I think I should invest in a Linux for Dummies book soon.

EDIT: Everything I have tried has returned “no such file or directory” even though I am sitting in the cataclysm directory I made.

EDIT2: tried sudo ./cataclysm-launcher _enters password_ “command not found”

holy edits batman: I tried building it myself via terminal also, bringing me to the same point where I just would sit there in the directory trying to figure out how to run cataclysm or cataclysm-launcher. Ya know over in Windows-land we call this a double click.

EDIT4: somebody send a Linux rescue team

---

<div class="post-metadata">

### Author: ![BevapDin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bevapdin/32/228_2.png) [@BevapDin](https://discourse.cataclysmdda.org/u/BevapDin)
#### Post date: [September 26, 2015, 3:48pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/5 "2015-09-26T15:48:26Z")

</div>

> EDIT2: tried sudo ./cataclysm-launcher \*enters password\* "command not found"

Please don't do sudo. There is no need to run the game as root.

Usually the game is started like this (from the cataclysm folder):

```auto
./cataclysm
```

If that does not work, enter

```auto
ls
```

That shows the content of the current directory. If you’re in the right directory, you should see filenames like  
[tt]CataclysmWin.cbp[/tt], [tt]LICENSE.txt[/tt], [tt]COMPILING.md[tt], [tt]CONTRIBUTING.md[/tt], and [tt]data[/tt].

> EDIT: Everything I have tried has returned "no such file or directory" even though I am sitting in the cataclysm directory I made.

That either means you’re in the wrong directory or you didn’t wrote the correct command. Therefor, please tell what exactly you have done. What command did you enter and what was the result?

> I think I should invest in a Linux for Dummies book soon.

There are plenty of tutorials online, or so I've heard (-;

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 26, 2015, 4:16pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/6 "2015-09-26T16:16:28Z")

</div>

okay there was a sub folder…

now im in the correct directory, ./cataclysm, it returns “error while loading shared libraries: liblua5.2.so.0 cannot open a shared object file: No such file or directory”

So it looks like I have lua issues? This is almost a completely fresh install, all I have is Counter-Strike, Eclipse, and Java on this thing.

---

<div class="post-metadata">

### Author: ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)
#### Post date: [September 26, 2015, 7:00pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/7 "2015-09-26T19:00:34Z")

</div>

Sounds like you need to install the lua package.  
Try after installing lua with:

```auto

```

or

```auto

```

PS. Only one of the two is correct, but i have not mint to check it. I’m rooting for the 2nd though.

PS2. If lua is already installed but cata still errors out, try building cata yourself.

1. Download the source.
2. Open a terminal, go to the source folder (cd), then build it with typing either `make`  
or `make TILES=1` for tiles version.

See here for more. Ubuntu way should be the same for mint.: [http://www.wiki.cataclysmdda.com/index.php?title=How\_to\_compile#Ubuntu](http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile#Ubuntu)

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 26, 2015, 11:01pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/8 "2015-09-26T23:01:07Z")

</div>

Yeah I ended up having to build myself but we have liftoff!  
Cataclysm has launched!

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 26, 2015, 11:08pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/9 "2015-09-26T23:08:16Z")

</div>

[http://imgur.com/gallery/r2kcWcf/new](http://imgur.com/gallery/r2kcWcf/new)

- A wonderful moment -

Mostly because its the first time I have done something with Linux without anything catching on fire.

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 26, 2015, 11:20pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/10 "2015-09-26T23:20:50Z")

</div>

“This mod requires lua but your build does not support it”

c: _eye twitch_

---

<div class="post-metadata">

### Author: ![latogato](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@latogato](https://discourse.cataclysmdda.org/u/latogato)
#### Post date: [September 28, 2015, 5:39pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/11 "2015-09-28T17:39:13Z")

</div>

[quote=“Born\_tobe\_Mild, post:10, topic:10587”]"This mod requires lua but your build does not support it"  
c: _eye twitch_[/quote]  
You have to build the CDDA with LUA=1 option: make LUA=1  
If your liblua version is less then 5.2 then you can download the lib from here:  
[http://sourceforge.net/projects/luabinaries/files/5.2/Linux%20Libraries/](http://sourceforge.net/projects/luabinaries/files/5.2/Linux%20Libraries/)  
(I’m using CentOs 7 and it’s comes with 5.1 lua)

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 28, 2015, 8:36pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/12 "2015-09-28T20:36:45Z")

</div>

Well it was claiming that I had no Lua installed when I did have 5.2.3, I did some dicking around with it and suddenly its all happy with make Lua=1

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 28, 2015, 8:44pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/13 "2015-09-28T20:44:31Z")

</div>

I did make lua=1  
went off without a hitch  
start game.  
Your build doesnt support lua.

oh god I was told this was easy I am not good with computer now.

---

<div class="post-metadata">

### Author: ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)
#### Post date: [September 29, 2015, 1:22pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/14 "2015-09-29T13:22:38Z")

</div>

please, on a terminal write:

```auto

```

and tell us the result.

---

<div class="post-metadata">

### Author: ![BevapDin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bevapdin/32/228_2.png) [@BevapDin](https://discourse.cataclysmdda.org/u/BevapDin)
#### Post date: [September 29, 2015, 2:11pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/15 "2015-09-29T14:11:38Z")

</div>

As latogato said, you have to build with [tt]LUA=1[/tt] (all uppercase letters), [tt]Lua=1[/tt] or [tt]lua=1[/tt] wont work.

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 29, 2015, 6:30pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/16 "2015-09-29T18:30:29Z")

</div>

make LUA=1 returns that I dont have lua installed, doing lua -v returns that I have Lua 5.2.3, so I clearly have lua installed.

---

<div class="post-metadata">

### Author: ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)
#### Post date: [September 29, 2015, 7:36pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/17 "2015-09-29T19:36:41Z")

</div>

This is weird.  
I’m not very good with makefile code, but by reading the makefile i’d think that your lua should be detected, based on this:

`LUA_CANDIDATES = lua5.2 lua-5.2 lua5.1 lua-5.1 lua
LUA_FOUND = $(firstword $(foreach lua,$(LUA_CANDIDATES),\
        $(shell if $(PKG_CONFIG) --silence-errors --exists $(lua); then echo $(lua);fi)))
    LUA_PKG += $(if $(LUA_FOUND),$(LUA_FOUND),$(error "Lua not found by $(PKG_CONFIG), install it or make without 'LUA=1'"))`

Which means (if i understand correctly): search serially for the lua variants (and we do know that the “lua” one exists), and if none exist, error out.  
Maybe the problem is with pkg\_config or its $PATH?

is this responding with “lua”?

```auto

```

Anyway, i do think you’d need someone with a bit more knowledge than me to debug it.

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 29, 2015, 7:59pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/18 "2015-09-29T19:59:55Z")

</div>

I threw that if statement into the terminal and it doesnt return anything.  
There was no else in it so im assuming that means no lua on my system?

---

<div class="post-metadata">

### Author: ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)
#### Post date: [September 29, 2015, 9:35pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/19 "2015-09-29T21:35:40Z")

</div>

I think i got it [here](http://stackoverflow.com/questions/5350086/no-package-lua-found-but-i-have-it-installed)

> If compiling software yourself, you should install not only the runtime (lua5.1) but also the development packages (liblua5.1-0-dev). That package contains the lua5.1.pc file.

this of course applies to the lua 5.2 that you are using

so you do need the pertinent lua5.2-dev package. try:

```auto
sudo apt-get install liblua5.2-dev
```

and then try to make it as BevapDin said.

---

<div class="post-metadata">

### Author: ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)
#### Post date: [September 29, 2015, 10:38pm UTC](https://discourse.cataclysmdda.org/t/cataclysm-on-linux-help-warning-linux-moron/10587/20 "2015-09-29T22:38:49Z")

</div>

It works.  
It finally works.
