![]() ![]() The above Dockerfile does build successfully $(which ruby ) -enable-frozen-string-literal -disable=gems,did_you_mean,rubyopt $(brew -prefix )/Library/Homebrew/utils/ruby_check_version_script.rb 2.6.10 & echo OK OK brew update Error: No Homebrew ruby 2.6.10_1 available for aarch64 processors! Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.10! If there's no Homebrew Portable Ruby available for your processor: - install Ruby 2.6.10 with your system package manager (or rbenv/ruby-build) - make it first in your PATH - try again ruby -version ruby 2.6.10p210 ( revision 67958) rbenv versions * 2.6.10 (set by /home/friend/.rbenv/version) which ruby /home/friend/.rbenv/shims/ruby echo $PATH /home/friend/.linuxbrew/bin:/home/friend/.linuxbrew/sbin:/home/friend/.rbenv/shims:/home/friend/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/friend/.local/bin:/home/friend/.rbenv/bin:/home/friend/.linuxbrew/binĪny pointers, suggestions, or other help anyone can offer? Happy to test anything you think could help. # linux homebrew on arm is unsupported, see: # so we have to install ruby ourselves because of these err: # Error: No Homebrew ruby 2.6.10_1 available for aarch64 processors! # Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.10! # see: RUN git clone $HOME/.linuxbrew & \Įcho 'eval "$(brew shellenv)"' > $/.bashrc & \ ![]() # to use ruby from path, see: ENV HOMEBREW_DEVELOPER=1 # this is so that brew doesn't prompt for sudo access ENV NONINTERACTIVE=1 # create default user RUN useradd -m friend & \Įcho 'friend ALL=(ALL) NOPASSWD:ALL' > /etc/sudoersĮNV HOME= "/home/friend" # make sure we can install executables locally ENV PATH= "$PATH:$HOME/.local/bin:$HOME/.rbenv/bin:$HOME/.linuxbrew/bin" # ref: # installs rbenv, ruby-build, followed by openssl 1.1 and then finally ruby 2.6.10 # takes like 25-45 minutes to compile stuff unless you give docker like 8 cores and 16G of mem in resources RUN curl -fsSL | bash & \Įcho 'eval "$(rbenv init -)"' > ~/.bashrc & \ # install pre-req apt packages for rbenv, python, and homebrew # python3 defaults to python 3.11 in Debian Bookworm RUN apt-get update & \Īpt list -upgradeable | grep security | cut -f1 -d '/' | xargs apt-get install -no-install-recommends -y & \ # this makes debian not prompt for stuff ENV DEBIAN_FRONTEND=NONINTERACTIVE # onbaordme Debian Bookworm image - for arm64 □ FROM debian:bookworm-slim Kernel: Linux 5.15.0-1014-raspi aarch64 GNU/Linuxīeta Was this translation helpful? Give feedback. HOMEBREW_TEMP: /home/linuxbrew/.linuxbrew/tmp HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |