1,183
questions
0
votes
1
answer
55
views
Why can Ruby apparently not find the Capistrano current directory?
Several RoR web apps have been running on a server for years and been regularly updated with the latest versions of ruby, rails and mod_passenger. Now, suddenly one particular app (none of the other ...
0
votes
0
answers
54
views
Github Actions uses system ruby instead of rbenv version
This actions runs fastlane on a macstadium runner, rbenv is setup to use 2.7.x but github action keeps using 2.6.x
I have already tried to uninstall / reinstall rbenv.
Giving this error message :
...
-1
votes
1
answer
41
views
Configuring nginx and passenger with rbenv for a rails app
On my ubuntu server, I switched the ruby versioning strategy from using rvm to rbenv. When I restart the nginx server, I get this error:
Bundler was unable to find one of the gems defined in the ...
0
votes
0
answers
30
views
puma-dev server error 'Unable to start worker'
I am trying to get puma-dev server working locally, and im hitting an issue. If I tail these logs tail -fn 2000 ~/Library/Logs/puma-dev.log I can see this error once I hit the first webpage and try to ...
0
votes
1
answer
68
views
ExecJS::RuntimeError in Rails App when switched to rbenv
Recently switched from rvm to rbenv on macOS. Everything bundles ok, but when I boot up the app locally and then access the app in the web browser, it throws this error:
ExecJS::RuntimeError
...
1
vote
2
answers
287
views
rbenv: can't install ruby 2.1.0 after upgrading to MacOS Sonoma 14 from Big Sur
I have a legacy application that uses ruby 2.1.0 and
$ rbenv install 2.1.0
worked fine in BigSur.
However after updating to MacOS 14.4.1 Sonoma from Big Sur 11 I can't get it to work.
I've replaced ...
7
votes
4
answers
3k
views
Gem::Ext::BuildError: ERROR: Failed to build gem native extension unicode.c:1058:20: [-Wincompatible-function-pointer-types]
Some details about my environment:
Ruby version: ruby 3.2.0
RubyGems version: 3.5.6
rbenv version: 1.2.0
MacOS: Sonoma 14.1.2 / M2
I'm trying to run bundle install to install the gems for my project ...
1
vote
1
answer
301
views
WSL 2 Ubuntu cannot load such file -- zlib
I just got an old project. But when I run bundle install command from the guide, I got this error.
irwan@LAPTOP-3KM80MDK:~$ gem install bundler:1.9.0
ERROR: Loading command: install (LoadError)
...
-1
votes
1
answer
170
views
Root version of ruby not installing in terminal even though rbenv is updated
I'm trying to update my root version of ruby. It seems like the root directory isn't updating. Even with installing ruby through homebrew or with rbenv - ruby will update but running ruby -v continues ...
0
votes
0
answers
152
views
Pod installation not working due to node modules & podfile
i am trying to setup my environment on my new computer( mac-m3) and i am trying to start a mobile application, when i try to run pod install i face these errors. My project uses:
node 14.20.0,
and: 3....
-2
votes
1
answer
655
views
-bash: rbenv: command not found
Im trying to install jekyll through ruby rbnev and After putting open ~/.bash_profile into the terminal and inputting eval "$(rbenv init -bash)" into the text editor, which was the only ...
1
vote
1
answer
242
views
I'm use rbenv to install ruby but I 'm getting this error when using "GEM" -> ERROR: While executing gem ... (Errno::EACCES) Permission denied
I install ruby follow this steps https://github.com/rbenv/rbenv on my MacBook M1 Sonoma 14.2.1.
All went perfect until I need to use "gem install bundler".
terminal:
gem install bundler
...
2
votes
0
answers
64
views
Rbenv shim fallback to system package
I have two active projects on my local machine, running on different ruby versions. Both projects use wicked_pdf with wkhtmltopdf dependency, however project A is using gem wkhtmltopdf-binary and ...
0
votes
0
answers
601
views
Can't get the latest version of Ruby to work on my Mac, keeps using old version
I am unable to use the newest version of Ruby on my Mac, even though I have it installed.
$ rbenv versions
system
3.1.0
3.1.2
* 3.2.2 (set by /Users/angelina/.ruby-version)
Because of this I ...
1
vote
1
answer
1k
views
rbenv says installed version is not installed
I just installed ruby 3.0.4 using rbenv install 3.0.4, which worked, but rbenv still says:
$ rbenv versions
rbenv: version `3.0' is not installed (set by /home/dombek/code/.ruby-version)
system
3....
0
votes
0
answers
50
views
Suck on "checking if fork works with pthread..." when installing ruby 2.5.7 on linux by using rbenv
I am now follow the following tutorial (https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-22-04) to install ruby 2.5.7 by rbenv. When I user the ...
0
votes
1
answer
1k
views
Why is gem telling me the current ruby version is 2.5.0 when it's not?
Context: I'm trying to install jekyll on Ubuntu 18.04 LTS so that I can work on a GitHub Pages site without having to deploy my changes to production every time I want to view them.
Here's the ...
-1
votes
1
answer
449
views
OpenSSL error when installing JRuby with rbenv on MacOS
I am getting the following error when I run rbenv install jruby-9.4.2.0. The error says OpenSSL isn't available, but as far as I can tell, it is available in multiple places and forms (see "...
1
vote
1
answer
539
views
Problem installing openssl 2.2.1 gem in MacOS
I am working in a project where the openssl (2.2.1) gem is used and ruby 2.7.5 is used. I successfully installed Ruby 2.7.5 with rbenv (ruby-build helped install it by downloading openssl 1.1.1).
...
0
votes
0
answers
805
views
BUILD FAILED (macOS 12.6.8 using ruby-build 20230904) [rbenv install 3.1.2]
I have been trying to install ruby 3.1.2 using rbenv install on my MacBook Air (13-inch, 2017) with processor 2.2 GHz Dual-Core Intel Core i7. I know that it is getting long in the tooth because I'm ...
0
votes
0
answers
52
views
Error while installing any specific version of ruby through rvm in mac m1
I am facing an issue while installing any version of ruby through rvm in Mac m1. Globally, I have installed ruby version 3.0.0 but for a project, I needed version 3.0.2 but it gives me the following ...
1
vote
0
answers
716
views
Fastlane uses the wrong ruby version
Unable to use fastlane android codepush and resulting this error. Expected using ruby 2.7.4 because I already set ruby path installed with rbenv but fastlane use ruby system instead which version 2.6....
0
votes
1
answer
184
views
Rbenv BUILD FAILED (Raspbian 11 using ruby-build 20230717-7-gf170c16)
I am trying to install ruby 3.2.2 on a raspberry pi 4. I followed all the steps using the GitHub repository, git clone method but when I get to the rbenv install 3.2.2 I get what I assume to be an ARM ...
0
votes
1
answer
40
views
Not able to switch from Python to Ruby development envrionment in Ubuntu WSL
I'm having difficulties to switch from Python environment to Ruby environment. The terminal seems like not responding no matter how many time I keyed in rbenv global 3.1.2. It stuck at pyenv 3.10.6. I ...
0
votes
2
answers
400
views
Error Bundling Puma M2 Macbook Ruby on Rails app
I'm working on a Ruby on Rails application, but I get an error every time I try to run my server using the following command:
bundle exec puma -C ./config/puma.rb
the error logs:
106454000-10645c000 ...
0
votes
1
answer
16
views
Debugger statement inside `rubygems_plugin.rb` is not reached when running `bundle install`
While reading through RBENV's rubygems_plugin.rb file, I encountered the following line of code:
if defined?(Bundler::Installer) && Bundler::Installer.respond_to?(:install) && !Bundler:...
0
votes
2
answers
362
views
How to get mailcatcher to work with rbenv, bundler, and ruby 3.2.0?
I've completely removed rvm and installed 0.5.10 of mailcatcher. When I run mailcatcher I get the following error:
.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/activesupport-3.2.22.5/lib/...
0
votes
1
answer
1k
views
Unable to install Ruby 3.1.4 via rbenv on AlmaLinux/CentOS 7
I am trying to install Ruby 3.14 on an AlmaLinux distrubtion via rbenv. Seems the build and the compiler are not compatible.
Has anybody seen this issue before and possibly found a solution?
It is ...
0
votes
0
answers
58
views
failures when rails command send
I am trying to open an old Rails 5 app. I haven't code for years and it's hard to remember...
Also I have a new computer (mac 0S Ventura) and I had to reinstall hombrew, xcode, ruby etc...
The ruby ...
0
votes
1
answer
277
views
*87 connect() to unix:///home/ubuntu/app_name/shared/tmp/sockets/puma.sock failed (111: Connection refused) while connecting to upstream)
I am trying to deploy a rails 7 application on aws-lightsail unbuntu 20.04 instance using capistrano3 gem. After deployment, I see 502 bad gateway nginx page in browser. When I check puma_error.log, ...
-2
votes
1
answer
657
views
How to install ruby-build for rbenv on Ubuntu?
I installed rbenv. What is the easiest way to install ruby-build?
I've tried brew, but it displayed few errors.
1
vote
1
answer
740
views
Unable to change Ruby path from macOS package to Homebrew package (running macOS Monterey with Intel Core i7)
Summary of issue and current configuration
I have installed the latest versions of rbenv and ruby-build via Homebrew on macOS Monterey (currently running version 12.6.5 with Intel Core i7 chip), ...
2
votes
1
answer
793
views
Should I uninstall rbenv before installing asdf?
I wish to install asdf in order to provide for multiple language environments (ruby/python/postgres..) for macOS development. Previously I have used rbenv to install ruby, and use several ruby gems, ...
0
votes
1
answer
207
views
Debian 11, Mastodon server, Ruby instalation problem, user mastodon
In the many manuals described process of [Mastodon instalation] (https://docs.joinmastodon.org/admin/install/), there are wrote:
"rbenv must be installed for a single Linux user, therefore, first ...
0
votes
1
answer
195
views
puma-dev do not work with error message rbenv: puma: command not found
When try to open site get error message unexpected exit:
Check dev logs tail -f log/development.log:
rbenv: puma: command not found
The `puma' command exists in these Ruby versions:
2.4.0
While ...
1
vote
2
answers
1k
views
Ruby 3.0.6 for Mastodon 4.1.2: Ubuntu 22.0.4 cannot find version as the user mastodon
I'm a bit confused, and it's actually a Ruby- or more a Ubuntu-problem, not mastodon-related in a regular way.
For Mastodon 4.1.2 it's recommend (and necessary) to install Ruby 3.0.6. As root it's no ...
2
votes
2
answers
4k
views
Installing Ruby 3.2.2 using rbenv on macOS M2: Missing psych and libyaml issues
I am using rbenv on a Mac with an M2 CPU. I have ruby 2.7.2 installed and want to also install ruby 3.2.2. When running rbenv install 3.2.2, I get the following error:
yaml.rb:3: warning: It seems ...
0
votes
0
answers
40
views
Running the rails console command will show the rails default help page
I have a bit of a weird situation. I'm using rbenv on my production server.
Now I wanted to access the console:
cd $HOME/rails/current
RAILS_ENV=production bundle exec rails console
Now Instead of the ...
1
vote
1
answer
828
views
Why won't rbenv or chruby switch to an installed version of Ruby?
I'm trying to get Jekyll running on my Mac M1. This requires a Ruby install. I had everything working a couple days ago, but must have changed something and now I cannot make sense of why it's no ...
1
vote
0
answers
514
views
When I try to install ruby 3.3.0-dev with rbenv it says BUILD FAILED, how do I fix this?
$ rbenv install 3.3.0-dev
To follow progress, use 'tail -f /tmp/ruby-build.20230327204531.21780.log' or pass --verbose
Cloning https://github.com/ruby/ruby.git...
Installing ruby-master...
BUILD ...
0
votes
0
answers
829
views
when I'm trying to create a new app using `rails new` command it throws this error saying I have ruby version 2.6.x. but my global version 2.7.5
When I'm trying to create a rails app using rails new a--name command. it throws me this error saying I currently have 2.6.10 but when I find out the version I'm using ruby -v it still gives me
ruby ...
-1
votes
1
answer
523
views
Unable to update ruby version on macOs 13.2.1 (22D68) on intel i7 2019 model
I have tried at least 10 ways to install/ update ruby to a newer version atleast 2.7.6 but no luck so far. I have zero experience with ruby. Please help
I have tried to install it using homebrew, rvm, ...
0
votes
1
answer
51
views
Typing "ruby filename.rb" does nothing as well as ruby -v
I am new to programming and I just cannot solve this problem. I've installed rbenv and ruby and both of them were working fine until I tried installing gems. I have reinstalled ruby set it on global ...
1
vote
1
answer
232
views
Pod install is no longer working in one of my react-native projects
I was working on a react-native app a few months back, I've just resumed work on it and I'm having issues with pod install.
In the meantime, I've been working on other projects while this was on pause ...
0
votes
1
answer
72
views
rbenv: dynamically extend $PATH for gem binaries
I got rbenv installed, and it works fine:
$ rbenv local
3.2.0
$ ruby --version
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
I installed the gem rufo to format my code, which worked fine:...
1
vote
1
answer
806
views
installing rbenv on mac failure
I am trying to install rbenv. I tried rbenv install 3.2.0 but I received:
BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20230202)
Inspect or clean up the working tree at /var/folders/yk/...
7
votes
2
answers
6k
views
Unable to install Ruby 3.2.0 with Rbenv -- Missing Pysch gem
I'm currently trying to install Ruby 3.2.0 with Rbenv and I'm getting this error every time.
BUILD FAILED (Ubuntu 22.04 using ruby-build 20230202)
Inspect or clean up the working tree at /tmp/ruby-...
1
vote
2
answers
8k
views
Building new project gives error rbenv: version `2.7.6' is not installed
on building my new react native project with react native 0.70 using npx react-native init command it gives error while installing bundler that
rbenv: version `2.7.6'
is not installed (set by /Users/...
3
votes
2
answers
3k
views
Installing Ruby version using rbenv
I have been trying to install React Native into my Mac. In the installation docs, it requires Ruby version of 2.7.6 have been to be installed.
I have installed a new Ruby version using rbenv manager ...
2
votes
2
answers
4k
views
Unknown ruby interpreter version (do not know how to handle): File.readFile.join__dir__,.ruby-version.strip
I just installed a new react native project v 0.71.1. As soon as the cd into my project I get any error saying
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ...