Comments (3)
Here is an example devbox.json that I got to work on https://devbox.sh:
https://github.com/Lagoja/node-canvas/blob/main/devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetpack-io/devbox/0.10.1/.schema/devbox.schema.json",
"packages": {
"libuuid": {
"version": "latest",
"outputs": ["lib"]
},
"nodejs": "20.11",
"pkg-config": "latest",
"pixman": "latest",
"cairo": {
"version": "latest",
"outputs": ["dev"]
},
"freetype": {
"version": "latest"
},
"glib": {
"version": "latest",
"outputs": ["out"]
}
},
"env": {"LD_LIBRARY_PATH": "$DEVBOX_PACKAGES_DIR/lib"},
"shell": {
"init_hook": ["echo 'Welcome to devbox!' > /dev/null"],
"scripts": {
"test": ["echo \"Error: no test specified\" && exit 1"]
}
}
}
from devbox.
I'm having trouble reproducing this exactly, but here are a few suggestions that I think will help:
-
It looks like the libuuid.so1 file is bundled with the
dev
output of the libuuid package. You can add this output by runningdevbox add libuuid --outputs=out,dev
-
Devbox automatically symlinks any libraries, binaries, and files that it installs to
$DEVBOX_PACKAGES_DIR
. If you need your node packages to access those libraries, you can try addingexport LD_LIBRARY_PATH=$DEVBOX_PACKAGES_DIR/lib:$LD_LIBRARY_PATH
to your devbox.json'sinit_hook
. This will ensure that the libraries Devbox installs are in your LD_LIBRARY_PATH while still leaving the rest of LD_LIBRARY_PATH intact
from devbox.
this solved my problem trying to load zlib when importing numpy.
might it make sense to add LD_LIBRARY_PATH by default if devbox.json doesn't specify one?
from devbox.
Related Issues (20)
- Unable to find libclang HOT 1
- Cannot find flake in the flake registries when instaling python311Packages.torch-bin
- Add name/description to devbox init
- `refresh` alias overwrites init_hook
- Add ability to pass arbitrary flags to process-compose
- Use devbox project to manage utilities like process compose.
- Running a script inside devbox shell throws `file not found` error
- Configurable plugins
- Provide `devbox (global) outdated`
- Request to add hyperdb-python
- CLI Login Prompt has weird interactions with VSCode extension
- [Package Issue Report]: protobufjs-cli
- Start of container with generated Dockerfile is super slow
- Error installing [email protected] HOT 1
- VS Code terminal somehow start devbox shell HOT 1
- devbox shell cannot start (error in the nix version detection)
- devbox shell cannot find the userid and groups and group names on a Linux VDI that uses LDAP for IAM HOT 7
- kicad5, kicad6, and kicad7
- Jetbrains IDE, rubymine
- Cannot set PATH env var in both a plugin and devbox.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devbox.