# Problem with missing liblua5.2.so.0 on latest Linux x64 build on Fedora 28

**URL:** <https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774>\
**Category:** The Garage\
**Created:** [June 26, 2018, 6:04am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774 "2018-06-26T06:04:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hexman/32/2599_2.png) [@hexman](https://discourse.cataclysmdda.org/u/hexman)\
**Post date:** [June 26, 2018, 6:04am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774/1 "2018-06-26T06:04:16Z")

</div>

I recently switched to Fedora 28 from Debian and I’m having a problem with running the latest x64 terminal build of Cataclysm (downloaded from [here](https://cataclysmdda.org/releases/)). When cataclysm is run in a terminal, `liblua5.2.so.0` is reported to be missing despite the fact that I have Lua installed:

```
$ ./cataclysm
./cataclysm: error while loading shared libraries: liblua5.2.so.0: cannot open shared object file: No such file or directory

```

 ![Screenshot%20from%202018-06-26%2011-25-05](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/7/7b7ced5f8aaefea23d711105ba2a96d061a29787.png)

The problem is that none of the packages in Fedora provide Lua 5.2—all of them provide Lua 5.3 plus related libraries and unlike Debian, Fedora doesn’t keep old packages in its repositories.

So what options do I have? Do I download the file `liblua5.2.so.0` from somewhere, put it in the game directory and change `$LD_LIBRARY_PATH` so that the loader can see it? I’m sure there’s a better solution out there… ideas?

Edit: Btw, what’s the rationale behind _not_ statically building the binary with lua5.2 considering the last release of 5.2.x was around 2015?

---

<div class="post-metadata">

**Author:** ![hexman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hexman/32/2599_2.png) [@hexman](https://discourse.cataclysmdda.org/u/hexman)\
**Post date:** [June 26, 2018, 6:46am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774/2 "2018-06-26T06:46:24Z")

</div>

As expected, this can be fixed by downloading the 5.2 binary from the official Lua website, renaming the shared library to `liblua5.2.so.0` and then running

```
env LD_LIBRARY_PATH=. ./cataclysm

```

which does run the game but the loader throws up a lot of errors:

```
./cataclysm: /lib64/libtinfo.so.5: no version information available (required by ./cataclysm)
./cataclysm: /lib64/libncursesw.so.5: no version information available (required by ./cataclysm)
./cataclysm: /lib64/libncursesw.so.5: no version information available (required by ./cataclysm)
./cataclysm: /lib64/libncursesw.so.5: no version information available (required by ./cataclysm)
./cataclysm: /lib64/libncursesw.so.5: no version information available (required by ./cataclysm)
./cataclysm: ./liblua5.2.so.0: no version information available (required by ./cataclysm)

```

Is there any other way to fix this?

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [June 26, 2018, 6:52am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774/3 "2018-06-26T06:52:46Z")

</div>

You can try setting up LUA\_BINARY environment variable.

---

<div class="post-metadata">

**Author:** ![hexman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hexman/32/2599_2.png) [@hexman](https://discourse.cataclysmdda.org/u/hexman)\
**Post date:** [June 26, 2018, 7:02am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774/4 "2018-06-26T07:02:04Z")

</div>

That doesn’t work. `export LUA_BINARY=/usr/lib64/liblua-5.3.so` or any thing else does nothing. Only changing `LD_LIBRARY_PATH` to point to the downloaded library works as stated in my earlier post and that too leads to loader errors.

---

<div class="post-metadata">

**Author:** ![techtonik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/techtonik/32/3706_2.png) [@techtonik](https://discourse.cataclysmdda.org/u/techtonik)\
**Post date:** [November 18, 2018, 6:57am UTC](https://discourse.cataclysmdda.org/t/problem-with-missing-liblua5-2-so-0-on-latest-linux-x64-build-on-fedora-28/15774/5 "2018-11-18T06:57:25Z")

</div>

I tried not to upgrade Lua to the latest version and ended up using `snap`. It appears to be pretty fresh. But maybe not stable. )

```
snap install cataclysm
cataclysm
```
