I want to contribute to deno without disturbing my libs in linux . Is there a way?
Noob alert
I have been trying to contribute to deno . So i followed these instructions https://deno.land/manual@v1.36.4/references/contributing/building_from_source
and dowloaded the git repo
Now , i don't wanna install dependency globally on my system . So i ended up using dev containers but when i try to build it , it gives the following error:
TLDR : I tried dev container but it doesn't have cmake and other libs , how do i work with containers while not disturbing my system defaults . I am using fedora 38
Deno
Building from Source | Manual | Deno
Below are instructions on how to build Deno from source. If you just want to use
Deno you can download a prebuilt executable (more information in the
[
Getting Started
](../../getting_started/install7 Replies
It seems like you're trying to build Deno from source in a development container, but you're encountering an error because
cmake
and possibly other dependencies are not installed in the container.
The error message suggests that cmake
is not installed, which is a required dependency for building Deno from source.
To resolve this issue, you need to install the necessary dependencies inside your development container. According to the documentation, the required dependencies for Linux are clang-16
, lld-16
, cmake
, and libglib2.0-dev
.
You can install these dependencies in your container by running the following command:
Please note that you might need to adjust the command based on the Linux distribution used in your container. The command above is for Debian-based distributions. For Fedora, you would use the dnf
package manager instead of apt
.
After installing the dependencies, you should be able to build Deno from source in your container without affecting your host system's libraries.
If you continue to encounter issues, please let me know! 🦕E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Apt needs to be run as root (with
sudo
in front of the command) if that's the problemdo you have a repo/code you're using for the container?
Sadly building/developing in a container isn't the easiest thing (in general not just deno)
I'd highly recommend getting familiar with the process, like being able to start an Ubuntu container, install cmake, curl, gcc and other basics in the container, and once you're comfortable with that come back here and contribute.
It's unfortunate, and people are working on making it easier, but currently that's the kind of knowledge/experience required to do it.
okk so i got it working now
problem was the apt repos didn't have these packages
so i had to add those repolist of these packages to the container and install them
I believe we just had a PR to update the devcontainer with the new deps
That's nice , one less thing to figure out 😂