0
votes
0answers
26 views

RubyRep Setup Causes an Error “ Exception caught: Mysql::Error: query: not connected: SHOW TABLES”

I've spent the entire day trying to get RubyRep going on a CentOS machine, and now I'm stuck on the error "Exception caught: Mysql::Error: query: not connected: SHOW TABLES" for which I couldn't find ...
0
votes
0answers
147 views

How to install ruby tesseract on linux mint(after following instructions I keep getting a compilation error)

Hi I'm trying to install ruby tesseract on linux mint OS. I've installed tesseract and ruby teseract-ocr but every time I try I require the gem I get this compilation error: CompilationError: compile ...
0
votes
1answer
48 views

ruby1.9.3 links to ruby1.9.1 in Debian Wheezy after install with aptitude

I have just attempted to install ruby1.9.3 with aptitude but for some odd reason it keeps symlinking /usr/bin/ruby1.9.3 to /usr/bin/ruby1.9.1. Here are the ruby version in /usr/bin: lrwxrwxrwx 1 ...
0
votes
0answers
90 views

Correct way of setting Ruby2.1 as the go-to application when it referenced to/called via shell?

I have installed Ruby 2.1 on my headless Debian server (7.4) by downloading the source from https://www.ruby-lang.org/en/downloads/ and then running the routine of ./configure make make install ...
1
vote
1answer
51 views

how to run ruby app on startup

I'm trying to run a sinatra app on startup in linux mint. I'm using the startup applications preferences to add the path to the ruby file that I'm trying to execute: shotgun /path/to/file/file.rb ...
0
votes
0answers
58 views

Upstart spawned threads won't clean up

I have an upstart job which runs: exec su - pi -c 'cd /data/zeus_station/releases/20140217074914; export PORT=5100; ~/.rbenv/bin/rbenv exec bundle exec thin start -R config/config.ru -p 9000 >> ...
2
votes
1answer
356 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
1
vote
0answers
319 views

yaml.h not found after installing libyaml

I have installed libyaml yet Ruby install can not find yaml.h. I do not have sudo permissions so everything must be done as a normal user. wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz ...
1
vote
2answers
246 views

What does the linux “mkdir bin lib lib/NAME test” command translate into in Windows?

I am working on a Ruby tutorial and it is having set up projects using the listed command. It is not quite clear to me what they are exactly doing with that command. Are they making a path ...
0
votes
0answers
46 views

After Reinstall of Rails, Cannot Run `rails server`

On my main dev computer, I had had ruby installed from a ppa. I decided to reinstall it with rvm for consistency between computers. To uninstall my current environment, I ran sudo apt-get remove ...
1
vote
0answers
137 views

I am having trouble using SASS/Compass on localhost in Fedora 18

I am attempting to use SASS/Compass in Fedora 18 on my localhost test server, located at: /var/www/html Ruby/gems and compass have already been installed. Now, I'm trying to create a test file and ...
16
votes
2answers
1k views

Is there a git-like file system?

Git stores content uniquely in its repo based on the calculated hash of any file. Thus, if my directory has two copies of the same file somewhere inside it, git will only actually store it once. I ...
1
vote
0answers
182 views

How do I run WEBrick as an upstart job?

I need to get WEBrick (basically a Rails web server) to work using upstart, but cannot figure out what should I write in script. The following gives me an error: chdir /rails-app exec su -s /bin/sh ...
1
vote
1answer
81 views

Define extra `$PATH` for either Passenger or nginx

I have a server with nginx and Passenger serving a Ruby on Rails app. It uses Bundler. Somewhere in this stack, the $PATH gets set to /var/www/APPNAME/shared/bundle/ruby/1.8/bin/. This directory ...
0
votes
1answer
122 views

How to setup a shared hosting server for Ruby on Rails from scratch?

I need to setup a shared hosting server especially for hosting RoR applications. What is the best way to achieve this? Currently I am hosting a LAMP shared hosting server. I have some scripts with ...
2
votes
1answer
376 views

Single GUI Application raspberrypi

So I want to develop a software that will take over my raspberry pi computer, or just for simplicity's sake, any computer running a lightweight linux OS, to serve a single function. Run a Ruby/Java or ...
2
votes
1answer
378 views

How do I ensure a process is running, even if it kills itself? (it needs to be restarted then)

I'm using linux. I want a process (an irc bot) to run every time I start the computer. But I've got a problem: The network is bad and it disconnects often, so I need to manually restart the bot a few ...
3
votes
1answer
808 views

java wont run under chroot cause it can not find shared libraries

i have openjdk and jRuby installed and running properly. however when i run exactly same environment under chroot, i get: error while loading shared libraries: libjli.so: cannot open shared object ...
0
votes
1answer
534 views

Java Runtime Environment on OpenSuse 12.1 - which one to choose?

I'm running OpenSUSE 12.1 and want to use Java Runtime enviroment v. 1.6. They ask for an ssh-key. Which package should I take: the proprietary or the open source one? How would you install it? Via ...
9
votes
6answers
15k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
2answers
772 views

Amazon EC2 and eventmachine encryption issues

I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes. I've written a small backend in Ruby ...
1
vote
2answers
3k views

Ruby/gem installation paths scattered all over, cause?

can you help me understand my ruby folder structure? I don't understand why my gems are scattered all over and why they aren't recognised commands. I'll explain how my installation looks like first: ...
1
vote
3answers
1k views

Mainstream Linux on 1GB HDD

I've decided to start learning Linux + Ruby + RoR (Ruby on Rails). The problem is the only personal computer I have is a laptop with 1GB flash card and I can't afford to buy more hardware right now. ...
0
votes
1answer
572 views

Installing MySQL-Ruby on Linux and Ruby 1.9.2

I am having an absurdly difficult time getting MySQL-Ruby to install on RedHat 4 using Ruby 1.9.2. I am behind a company proxy that prevents pretty much any package tool from connecting to external ...
6
votes
3answers
2k views

Ruby shell instead of Bash shell in Ubuntu?

It seems to me that Ruby is far more powerful, and you can also do more powerful scripting with it. Are there any open source implementations out there that could replace Bash with Ruby on Ubuntu, so ...
0
votes
1answer
52 views

Can't get Ruby to update properly

(Using Archlinux) I downloaded Ruby 1.8.7-174 a while ago and installed it via the tarball (not pacman). I was trying to update to 1.8.7-299, but I can't get it to work. Per the readme, I do the ...
2
votes
2answers
4k views

Linux: how to uninstall something that isn't a package…?

I installed ruby1.9.1 from source using sudo make install. How can I uninstall this? Basically I just don't want 'ruby' to map to ruby1.9.1, but instead the default 1.8.7. Also sudo make uninstall ...
0
votes
4answers
114 views

Linux standard input issue

I am new to Linux. And I am using Red Hat Enterprise Version 5. There is a ruby program which use standard input as its input (e.g. the Ruby program process input from standard input). I think ...
5
votes
2answers
3k views

How to configure installed Ruby and gems?

My current gem env returns: RubyGems Environment: - RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] - INSTALLATION DIRECTORY: /home/USERNAME/.gems - ...