Compilation Process [WSL] #1834
brianblakely
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wanted to share/document steps that I took to successfully build Perspective. This is on WSL running Ubuntu 20.04 LTS, the latest version at time of writing. It's a relatively untouched install, so some basics like
pip
needed to be installed.build
taskyarn
- install bundled toolchainsudo apt-get install pkg-config
- required during compilationsudo apt-get install libssl-dev
- required during compilationsudo apt-get -y install cmake
- install CMakesudo apt-get install libboost-all-dev
- install Boostsudo cp -r /usr/include/boost /usr/local/include/boost
- move Boost to a place the compiler expects itsudo apt-get install flatbuffers-compiler
- install flatbufferssudo ln -s /usr/bin/flatc /usr/local/bin/flatc
- move flatc to a predictable pathcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- install Rustexec bash
- reload environmentrustup toolchain install nightly
- used during compilationrustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- used during compilationcurl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- install wasm-packnode_modules/@finos/perspective/package.json
to add wildcards to export dirs:client.js
also needed to be referenced directly.node_modules/@finos/perspective-viewer/package.json
build_python
tasksudo apt install python3-pip
- I did not have pip in my PATHpip install numpy
- required by build/docs
buildexport NODE_OPTIONS=--openssl-legacy-provider
- I am running node v18; I believe this is necessary for certain issues in Node v17+ at the momentyarn build:webpack
yarn start
Beta Was this translation helpful? Give feedback.
All reactions