rbenv
rbenv-installer
Our great sponsors
rbenv | rbenv-installer | |
---|---|---|
68 | 8 | |
15,774 | 339 | |
0.8% | 0.9% | |
5.6 | 1.7 | |
about 1 month ago | 7 months ago | |
Shell | Shell | |
MIT License | Creative Commons Zero v1.0 Universal |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rbenv
-
Ask HN: Is anybody getting value from AI Agents? How so?
When I was technical blogging on how to learn from open-source code [1], I used it quite frequently to get unstuck and/or to figure out how to tease apart a large question into multiple smaller functions. For example, I had no idea how to break up this long `sed` command [2] into its constituent parts, so I plugged it into ChatGPT and asked it to break down the code for me. I then Googled the different parts to confirm that ChatGPT wasn't leading me astray.
If I had asked StackOverflow the same question, it would have been quickly closed as being not broadly applicable enough (since this `sed` command is quite specific to its use case). After ChatGPT broke the code apart for me, I was able to ask StackOverflow a series of more discrete, more broadly-applicable questions and get a human answer.
TL;DR- I quite like ChatGPT as a search engine when "you don't know what you don't know", and getting unblocked means being pointed in the right direction.
1. https://www.richie.codes/shell
2. https://github.com/rbenv/rbenv/blob/e8b7a27ee67a5751b899215b...
-
Test Driving a Rails API - Part One
Let’s get started. I prefer to manage my Ruby installations on my development machine with chruby paired with ruby-install. Another outstanding set of tools is rbenv with ruby-build. I highly recommend installing Ruby with one of those two sets of tools. Follow the instructions on their project’s READMEs. For this article, I’ll be running Ruby (MRI) v3.3.0.
-
How To Set Up Your Coding Environment
By setting up your environment in isolation, you can prevent yourself from a lot of issues when experimenting with code. It makes your code behave more predictable due to the defined state of the runtime environment you are working with. This article should provide you with enough information to get started, but obviously, there is a lot more power embedded in NVM, Virtual Environment and RBEnv. So make sure to check their documentation.
-
State of Ruby : What version manager to use
There is this good resource that also talk about different ruby version manager from the Rbenv repository. With some links to benchmarks of ASDF and Rbenv.
-
Ruby version
rbenv (my personal favorite)
-
Problems starting msfdb init
One suggestion would be to setup your install based on a development environment using git and a Ruby version manager like rvm or rbenv to allows you to setup a user controlled gemset and execution path.
-
What's the number one reason that you use a Mac over a PC?
rbenv for Ruby
-
Ruby on Rails en Windows con WSL2
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
-
Issues with Unicode in pry running in Debian-11
On MacOS, I haven't had a problem with character encodings in the terminal in ruby for a while, but used to. When I used to, it had to do with how ruby had been installed, in particular that it needed to be compiled linking against an appropriate readline library. Are you trying to use the ruby that came with debian? You might have more luck installing ruby yourself, and using a ruby version manager. rbenv might be the simplest for you.
-
Is there any reason to use Ruby 2.7 over Ruby 3.x?
For my local machine, I use RVM (head). Other options are rbenv and asdf.
rbenv-installer
-
Step-by-Step Guide to Building LLM Applications with Ruby (Using Langchain and Qdrant)
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
-
Rails 7: production deploy from scratch (Ubuntu 22.04 edition)
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv $ echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc $ exec $SHELL $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build $ git clone https://github.com/rbenv/rbenv-vars.git "$(rbenv root)"/plugins/rbenv-vars $ rbenv install 3.2.0 $ rbenv global 3.2.0 # Test complete install with rbenv-doctor $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash $ ruby -v # Shows ruby version number if correctly installed $ gem install bundler # You might be prompted to update some gems, see command below $ gem update --system 3.4.6 # Check if this is recommended after bundler installation $ bundle -v # Shows bundler version number if correctly installed
-
How To Set up a Ruby on Rails 7 Development Environment on Ubuntu 22.04 LTS
# Install dependencies required to install Ruby sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev # Install rbenv via GitHub curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash # Add ~/.rbenv/bin to $PATH echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc # Load rbenv automatically echo 'eval "$(rbenv init -)"' >> ~/.bashrc # Apply changes to current Shell sessions source ~/.bashrc
-
Rails 7 new production install: from zero to deploy (Ubuntu 20.04 edition)
$ sudo apt update; sudo apt upgrade -y $ sudo apt install rbenv $ rbenv init # Follow instructions: append 'eval "$(rbenv init -)"' to ~/.bashrc $ source ~/.bashrc # or disconnect and reconnect $ mkdir -p "$(rbenv root)"/plugins $ sudo apt install git $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build $ git clone https://github.com/rbenv/rbenv-vars.git "$(rbenv root)"/plugins/rbenv-vars $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash $ rbenv install 3.0.3
-
rbenv can't build ruby 2.7.4
I use rbenv-installer, it automatically installs ruby-build.
-
The Guide to Hacking Tetcore Nodes
sudo apt-get update sudo apt-get -y install git pkg-config protobuf-compiler libprotobuf-dev libssl-dev wget build-essential sudo apt install -y cmake clang libclang-dev curl libz-dev screen net-tools curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash curl -sSL https://git.io/g-install | sh -s sudo apt install curl autoconf bison libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc source ~/.bashrc rbenv install 2.7.2 rbenv global 2.7.2 gem install bundler sudo apt install nginx sudo apt install mysql-server sudo mysql_secure_installation sudo apt install php-fpm php-mysql sudo apt install php7.4-bcmath php7.4-bz2 php7.4-curl php7.4-dev php7.4-gd php7.4-imap php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-opcache php7.4-tidy php7.4-xml php7.4-snmp php7.4-readline php7.4-xsl php7.4-zip
- 49 Days of Ruby: Day 2 - Installing Ruby
-
Set Up Rbenv Revisited
Run rbenv-doctor script to verify installation
What are some alternatives?
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Phusion Passenger - A fast and robust web server and application server for Ruby, Python and Node.js
RVM - Ruby enVironment Manager (RVM)
rbenv-default-gems - Automatically install gems every time you install a new version of Ruby
chruby - Changes the current Ruby
HomeBrew - 🍺 The missing package manager for macOS (or Linux)
nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
ruby-install - Installs Ruby, JRuby, Rubinius, TruffleRuby or MRuby
Capistrano rbenv - Idiomatic rbenv support for Capistrano 3.x
ruby-build - A tool to download, compile, and install Ruby on Unix-like systems.
tetcore-node-template - A fresh FABRIC-based Tetcore node, ready for hacking 🚀