Skip to content

Commit 2c740d1

Browse files
committed
Write Linux problem
1 parent 05246f0 commit 2c740d1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,24 @@ If you are using Intel CPU, add this dependency.
211211
|1.x.x|1.18.2-1.5.3|2020.1-1.5.3|3.7.7|
212212
|1.x.x|1.19.1-1.5.4|2020.3-1.5.4|3.7.9|
213213
|1.x.x|1.20.1-1.5.5|2021.1-1.5.5|3.9.2|
214+
215+
## Linux problem
216+
217+
Because javacpp-presets/cpython has not been built correctly on Linux, you have to rebuild it.
218+
You can do it by this if you are using Ubuntu 20.04.
219+
See also https://devguide.python.org/setup/#linux for other Linux distributions.
220+
Change ```1.5.5``` to your JavaCPP version.
221+
javacpp-presets/cpython forgets to do ```apt-get build-dep python3.8```.
222+
223+
```bash
224+
echo 'deb-src http://archive.ubuntu.com/ubuntu/ focal main' | sudo tee -a /etc/apt/sources.list
225+
sudo apt update
226+
sudo apt-get build-dep python3.8
227+
sudo apt install maven openjdk-11-jdk
228+
229+
git clone https://github.com/bytedeco/javacpp-presets.git
230+
cd javacpp-presets
231+
git checkout -b 1.5.5 refs/tags/1.5.5
232+
cd cpython
233+
mvn install
234+
```

0 commit comments

Comments
 (0)