You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installing.md
+42-20Lines changed: 42 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,16 +33,15 @@ The Python SDK can be installed directly from
33
33
34
34
## Programming Language Specific Dependencies
35
35
36
-
37
36
`CLDK` supports program analysis for multiple languages and requires additional dependencies to support specific languages. The following table lists the additional dependencies required for each language:
38
37
39
38
=== "Python Analysis"
40
39
41
40
For Python analysis as well as to use the CLDK Python SDK, you will need to install the Python programming language with version 3.11 or later. We recommend using a package manager like [pyenv](https://github.com/pyenv/pyenv) to install and manage Python dependencies.
42
41
43
42
=== "Java Analysis"
44
-
45
-
For Java analysis, CLDK relies on a companion project called [`codeanalyzer`](https://github.com/ibm/codenet-minerva-code-analyzer). `codeanalyzer` is a java project and you will therefore need to install the Java Development Kit (JDK) with java version 11 or later.
43
+
44
+
For Java analysis, CLDK relies on a companion project called [`codeanalyzer`](https://github.com/ibm/codenet-minerva-code-analyzer). `codeanalyzer` is a java project and you will therefore need to install the Java Development Kit (JDK) with java version 11 or later.
46
45
47
46
You can use a package manager like [SDKMAN](https://sdkman.io/) to install the JDK. First, install SDKMAN by running the following command:
48
47
@@ -83,7 +82,7 @@ The Python SDK can be installed directly from
83
82
- Set Java 11 as the current (or default) Java version:
84
83
85
84
```bash
86
-
sdk use java 11.0.25-sem
85
+
sdk use java 11.0.25-sem
87
86
# If want to default to java 11 for all sessions, use the following command instead:
88
87
# sdk default java 11.0.25-sem
89
88
```
@@ -95,7 +94,7 @@ The Python SDK can be installed directly from
95
94
```
96
95
97
96
This should output the version of the installed Java.
98
-
97
+
99
98
```bash
100
99
openjdk 11.0.25 2024-10-15
101
100
IBM Semeru Runtime Open Edition 11.0.25.0 (build 11.0.25+9)
@@ -131,7 +130,6 @@ The Python SDK can be installed directly from
131
130
```
132
131
This should output the version of the installed Maven.
133
132
134
-
135
133
=== "C/C++ Analysis"
136
134
137
135
CLDK uses LLVM and Clang Python bindings to analyze C/C++ code. The project requires specific versions:
@@ -147,14 +145,14 @@ The Python SDK can be installed directly from
147
145
```shell
148
146
brew install llvm@18
149
147
```
150
-
148
+
151
149
- Add LLVM to your PATH (add this to your ~/.zshrc or ~/.bash_profile)
Rustup is the recommended tool for installing Rust and managing its toolchains. It simplifies the process of keeping Rust up to date and allows switching between different Rust versions and toolchains seamlessly.
230
+
231
+
- **Install Rustup**
232
+
Run the following command in your terminal:
233
+
```shell
234
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
235
+
```
236
+
Follow the on-screen instructions to complete the installation.
237
+
238
+
- **Configure Your Environment**
239
+
Add Rust to your PATH by appending this line to your shell init script:
240
+
```shell
241
+
source $HOME/.cargo/env
242
+
```
243
+
244
+
- **Verify Installation**
245
+
Confirm that Rust is installed correctly by checking the version:
246
+
```shell
247
+
rustc --version
248
+
```
249
+
Expected output (version may vary):
250
+
```shell
251
+
rustc 1.70.0 (90c541806 2023-05-31)
252
+
```
229
253
230
254
## Additional Development Tools
231
255
@@ -240,7 +264,7 @@ Some operating systems may require additional development tools:
240
264
```
241
265
242
266
- Additionally, you may need to install the following packages using Homebrew:
`CLDK` is compatible with Python versions 3.11 and later. The following table lists the supported Python versions and the corresponding `CLDK` versions:
273
295
274
-
| :fontawesome-brands-python: Python Version | :cldk-logo-white: Compatible `cldk` Versions |
0 commit comments