Questions tagged [gem]

17 questions
9
votes
2 answers

How to specify a higher ruby version for installing a gem?

I install a ruby package. $ sudo gem install pdfbeads ERROR: Error installing pdfbeads: nokogiri requires Ruby version >= 1.9.2. says that it needs ruby version greater than 1.9.1. My ruby is 1.8.7. $ which ruby /usr/bin/ruby $ ruby…
Tim
  • 98,580
  • 191
  • 570
  • 977
4
votes
1 answer

Gem install producing "OpenSSL" error

For at least a week now i have been trying to install Bettercap on my Raspberry PI using gem but whenever i type in: sudo gem install bettercap i receive an error message that says ERROR: While executing gem ... (Gem::Exception) Unable to…
aidan
  • 41
  • 1
  • 4
4
votes
0 answers

How to install a Ruby gem on Arch Linux using Puppet?

I've got the following: class travis_linter { include shell package { 'travis-lint': ensure => latest, provider => gem, } } When I try to test it, however, I get the following Puppet output: ==> default: Debug: Executing:…
l0b0
  • 50,672
  • 41
  • 197
  • 360
2
votes
1 answer

gem install bundler, bundle not working

So this is a bit weird. Gem works fine. When I go to gem install bundler, the system outputs the following: Successfully installed bundler-1.16.2 1 gem installed When I check to see what gems are installed with gem list the bundler shows…
thePinochleKid
  • 120
  • 1
  • 6
2
votes
0 answers

x64_mingw not a valid platform - Rails 5

Bluehost Shared Server ruby -v 2.2.2 rails -v 5.0.0.1 gem -v 2.4.5 ~/.bashrc export HPATH=$HOME export GEM_HOME=$HPATH/ruby/gems export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3 export GEM_CACHE=$GEM_HOME/cache export…
CJ Dana
  • 231
  • 1
  • 9
2
votes
1 answer

mysql2 gem build error when installing redmine

when i tried installing redmine with bundle install --without development test I received this build error: Fetching gem metadata from https://rubygems.org/......... Resolving dependencies................................... Installing rake…
Soul Reaver
  • 159
  • 7
1
vote
0 answers

Can't install ruby on rails MacOSX

While trying to install ruby on rails with sudo gem install rails I get the following error Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current…
1
vote
1 answer

How to start gem ffaker in Debian?

I install ffaker but cannot find it in my PATH masi@masi:~$ sudo gem install ffaker Fetching: ffaker-2.6.0.gem (100%) Successfully installed ffaker-2.6.0 Parsing documentation for ffaker-2.6.0 Installing ri documentation for ffaker-2.6.0 Done…
Léo Léopold Hertz 준영
  • 6,788
  • 29
  • 91
  • 193
1
vote
1 answer

How can I use ruby gem commands like bundler when ruby is installed by nix package manager?

I'm new to nix package manager. After installing nix into Ubuntu 16.04 LTS(Japanese translated version), I installed ruby with nix-env command. Then I did gem install bundler. That seemed to work fine. However I couldn't use bundle command, while…
cul8er
  • 329
  • 3
  • 12
1
vote
2 answers

Ruby gems not recognized in bash script

I have built a node.js app that listens for webhooks. Currently it is used to build a jekyll website. I have configured it on my server and jekyll build works perfectly when I run it in the root of my jekyll website (which is sending the hooks).…
0
votes
1 answer

Unable to install pg gem on CentOS Linux release 7.6.1810

ruby --version ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux] gem --version 3.3.7 PostgreSQL 9.2.24 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit When I run env ARCHFLAGS="-arch x86_64"…
nidooooz
  • 57
  • 5
0
votes
1 answer

Gem::Ext::BuildError: ERROR: Failed to build gem native extension

I have the following Dockerfile: FROM debian:stretch-backports RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ ruby ruby-dev \ curl wget \ gnupg \ git \ …
user977828
  • 921
  • 4
  • 16
  • 30
0
votes
1 answer

How do I get sudo to read my ~/.gemrc file?

I'm using Debian Linux, Ruby on Rails 5 on Apache with Passenger. I crated the file ~/.gemrc gem: --no-rdoc --no-ri However, I'm running the command sudo bundle install and it doesn't seem to be picking up the above. How do I get "sudo" to…
Dave
  • 2,348
  • 21
  • 54
  • 84
0
votes
1 answer

openSUSE Leap 42.3: Cannot install Jekyll due to dependency issues

I'm trying to install Jekyll on my Linode server running openSUSE Leap 42.3, but Zypper gives me this error: # zypper install ruby2.1-rubygem-jekyll Loading repository data... Reading installed packages... Resolving package dependencies... Problem:…
bwDraco
  • 3,213
  • 3
  • 15
  • 15
0
votes
1 answer

Ruby version issues

I have been practising setting up a production environment with puppet, and now I'm setting up everything to accommodate HTTP requests with Apache. Since Puppet runs on Ruby, I also need Passenger to get it running, but I can't install it because I…
1
2