installation of rails in ubuntu 18.04 at windows 11
$ asdf install ruby 3.0.0
To follow progress, use 'tail -f /tmp/ruby-build.20230709161531.2745.log' or pass --verbose
Downloading ruby-3.0.0.tar.gz...
Installing ruby-3.0.0...
BUILD FAILED (Ubuntu 18.04 using ruby-build 20230615)
Inspect or clean up the working tree at /tmp/ruby-build.20230709161531.2745.fUeQuZ
Results logged to /tmp/ruby-build.20230709161531.2745.log
Last 10 log lines:
installing bundled gem cache: /home/mammu/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/cache
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running apt-get install -y zlib1g-dev
to fetch missing dependencies.
$ apt-get install -y zlib1g-dev
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?