# Pstress build problem

**URL:** <https://forums.percona.com/t/pstress-build-problem/27139>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [December 14, 2023, 9:25am UTC](https://forums.percona.com/t/pstress-build-problem/27139 "2023-12-14T09:25:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ani\_Ghoghoberidze](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ani_ghoghoberidze/32/7681_2.png) [@Ani\_Ghoghoberidze](https://forums.percona.com/u/Ani_Ghoghoberidze)\
**Post date:** [December 14, 2023, 9:25am UTC](https://forums.percona.com/t/pstress-build-problem/27139/1 "2023-12-14T09:25:20Z")

</div>

Hi.  
I want to make a stress test for Percona MySQL 5.7. and want to use pstress  
Couldn’t fined a well documented guide how to install pstress. Using github one :

> [pstress/README.md at master · Percona-QA/pstress · GitHub](https://github.com/Percona-QA/pstress/blob/master/README.md)

so:

1. installed **cmake** version 3.16.3 and **g++** (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
2. then created directory /etc/pstress.
3. run cmake with the required options - `cmake . -DPERCONACLUSTER=ON -DBASEDIR=/data` but I don’t have CMakeLists.txt in this directory.

```auto
>locate CMakeLists.txt
/usr/share/cmake-3.16/Modules/FortranCInterface/CMakeLists.txt
/usr/share/cmake-3.16/Modules/FortranCInterface/Verify/CMakeLists.txt
/usr/share/cmake-3.16/Modules/IntelVSImplicitPath/CMakeLists.txt

```

how should I proceed ?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [December 14, 2023, 2:15pm UTC](https://forums.percona.com/t/pstress-build-problem/27139/2 "2023-12-14T14:15:30Z")

</div>

Hello @Ani_Ghoghoberidze,  
Did you actually download the pstress code to you environment? I don’t see those steps above. Please provide your entire process, all commands and output.

---

<div class="post-metadata">

**Author:** ![Ani\_Ghoghoberidze](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ani_ghoghoberidze/32/7681_2.png) [@Ani\_Ghoghoberidze](https://forums.percona.com/u/Ani_Ghoghoberidze)\
**Post date:** [December 14, 2023, 7:00pm UTC](https://forums.percona.com/t/pstress-build-problem/27139/3 "2023-12-14T19:00:06Z")

</div>

@matthewb that’s why I created a topic here - I couldn’t find an exact commands for installing pstress. All the steps what I’ve done, are here - installed **cmake** and **g++** successfully , as was written in github readme …  
tried with `sudo apt install pstress` but as it seems, it’s not a correct way

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [December 14, 2023, 7:53pm UTC](https://forums.percona.com/t/pstress-build-problem/27139/4 "2023-12-14T19:53:27Z")

</div>

Hello @Ani_Ghoghoberidze,  
there is a bit of common understanding that in order to compile software you must actually download the source code. It does not appear you did that. If you are not familiar with git/github, I would suggest doing some tutorials on how to pull code from github and compile basic programs.  
pstress is an internal tool at Percona. If you want something that is read out-of-box, a simple installer, I would recommend using sysbench. You should be able to apt install sysbench. There are many blogs/posts about getting started with sysbench.
