@@ -15,7 +15,7 @@ be installed from the official repository of the given Linux distribution.
1515 is required. (Alternatively, you can compile with Clang.)
1616- ** ` gcc-X ` , ` gcc-X-plugin-dev ` ** : For building ODB.
1717- ** ` libboost-all-dev ` ** : Boost can be used during the development.
18- - ** ` llvm-10 -dev ` ** , ** ` clang-10 ` ** , ** ` libclang-10 -dev ` ** : C++ parser uses
18+ - ** ` llvm-11 -dev ` ** , ** ` clang-11 ` ** , ** ` libclang-11 -dev ` ** : C++ parser uses
1919 LLVM/Clang for parsing the source code.
2020- ** ` odb ` ** , ** ` libodb-dev ` ** : For persistence ODB can be used which is an
2121 Object Relation Mapping (ORM) system.
@@ -59,12 +59,22 @@ sudo apt install git cmake make g++ gcc-7-plugin-dev libboost-all-dev \
5959
6060``` bash
6161sudo apt install git cmake make g++ libboost-all-dev \
62- llvm-10 -dev clang-10 libclang-10 -dev \
62+ llvm-11 -dev clang-11 libclang-11 -dev \
6363 odb libodb-dev thrift-compiler libthrift-dev \
6464 default-jdk libssl-dev libgraphviz-dev libmagic-dev libgit2-dev ctags doxygen \
6565 libldap2-dev libgtest-dev npm
6666```
6767
68+ #### Ubuntu 22.04 ("Jammy Jellyfish") LTS
69+
70+ ``` bash
71+ sudo apt install git curl wget cmake make libboost-all-dev \
72+ g++ gcc-11-plugin-dev \
73+ llvm-11-dev clang-11 libclang-11-dev \
74+ default-jdk libssl-dev libgraphviz-dev libmagic-dev libgit2-dev exuberant-ctags doxygen \
75+ libldap2-dev libgtest-dev
76+ ```
77+
6878#### Database engine support
6979
7080Depending on the desired database engines to be supported, the following
@@ -94,6 +104,15 @@ sudo apt install libodb-sqlite-dev libsqlite3-dev
94104sudo apt install libodb-pgsql-dev postgresql-server-dev-< version>
95105```
96106
107+ ##### Ubuntu 22.04 ("Jammy Jellyfish") LTS
108+
109+ ``` bash
110+ # For SQLite database systems:
111+ sudo apt install libsqlite3-dev
112+
113+ # For PostgreSQL database systems:
114+ sudo apt install postgresql-server-dev-14
115+ ```
97116
98117## Known issues
99118Some third-party tools are present in the distribution's package manager in a
@@ -106,7 +125,7 @@ by other processes which could, in extreme cases, make the system very hard or
106125impossible to recover. ** Please do NOT add a ` sudo ` in front of any ` make ` or
107126other commands below, unless * explicitly* specified!**
108127
109- ### ODB (for Ubuntu 18.04)
128+ ### ODB (for Ubuntu 18.04, Ubuntu 22.04 )
110129ODB is an Object Relational Mapping tool, that is required by CodeCompass.
111130For Ubuntu 18.04, the official release of ODB conflicts with the official
112131compiler (GNU G++ 7) of the distribution. A newer version of ODB must be
@@ -153,7 +172,7 @@ time (depending on the machine one is using).
153172> ** Note:** now you may delete the * Build2* toolchain installed in the
154173> ` <build2_install_dir> ` folder, if you do not need any longer.
155174
156- ### Thrift (for Ubuntu 18.04)
175+ ### Thrift (for Ubuntu 18.04, Ubuntu 22.04 )
157176CodeCompass needs [ Thrift] ( https://thrift.apache.org/ ) which provides Remote
158177Procedure Call (RPC) between the server and the client. A suitable version of
159178Thrift is, unfortunately, not part of the official Ubuntu repositories for
@@ -215,7 +234,7 @@ seen by CMake. Please set this environment before executing the build.
215234``` bash
216235export GTEST_ROOT=< gtest_install_dir>
217236
218- # If using Ubuntu 18.04:
237+ # If using Ubuntu 18.04 or Ubuntu 22.04 :
219238export CMAKE_PREFIX_PATH=< thrift_install_dir> :$CMAKE_PREFIX_PATH
220239export CMAKE_PREFIX_PATH=< odb_install_directory> :$CMAKE_PREFIX_PATH
221240
@@ -239,8 +258,8 @@ cmake .. \
239258 -DCMAKE_INSTALL_PREFIX=< CodeCompass_install_dir> \
240259 -DDATABASE=< database_type> \
241260 -DCMAKE_BUILD_TYPE=< build_type> \
242- -DLLVM_DIR=/usr/lib/llvm-10 /cmake \
243- -DClang_DIR=/usr/lib/cmake/clang-10
261+ -DLLVM_DIR=/usr/lib/llvm-11 /cmake \
262+ -DClang_DIR=/usr/lib/cmake/clang-11
244263
245264# To specify linker for building CodeCompass use
246265# -DCODECOMPASS_LINKER=<path_to_linker>
0 commit comments