# Fail when building percona-server 8.0.28 from source

**URL:** <https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874>\
**Category:** Uncategorized\
**Created:** [March 1, 2024, 12:31pm UTC](https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874 "2024-03-01T12:31:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Istria](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/istria/32/13972_2.png) [@Istria](https://forums.percona.com/u/Istria)\
**Post date:** [March 1, 2024, 12:31pm UTC](https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874/1 "2024-03-01T12:31:42Z")

</div>

Hi All,

I was trying to build percona-server from source ([GitHub - percona/percona-server: Percona Server](https://github.com/percona/percona-server)), following the guideline in [Compile Percona Server for MySQL 8.0 from source - Percona Server for MySQL](https://docs.percona.com/percona-server/8.0/compile-percona-server.html#install-percona-server-for-mysql-from-the-git-source-tree).

I ran the following steps:

$ git clone [GitHub - percona/percona-server: Percona Server](https://github.com/percona/percona-server.git)  
$ cd percona-server  
$ git checkout release-8.0.28-20  
$ git submodule update --init  
$ cmake . -DCMAKE\_BUILD\_TYPE=RelWithDebInfo -DBUILD\_CONFIG=mysql\_release -DFEATURE\_SET=community -DFORCE\_INSOURCE\_BUILD=1 -DWITH\_BOOST=…/ -DWITH\_AUTHENTICATION\_LDAP=OFF  
$ make -j32  
$ sudo make install

After the above steps, the process can finish, though with some warnings. However, when I type ‘service mysqld status’, the console shows:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/0/0849d0a1eb749f49b07864ea7a4cba2797753067.png)

First of all, I am wondering if the steps and cmake parameters are fine (specifically, I disable LDAP due to compilation errors). I am also wondering what I should do next to fix the problems (no mysqld.service) and run MySQL using MyRocks engine properly.

Here are some errors that I think are a bit strange.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/9/9f6e69b1816fd167150ef74b7efa7604cda00e4f.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/d/d4f2531b5299c9149dea35ae38b14c667af218e4.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/a/a7526bc2e5221dbd8ee98629f79c10281806db9e.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/7/75cd521be85aed0357c7fe581674b57e5766a67a.png)

I am new in percona and really appreciate if there could be any help, thanks in advance! 🙂

---

<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:** [March 1, 2024, 4:25pm UTC](https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874/2 "2024-03-01T16:25:33Z")

</div>

Hello @Istria,  
‘make install’ does not install the systemd unit file. You need to install that yourself. Look inside scripts/ folder.

Why are you compiling source? We offer pre-compiled packages for major OS, and also supply pre-compiled generic linux binaries.

---

<div class="post-metadata">

**Author:** ![Istria](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/istria/32/13972_2.png) [@Istria](https://forums.percona.com/u/Istria)\
**Post date:** [March 2, 2024, 2:52am UTC](https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874/3 "2024-03-02T02:52:36Z")

</div>

Hi @matthewb!

Thanks for your reply. May I introduce my overall goal here? I would like to replace the RocksDB engine in percona MyRocks with my own modified RocksDB. So I compiled from the source.

Could you suggest me the better way to achieve my goal? And how to test the performance of percona then (e.g., sysbench or linkbench)? 🙂

---

<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:** [March 3, 2024, 3:35pm UTC](https://forums.percona.com/t/fail-when-building-percona-server-8-0-28-from-source/28874/4 "2024-03-03T15:35:43Z")

</div>

Since MyRocks is a plugin to MySQL, you should only need to compile the MyRocks plugin and then you can load it into an existing MySQL binary.
