Ruby is a programming language that is mostly used nowadays as part of Ruby On Rails

learn more… | top users | synonyms

1
vote
0answers
7 views

Which dependencies are removable after building ruby?

I've successfully built ruby 2.1.1 on Ubuntu/Debian by installing the following dependencies: apt-get install \ autoconf \ bison \ build-essential \ libssl-dev \ libyaml-dev \ ...
0
votes
0answers
8 views

How to debug Repository.fetch_changesets runned from ./script/rails runner

For some time I have been updating changesets manually on server with following command's: $ cd /custom/www-data/ $ source /custom/www-data/.rvm/scripts/rvm $ ./script/rails runner ...
0
votes
1answer
30 views

Should I install ruby as root or user? [closed]

I'm not sure which option to take. I'm installing ruby on VPS. My options: Install ruby from ubuntu repository Install RVM Install RVM as user Install RVM as root I've 1 user VPS, that handles ...
1
vote
1answer
22 views

Deploying Ruby Applications In Air Gap (No Internet Access) Network

The current network setup at my job has made it difficult to deploy Ruby web applications. We are running our production RHEL servers in an air gap network with no access to the public internet. My ...
1
vote
0answers
16 views

Can't deploy Ruby 2, Rails 4 app to Linode

I have a Rails 4 app and I want to deploy it to my Linode and I'm struggling a lot to get this working. I followed all the basic instructions from the Linode guides, also, installed all the ...
0
votes
1answer
14 views

wants to provide password to tightvnc server by using script

I am installating tightvnc server on my ubuntu machine by using ruby script my script contain following: #!/usr/bin/ruby env `sudo apt-get --force-yes -y install tightvncserver` `printf ...
-1
votes
1answer
176 views

Install ruby by rvm

I try to install ruby 2.1.1 by RVM and I receive following error: vmamaev@vmamaev:~$ rvm install ruby-2.1.1 ruby-2.1.1 - #removing src. Searching for binary rubies, this might take some time. No ...
0
votes
1answer
93 views

configure: error: C compiler cannot create executables while build ruby from source [closed]

I've checked a number of similar questions on stackoverflow but haven't found an answer yet. I am trying to build Ruby from source as describe here: ...
2
votes
1answer
50 views

Share Ruby Programs between Linux users

Our Linux (Mint) system has 2 admin users - mint & admin. What do we need to do for admin & mint to be able to share gems? Mint has chef, berkshelf & knife-ec2 installed via bundler in ...
0
votes
1answer
27 views

gem install append CPPFLAGS / LDFLAGS [closed]

I can't seem to get gem install charlock_holmes -v 0.6.9.4 to work. I can hand edit the ./ext/charlock_holmes/extconf.rb and includ $INCFLAGS << " -I/usr/local/include " $LDFLAGS << " ...
0
votes
0answers
68 views

Force execution of a chef script before the first one finishes

Following is section of code that is creating the problem for me. Everything works fine but then in order to upgrade percona, I need to run the 'mysql_upgrade' step while the 'mysql_safe' step is ...
0
votes
1answer
70 views

rvm ruby install failing setting paths

I've never used Ruby before so this and the surrounding terminology is new to me; I'm only doing the install so I have a base to run a specific application. I need Ruby 1.9.3, as I understand it I ...
2
votes
1answer
119 views

Redmine won't start after move

I met trouble with redmine(or ruby configuration) when move from one server to another redmine@dirty:~/www$ ruby script/rails server webrick -e production ...
0
votes
0answers
8 views

Gem generating different output on different machines with same configuration

I'm using the premailer gem to generate inline CSS for a project I work. That project is also cloned on a CI server. The wierd stuff that is happening is that from some time now, it started failing ...
0
votes
0answers
49 views

Chef gem_package not using the binary path

I'm trying to install the gems "sensu_plugin" and "mixlib-shellout", on a windows server 2008r2, from a recipe. In this last one, I have the following code : %w{ sensu-plugin mixlib-shellout }.each ...
1
vote
1answer
39 views

Reload Puppet gem provider source

So I've got Puppet Enterprise 2.7 on a "master" node, puppetentmaster. While working to craft new recipes for installing Ruby 2.0 on a "client" node, I noticed if I forced the client to begin using ...
1
vote
1answer
96 views

Installing Phusion Passenger with Ruby 2.1.0

I'm following the guide for installing Passenger on Ubuntu, but when running sudo apt-get install libapache2-mod-passenger it tries to install Ruby 1.9.1. I already have Ruby 2.1.0 (installed via ...
0
votes
1answer
818 views

Ruby Install on Centos

I'm trying to install ruby on Centos-6.4 64-bit as following: mkdir /tmp/ruby && cd /tmp/ruby curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz cd ...
1
vote
1answer
68 views

Bootstrap Chef on Vagrant Box

I'm trying to bootstrap a Vagrant box using hosted chef server. knife bootstrap testbed001.me --sudo -x root -N "testbed001" However, the command throws an error: Bootstrapping Chef on ...
1
vote
1answer
167 views

Continue Bundler Installation

I'm trying to install Gitorious on Debian Wheezy. gitorious uses bundler for automated installation. When I run "bundle install" (not only when installing gitorious, also redmine for example) I ...
1
vote
0answers
51 views

Sensu gem installation in Windows. How to use it? [closed]

I need to install the sensu 0.12 version on some windows 2008r2 servers over here. The problem is that the latest available .msi is for the 0.10.x version and that causes me some compatibility problem ...
0
votes
0answers
65 views

Tips on reducing 500 Internal Server Errors between Apache & a thin cluster on a separate machine

I'm running a Ruby on Rails web service on multiple machines. The Apache web server is on one virtual machine and the thin application servers are on a second, the Postgres database is on a third. I ...
1
vote
1answer
30 views

Why can't I run wbadmin from a Ruby script

I can run wbadmin from the command line like this: $ c:\windows\system32\wbadmin.exe -? And it works (I get a proper help message, ellided here). However, when I try it in Ruby (as in this IRB ...
0
votes
0answers
84 views

redmine in subfolder issue (Apache, mod_passenger, Ruby + Drupal site in main folder)

I have Redmine in subfolder /var/www/redmine and Drupal in folder /var/www/ When I go to URL mysite.com/redmine, Redmine shows ok, but mysite.com/redmine/login is (over)handled by Drupal. Apache ...
0
votes
0answers
33 views

Installation of JavaScript runtime on old Red Hat server

I've been tasked with some infrastructure updates related to upgrading to Rails 3 on our development server, which is running: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) RPM version ...
1
vote
0answers
273 views

bundler: command not found: unicorn_rails

While restarting gitlab I get this: Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install I installed gitlab ...
0
votes
1answer
114 views

Nginx, Passenger, Rails serving static files but not running app

I've seen other similar questions but none with satisfactory answers, so here goes. I've installed Ruby, Rails, Nginx and Passenger and tried to configure it to all work together. Here is the ...
0
votes
0answers
92 views

Gitlab OpenID authentication with simpleID does not work?

I setup gitlab 6.3.0 to authenticate users based on OpenID. I successfully tested with Google logins with these hacks: in this file: gitlab/config/gitlab.yml The relevant section is: ## OmniAuth ...
0
votes
0answers
33 views

rails 3 ruby 1.8.7 app slow startup on the web

I've been working with rails 3 and ruby 1.8.7 and ALWAYS (in all my apps), I have problems with the STARTUP time delay. It sometimes loads OK, and sometimes takes more than 12 seconds just to start ...
1
vote
1answer
157 views

A chef recipe to install ruby 1.9.3 system wide without rvm nor rbenv

I'm looking for an Opscode Chef cookbook that installs system-wide Ruby version 1.9.3, patch-level latest at the time of the run_list execution. Have done some research and there is a Brightbox PPA ...
0
votes
0answers
23 views

Using Ruby on share web hosts

We are developing a Wordpress theme and we are going to publish it on themeforest.com. We are using Sass(scss Syntax) as our CSS Preprocessor and we need to compile it on server side. We have two ...
0
votes
1answer
27 views

Why is cron using a different Ruby than my user and how to fix it?

I have a cron job that is a Ruby script. The problem is that the ruby executable is different than expected. Ruby was installed from source so it should be the new global default. $ ssh ...
0
votes
1answer
302 views

Organize code in Chef: libraries, classes and resources

I am new to both Chef and Ruby and I am implementing some scripts to learn them. Now I am facing the problem of how to organize my code: I have created a class in the library directory and I have used ...
0
votes
1answer
713 views

Could not find rake-10.1.0 in any of the sources

I've got a ruby on rails application (gitlab) which is installed via puppet. Everything on the test system runs fine, but production generates an error about rake Running ...
0
votes
0answers
20 views

Mac Server & Ruby SSL help needed

I need some advice on a potential problem i face, relating to a Mac server & Ruby on Rails. We have a mac server (xserve running tiger) running Ruby, Apache (httpd?) and mongrel to provide a ...
2
votes
1answer
46 views

What happens when Phusion PassengerMaxPoolSize is reached?

The subject of my post pretty much sums up my question: What happens when PassengerMaxPoolSize is reached? For Example: PassengerMaxPoolSize is configured to 40 based off our system specs What ...
0
votes
1answer
254 views

Starting command on boot with correct user env vars

I am attempting to create a start-up script that will run this command on boot for my ubuntu 12.04 server: bundle exec thin -R config.ru start -p 3030 When I run it as a regular user it works just ...
-2
votes
3answers
130 views

Can I safely uninstall Ruby?

I wish to remove non-critical packages to limit exposure to potential security vulnerabilities. I never use Ruby. Does removing Ruby will increase security or break other parts of the system ?
0
votes
1answer
73 views

Cannot run grack, passenger occurs error: uninitialized constant GitHttp (NameError)"

I trying to setup web server for publish git repositories on successfully installed and worked redmine server. Passenger occurs error: Web application could not be started uninitialized constant ...
0
votes
1answer
41 views

VPS apache config - Invalid command 'PassengerDefaultRuby' after adding latest passenger gem

used to have this list of rubies in my vps: ruby-1.9.2-p320 [ i686 ] =* ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] today I installed a new app on this vps ...
0
votes
1answer
143 views

Creating an EC2 instance with Ruby SDK without ephemeral storage

I use the Ruby AWS-SDK to create EC2 instances like this : instance = ec2.instances.create({ :image_id => WORKER_AMI, :instance_type => instance_type, :key_name => ...
1
vote
3answers
334 views

Can you install puppet without ruby 1.8?

I need to install puppet 3.2.0 or greater along with ruby 2.0.0-p247 on an ubuntu 12.04 server. Is there no way to install puppet without ruby 1.8? Most my experience comes from CentOS so I may ...
0
votes
1answer
193 views

Chef 11 node attributes available and ordering

In Chef 10 I have a number of roles which set custom node attributes like "appname": "my_rails_app" The attribute is then used to load app specific variables in a wrapper cookbook. There are ...
2
votes
1answer
83 views

Most appropriate place for custom Puppet facts - RHEL

I'm not much of a Ruby guy, but found how to list the Ruby load path. Here's what it looks like for me $ ruby -e 'puts $:' /usr/lib/ruby/site_ruby/1.8 /usr/lib64/ruby/site_ruby/1.8 ...
1
vote
0answers
31 views

Install gems of ruby 1.9 bins without suffix in openSuSE

I got issue on my openSuSE instances. By default in openSuSE after installation by gem utility (gem install some_app) you will got something like that: # some_app1.9 # chef-solo1.9 etc. That a ...
3
votes
1answer
112 views

Who should own the god process?

I have a stack running on ubuntu consisting of a Rack application written in Sinatra and GrapeAPI. The application stack includes Redis, Postgres, Nginx and unicorn. I want to use god to handle ...
0
votes
1answer
110 views

When should Passenger, Unicorn, and Rack be used? [closed]

Reading about Puppet often Passenger, Unicorn, and Rack are mentioned, but I can't figure out what the purpose of these are. The website for Passenger says: Phusion Passenger is a web server and ...
3
votes
1answer
71 views

swap space when installing phusion passenger

I tried to install Phusion Passenger and since I had less than 1GB free memory it recommended temporarily adding swap space with there commands: sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo ...
1
vote
2answers
70 views

Redirect output from cron in real time, not after program has finished?

I have a ruby script that writes to STDOUT and sometimes STDERR. I am running this script every 5 minutes via a crontab: */5 * * * * /root/myscript.rb >> /var/log/myscript.log 2>&1 What ...
1
vote
1answer
42 views

Easier way to apply one condition to a set of Chef resources

In this part of a Chef recipe, there are 4 execute resources. They should only run when a file does not exists. This is added as a condition to the first resource, which then triggers the entire chain ...