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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
pipneeded to be installed.buildtaskyarn- 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.jsonto add wildcards to export dirs:client.jsalso needed to be referenced directly.node_modules/@finos/perspective-viewer/package.jsonbuild_pythontasksudo apt install python3-pip- I did not have pip in my PATHpip install numpy- required by build/docsbuildexport 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:webpackyarn startBeta Was this translation helpful? Give feedback.
All reactions