Questions tagged [ruby]

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

158 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
2 answers
863 views

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has ...
Paul Roub's user avatar
  • 277
4 votes
1 answer
2k views

All rails application logs being written to apache error log

I've deployed a ruby on rails 4.0.3 application to a server that I've configured with the following likely relevant software: Ubuntu 12.04.4 x64 server Phusion Passenger 4.0.37 Apache 2.2.22 Ruby 2.0....
Jon Worek's user avatar
  • 141
3 votes
2 answers
2k views

Installing Vagrant alongside RVM isntalled Ruby

How do I install vagrant alongside a specific version of ruby installed using RVM? I have both 1.8.7 and 1.9.3p429 installed. After using RVM to set my default to 1.9.3 I no longer have vagrant ...
digital's user avatar
  • 821
3 votes
1 answer
1k views

Sudo <any command> throws: Command not found but works without sudo

I'm on a CentOS VPS and using RVM and Capistrano to deploy. for some deployments I need to use sudo, but when I deploy with something like: desc "Restart the application services" task :restart, :...
CodeOverload's user avatar
3 votes
0 answers
923 views

How do I install sass on centos 5.9 with ruby 1.8.7?

I have CentOS 5.9 on an x86_64. I've installed ruby 1.8.7. Whenever I try to install sass I get an Error saying sass requires Ruby version >= 1.8.7. but that's what I have installed. This is the ...
user2113887's user avatar
3 votes
1 answer
12k views

How to run bash script on a Linux host, from Windows using plink

I'm trying to run a simple bat file on Windows that will run a bash script on a remote Linux machine. The bash script is located on the Linux machine. For example: I'm trying to run this command in a ...
user128877's user avatar
3 votes
1 answer
1k views

How to set the default language in Notepad++ for Rails View files

Similar question to this but my question goes a step further. I'm developing in rails and would like Notepad++ to automatically use html formatting on files with the extension html.erb. For example '...
Dru's user avatar
  • 497
3 votes
0 answers
91 views

Customize netbeans rails module

The Netbeans rails plugin has a simple a project structure: However, I have encountered the following problems: I cant access config.ru file I cant access app/uploaders dir (carrierwave gem) What ...
puchu's user avatar
  • 1,902
2 votes
0 answers
509 views

How to find all previously-installed Ruby artifacts (files, etc) so I can remove _all_ of them from my OS?

Other than the pre-bundled-with-my-default-OS install (eg: /usr/bin/ruby on macOS 10.14), I want to completely wipe my OS clean of Ruby before I reinstall Ruby to a "known state." Specifically, I want ...
Johnny Utahh's user avatar
2 votes
1 answer
2k views

Having trouble installing ruby gem for iStats

I am trying to install iStats via a ruby gem. First I ran the command: xcode-select --install and the output was: xcode-select: error: command line tools are already installed, use "Software Update"...
AkThao's user avatar
  • 143
2 votes
0 answers
2k views

Remove old versions of gems... gem cleanup is not doing it

This is the list of gems of my system after issuing a sudo gem cleanup command: activesupport (4.2.6) addressable (2.5.0) babosa (1.0.2) bigdecimal (1.3.1, default: 1.2.0) bundler (1.14.4) capybara (...
Duck's user avatar
  • 1,767
2 votes
1 answer
209 views

What is the difference between ruby package and ruby gem as bellow?

I am using Ruby for sysadmin ops but I was wondering what is the difference between Fedora Ruby Package like : rubygem-thor-0.19.1-2.fc23.noarch Ruby Gems like : thor (0.19.1) >> using gem list --...
Hazem Hemied's user avatar
2 votes
1 answer
867 views

Failed to install native Ruby Gem wdm 0.1.1 on Windows 7 x64 (Ruby 2.2.0)

Outdated Story (find the update below the next heading) I can't find out why wdm won't install on my computer. I have tried using the Cygwin bash, Windows cmd and GIT bash. Console output: $ gem ...
Neonit's user avatar
  • 182
2 votes
0 answers
677 views

How can I get Homebrew and MAMP (Pro) to play nicely together?

I am using MAMP Pro for most of my local application development and am trying to install ruby , etc via homebrew however homebrew will give me the following warning: Warning: "config" scripts exist ...
el_reverend's user avatar
2 votes
1 answer
425 views

Redmine install on Apache2/Ubuntu 12.04 EC2 instance

Can someone point me to a guide or guides that explain how to get Redmine running on Ubuntu 12.04? From installing Ruby to setting up Passenger? I've tried a handful of times and have never been ...
dcd0181's user avatar
  • 247
2 votes
1 answer
993 views

Error "Insecure world writable dir /Volumes/BOOTCAMP in path, mode 040777"

I tried the answer sudo chmod go-w in my /Volumes/BOOTCAMP but I'm still getting the warning It says Insecure world writable dir /Volumes/BOOTCAMP in PATH, mode 040777 And when I echo $PATH ...
pixel 67's user avatar
  • 133
2 votes
1 answer
619 views

Can I install some ruby gem on a standard OS X user?

I have a Admin user for serious stuff and a Standard user for daily tasks, including front-end development. On the Admin user, I can install Brew, RVM, Middleman etc. But on the Stardard user, where I ...
Joel Cipriano's user avatar
2 votes
1 answer
2k views

Gem Binaries not found with oh-my-zsh

I'm using Oh-My-Zsh on Mountain Lion and have an issue with gem binaries not loading properly. For instance: If I load a new shell the binary still cannot be found. When using Bundler, I can load ...
Neil Middleton's user avatar
2 votes
1 answer
2k views

(-bash: initdb: command not found) When installing postgres mac

I get the following error (-bash: initdb: command not found) in the terminal when trying to install postgres on my mountain lion mac osx? Also, does any one have a good resource for installing ...
user avatar
2 votes
0 answers
201 views

Why does RVM Ruby require libksba?

The rvm requirements says I should install "libksba" before installing Ruby 1.9.3. Why? How can I tell if I already have "libksba" installed? I'm running Mountain Lion 10.8.2 and Xcode 4.5 (4G182).
ma11hew28's user avatar
  • 709
2 votes
0 answers
70 views

Can I use e text editor with an existing ruby installation?

I'm using windows and e text editor. I installed cygwin along with the e text editor as it prompted me too, but running ruby programs produces no errors and no output. I'd like to use an existing ruby ...
user21374's user avatar
2 votes
2 answers
1k views

rvm problems syntax error near unexpected token `fi'

Whenever I cd or use rvm commands this shows up: -bash: /usr/local/rvm/scripts/initialize: line 80: syntax error near unexpected token `fi' -bash: /usr/local/rvm/scripts/initialize: line 80: ` fi'...
gdi2290's user avatar
  • 163
2 votes
1 answer
231 views

Problems with git and bundler

I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git repositories....
halfbit's user avatar
  • 791
2 votes
1 answer
6k views

`brew doctor` shows warning: "config" scripts exist outside your system or Homebrew directories

When I use brew doctor, I get following error. Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if ...
ironsand's user avatar
  • 2,299
2 votes
1 answer
4k views

Rails "Cannot read termcap database;"

Whenever I start my rails console I'm running into two problems: I'm getting these cryptic errors messages. My control-L isn't working (it's intended use it to clear the screen) Console output: $ ...
mbigras's user avatar
  • 577
1 vote
0 answers
31 views

can't find bash history executed via ruby net::sh library

In the hope for getting the commands that run via ruby net::ssh tool which is described as follow: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. It allows you to write ...
medBouzid's user avatar
  • 123
1 vote
0 answers
323 views

Cannot run rails new myapp -d postgresql

I was following the tutorial here: https://gorails.com/setup/windows/10 I reached the part where I run to create my app and it starts then I run into this error: create create README.md ...
rashonmyeed's user avatar
1 vote
0 answers
159 views

Gollum Wiki editing fails because of a permission issue

I have been using the gollum wiki and it has worked fine so far. After mainly updating conda (which should have nothing to do with gollum), I get the following error message when I try to save edits ...
p.py's user avatar
  • 11
1 vote
0 answers
277 views

Logstash 7.2 file input plugin network path wildcard didn’t produce any out on Windows x64

I have a remote file storage with thousands having 10mb average size text files. I'm using this code: input { file { path => "//foldername/**/*.dat" start_position => "beginning" } } output { ...
FAQ's user avatar
  • 123
1 vote
0 answers
130 views

Trouble uninstalling gem bundler

I'm running the following software: Ruby 2.3.3 Rails 4.2.10 Gem bundle 1.17.3 & 1.12.5 Git keeps defaulting to 1.17.3 but rails is only compatible with 1.12.5. I cannot uninstall 1.17.3 to use 1....
C. Beth's user avatar
  • 11
1 vote
0 answers
643 views

rbenv install 2.3.1 gives "BUILD FAILED (OS X 10.14.5) and configure: error: C compiler cannot create executables

I feel ashamed to ask a question here since I just want to start learning programming and now already spend a day to try all solutions offered. So far nothing helped. (base) [ruby-build (master)]$ ...
Joost F van der Linden's user avatar
1 vote
1 answer
232 views

I have ruby installed greater than 2.3.0 but it says requires greater than 2.3.0 for i18n to be installed

I have ruby version 2.5.1p57 when ran ruby -v command. While installing a cookbook which requires i18n, it throws error i18n requires Ruby version >= 2.3.0. Though the ruby version is greater ...
Amar Kumar's user avatar
1 vote
0 answers
932 views

How can I install bundler for a specific ruby version?

I'm creating a rails app and when I try to run rake db:migrate I get this error: LoadError: cannot load such file -- bundler/setup I'm using rbenv and ruby version 2.5.1 in a mac with OS Mojave 10....
norman123123's user avatar
1 vote
1 answer
68 views

How to delete all directories except last 2 directories and the symlink pointed to those directories

I have below directory structure. drwxr-xr-x 5 ec2-user ec2-user 4096 May 22 07:03 TEEST drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 05:33 BEE-TES drwxr-xr-x 5 ec2-user ec2-user 4096 May 24 10:53 ...
user8895496's user avatar
1 vote
0 answers
84 views

Source Code Pro font issue in JetBrains editors

I'm having trouble with Source Code Pro font for few years now on all JetBrains IDE's. I have installed Source Code Pro. When I set the font: I have these weird bugs, mainly in Ruby: But this bug ...
PragmaticEd's user avatar
1 vote
1 answer
636 views

Ruby version 2.3.3 Gemfile 2.3.0 (Sprockets Update)

I'm a newbie at Ruby on Rails. I'm trying to update the Gemfile but it keeps giving me this error: "Your Ruby version is 2.3.3, but your Gemfile specified 2.3.0" The reason I'm trying to update the ...
Mubin Maredia's user avatar
1 vote
0 answers
109 views

ruby inside vim causes a segfault

Every time I try to run a ruby command from inside vim, I get a segfault. If I try to run :ruby puts 1, for example, vim crashes immediately: $ vim Vim: Caught deadly signal SEGV Vim: Finished. ...
ewok's user avatar
  • 4,221
1 vote
0 answers
331 views

'XXX.rb' is not recognized as an internal or external command, operable program or batch file

Installed Ruby without a hitch, installed ruby gems, ensured the environment variables path have C:\Ruby25-x64\bin in them, wrote a script went to run the script and received the following: "'XXX.rb' ...
dcwilson042's user avatar
1 vote
0 answers
48 views

extend gnome-shell PATH for access to ruby binary with RVM

I have a terminal written in ruby that I install with a gem. I want to be able to launch this terminal when I hit Alt+F2 in gnome-shell. When I used the ruby version of my system, I just have to ...
cedlemo's user avatar
  • 113
1 vote
0 answers
433 views

High Disk I/O spike followed by jumps in memory on Ubuntu server

I'm running a server on Ubuntu with Ruby, Sinatra, Unicorn and Nginx. I start everything up and it builds to about 66%, where it remains for a while. Then after a few hours, there's a large Disk I/O ...
Andrew's user avatar
  • 111
1 vote
0 answers
223 views

Error when running pod install

I'm getting this error when running pod install on my machine : pod install /Users/joao/.rvm/gems/ruby-2.2.4/gems/bundler-1.13.1/lib/bundler/rubygems_ext.rb:45:in `full_gem_path': uninitialized ...
jonypz's user avatar
  • 111
1 vote
0 answers
125 views

Alternate row shading by ID - Conditional Formatting in OpenOffice

02902982085 4 a ? <-- yellow 02902982085 # 1 r <-- yellow 02902982085 b $ 0 <-- yellow 01395235224 w z [ <-- blue 01395235224 a - 5 <-- blue ...
Forwarding's user avatar
1 vote
0 answers
96 views

Linux filter which convert data coming from pipe to chunked transfer encoding

I usually use Open3.popen3 in my Ruby CGI scripts to start a Linux command, parse its standard output and converting the bytes to the chunked transfer encoding ( https://en.wikipedia.org/wiki/...
Konstantin's user avatar
1 vote
1 answer
201 views

Installing ruby / gems / jekyll on mac

I tried to install newer version of ruby, because I needed it for install the Jekyll. Now when I try to use any gem command (i.e. gem install jekyll) I get a my little pony image in the Terminal and a ...
Tomasz Hajduk's user avatar
1 vote
0 answers
117 views

Troubleshooting tips for SSH issue on proprietary software

I am having an issue establishing a channel with a piece of hardware that we purchased. I can SSH into the VXworks OS using both Putty (on Windows) and the Ubuntu's CLI, however, when I send commands ...
Schylar's user avatar
  • 111
1 vote
0 answers
126 views

Could not initialize MySQL client library in Justhost

I am trying to configure redmine in justhost. following link was used for configuration. Link: https://my.justhost.com/cgi/help/redmine I am getting error - Could not initialize MySQL client library. ...
thangaduraiponnusamy's user avatar
1 vote
1 answer
6k views

/usr/bin/env is pointing to wrong ruby version. "No such file or directory"

If I type "rake spec" I get. /usr/bin/env: ruby1.9.1: No such file or directory This problem started happening when I uninstalled ruby 1.9.1 and used rvm to install the latest ruby version but ...
Shu-Woon's user avatar
1 vote
0 answers
596 views

Nginx + Passenger not working -- client requests hang until timeout

I'm running on an EC2 instance with Amazon Linux installed and Nginx was installed via passenger-install-nginx-module. The full install process followed was similar to this. The primary difference was ...
Dan's user avatar
  • 324
1 vote
1 answer
497 views

Pathogen - only some of vim plugins work

So recently I installed Pathogen along with a few plugins like NerdTree, and Solarized and they both work really well. Today I tried to install Ruby indentation plugin (https://github.com/jelera/vim-...
the_dude's user avatar
  • 111
1 vote
0 answers
48 views

Will creating a restore point save my Ruby installation

I am running Ruby and Rails on a Win 8.1 PC, and want to know whether creating a Restore Point via System Properties will allow me to go back to my original Ruby version if I was to install a newer ...
dimitry_n's user avatar
  • 111