# How to configure a cLion project for yugabytedb

**URL:** https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714
**Category:** General
**Created:** [August 8, 2022, 9:55pm UTC](https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714 "2022-08-08T21:55:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gordon](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gordon](https://forum.yugabyte.com/u/gordon)
#### Post date: [August 8, 2022, 9:55pm UTC](https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714/1 "2022-08-08T21:55:20Z")

</div>

I have finished ./yb\_build.sh release. Then I open clion, and config the toolchain’s C Compiler to be “/opt/yb-build/llvm/yb-llvm-v13.0.1-yb-1-1651813550-191e3a05-centos7-x86\_64/bin/clang” and the C++ compiler to be “/opt/yb-build/llvm/yb-llvm-v13.0.1-yb-1-1651813550-191e3a05-centos7-x86\_64/bin/clang++”, then I open the project by select the CMakeLists.txt.  
It show me that the GCC version is too old. version\_str=‘4.8.5’. It required at least 7.0.0.  
Maybe that I need to install GCC7 or GCC10 in my centos 7?

---

<div class="post-metadata">

### Author: ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)
#### Post date: [August 9, 2022, 7:34am UTC](https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714/2 "2022-08-09T07:34:46Z")

</div>

Hi @gordon

Have you seen this [Configure a CLion project | YugabyteDB Docs](https://docs.yugabyte.com/preview/contribute/core-database/clion-setup/) ?

---

<div class="post-metadata">

### Author: ![gordon](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gordon](https://forum.yugabyte.com/u/gordon)
#### Post date: [August 10, 2022, 10:28pm UTC](https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714/3 "2022-08-10T22:28:09Z")

</div>

Thanks for reply. I’ve read that page.  
My os is centos 7, and I config the clion at gcc8 gcc9 and gcc10. All of then are report some error. The gcc8 and gcc9 can’t compile icu, it report that ‘[0;36m[icu4c (uninstrumented)] e[0mconfigure: error: C++ compiler /usr/lib64/ccache/g++ does not work or no compiler found’.  
and the gcc10 reports that ‘Bad path: libc.so.6 =\> /usr/local/lib/…/lib64/libc.so.6 (0x00007fa9573d5000)  
Bad path: libgcc\_s.so.1 =\> /usr/local/lib/…/lib64/libgcc\_s.so.1 (0x00007fa9571bd000)’.  
Who can tell me that the right gcc version? And how to select llvm for clion at centos 7?

---

<div class="post-metadata">

### Author: ![mbautin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/mbautin/32/15_2.png) [@mbautin](https://forum.yugabyte.com/u/mbautin)
#### Post date: [August 17, 2022, 4:04am UTC](https://forum.yugabyte.com/t/how-to-configure-a-clion-project-for-yugabytedb/1714/4 "2022-08-17T04:04:19Z")

</div>

Hi @gordon, we currently (as of commit bc7af78063aef0cc39ed18e482d1244a43e6e226) use Clang 13 for debug/release x86\_64 Linux builds in the master branch, and Clang 12 for ASAN/TSAN on x86\_64, as well as for all builds on aarch64 Linux. We use the default version of Clang on macOS (currently I believe it is 13 on Monterey). Does `./yb_build.sh` or `./yb_build.sh release` work for you on the command line? Could you also try specifying `-DCMAKE_C_COMPILER=/path/to/yugabyte-db/build-support/compiler-wrappers/cc -DCMAKE_CXX_COMPILER=/path/to/yugabyte-db/build-support/compiler-wrappers/c++` in the `CMake options` box in the CLion dialog box shown [https://docs.yugabyte.com/images/contribute/clion-cmake-options.png](https://docs.yugabyte.com/images/contribute/clion-cmake-options.png)? It is possible that our instructions may need to be updated.

Also, during development, I would recommend doing a `debug` build on the command line, not a `release` build.
