# Pack RocksDB, build fails on Ubuntu 22.04 LTS on WSL on Windows (reproducible)

**URL:** <https://swi-prolog.discourse.group/t/pack-rocksdb-build-fails-on-ubuntu-22-04-lts-on-wsl-on-windows-reproducible/5559>\
**Category:** Pack\
**Created:** [June 28, 2022, 10:41am UTC](https://swi-prolog.discourse.group/t/pack-rocksdb-build-fails-on-ubuntu-22-04-lts-on-wsl-on-windows-reproducible/5559 "2022-06-28T10:41:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [June 30, 2022, 7:00pm UTC](https://swi-prolog.discourse.group/t/pack-rocksdb-build-fails-on-ubuntu-22-04-lts-on-wsl-on-windows-reproducible/5559/3 "2022-06-30T19:00:36Z")

</div>

> [@peter.ludemann](#):
>
> if you’re familiar with C++

Enough to often go nuts working with it but not enough that it rolls off the finger tips.

* * *

I actually tried swapping out the Git [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) version of RocksDB which is [rocksdb @ bd68bfb](https://github.com/facebook/rocksdb/tree/bd68bfb41b58dba4332045392cdbda4664b01e81) for a current one and ran into a new set of errors.

The one requested by the RocksDB pack and the commits of RocksDB are compiling clean by themselves but when built via pack\_install/1 or pack\_rebuild/1 lead to errors. I tried running `make shared_object` in the pack directory but that is failing because pack\_install/1 is setting up some environment variables that are not there when make is executed directly.

Saw this [post](https://swi-prolog.discourse.group/t/bpl-3-2-released/519/4) that notes

> For debugging purposes pack\_install creates a shell script in the build location that sets the same variables, so you can run the compiler from any environment.

but I can not find the script or even in the Prolog code where it is created. Needless to say this is my typical scenario with _make_ and _C++_, try, back step try again, and again and again and then one day wake up lucky and it just works. Then it seems I can never get such things to fail again.

---

_[View the full topic](https://swi-prolog.discourse.group/t/pack-rocksdb-build-fails-on-ubuntu-22-04-lts-on-wsl-on-windows-reproducible/5559)._
