brew install planck fails on Ubuntu 20 WSL2 on Windows 10
seancorfield opened this issue · comments
I successfully installed Planck on WSL1 (I think I used brew
there as well). I just tried to install it on a fresh laptop running WSL2 and got this failure:
==> Installing planck
==> ./script/build-sandbox
Last 15 lines from /home/seanc/.cache/Homebrew/Logs/planck/01.build-sandbox:
<long classpath line here omitted>
+ clojure -Sdeps '{:mvn/local-repo "sandbox-m2"}}' script/build.clj
Picked up _JAVA_OPTIONS: -Duser.home=/home/seanc/.cache/Homebrew/java_cache
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000a7300000, 272629760, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 272629760 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/planck-20200911-1677-eyb5go/planck-2.25.0/planck-cljs/hs_err_pid3093.log
+ checkCmdSuccess
+ CMD_RESULT=1
+ '[' 1 '!=' 0 ']'
+ echo 'Build Failed.'
Build Failed.
+ exit 1
READ THIS: https://docs.brew.sh/Troubleshooting
Luckily the Ubuntu / apt instructions worked fine so I am up and running.
I decided to have another go at this, given that I've updated my WSL2 environment quite a bit since September. It still fails, but differently. Here's the last section of the brew install
log:
### Building 1st stage Planck binary
+ cd planck-c
+ mkdir -p build
+ cd build
+ '[' '!' -e Makefile ']'
+ cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.1/share/cmake/Modules/FindPkgConfig.cmake:556 (message):
A required package was not found
Call Stack (most recent call first):
/home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.1/share/cmake/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal)
CMakeLists.txt:100 (pkg_check_modules)
+ checkCmdSuccess
+ CMD_RESULT=1
+ '[' 1 '!=' 0 ']'
+ echo 'Build Failed.'
Build Failed.
+ exit 1
Closing due to lack of feedback/interest.