Hi all, I just upgraded my Leopard system to Snow. I had a Rails application with a suite of Spec examples running before the upgrade; it used a mysql database.
After the upgrade, running rake spec would fail like this:
...
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
rake aborted!
closed strea...
Hey guys,
I'm trying to get the mysql gem installed with a fresh install of Snow Leopard.
I got mysql 5.1 x86 installed from mysql site, and have tried install the mysql gem using this command.
sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
getting no love.
this is my error.
gcc -I. -I/us...
I have a cron job to run a Ruby script, which runs fine on the command line (from user "user"), but the cron fails because it cannot find a ruby gem TMail. I manually installed the tmail gem to my ~/.gems/ dir, pointed to by my ~/.bashrc script, as suggested by Nate.
When invoked manually from the shell (on deadpool server)
./home/...
I want to distribute a ruby script to many of my friends, because it's useful. But how do I know what else they might have to install? I mean at the top of the script, there is this:
require 'rubygems' #
require 'activerecord' #TODO: figure out what packages this depends on
require 'activesupport' #
require 'duration' #
Tha...
I tried for about 3-4 hours trying to get the mysql gem to install for ruby 1.9.1 on snow leopard. The mysql gem used to work just fine on 1.9.1 before I upgraded to snow leopard. I uninstalled MySQL server and gem from my machine. I then downloaded and installed: mysql-5.1.37-osx10.5-x86_64.dmg. I have been able to assert that this ...
I have a web-app that was done in Rails 1.2.3 and I have just migrated it to rails 2.2.2 and upon deploy the app broke. It turns out I needed to install the MySQL gem since rails 2.2.2 needs this.
So, I did install it but I had to install with "sudo gem install mysql -- -with-mysql-config" (as per http://brantinteractive.com/2007/02/16...
I successfully installed MySql x86_64 in Snow Leopard and Ruby and Ruby Gems seems to be installed properly:
$ which mysql
/usr/local/mysql/bin/mysql
$ which ruby
/usr/bin/ruby
$ which gem
/usr/bin/gem
$ mysql
Your MySQL connection id is 404
Server version: 5.1.37 MySQL Community Server (GPL)
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel ...
I just upgraded to Snow Leopard, including installing the new XCode, re-compiled Ruby 1.8 and MySQL. My Rails app is running fine in the updated environment, except for some image processing features, which depend on ImageScience/FreeImage.
I upgraded MacPorts to 1.8, removed all previously installed ports and reinstalled them in 1.8, ...
I can't update the rubygems from 1.3.1 to 1.3.5. I've tried the following commands with no luck(logged in as the root)
gem update --system
gem update rubygems
gem update rubygems -v 1.3.5
gem install rubygems-update -v 1.3.5
The response for the first three command is
Updating RubyGems
Nothing to update
while for the last one t...
I would like to read Rails documentation locally though gem server.
I go to http://localhost:8808/ and Rails 2.3.3 gem is in the list of the gems installed, but when I click [rdoc] I get:
`/doc_root/rails-2.3.3/rdoc/index.html' not found.
I tried to uninstall and reinstall Rails but I got no effect.
All other gems work properly, why ...
I have a new gem I'm playing with, but I'm not sure where to put it so that it is initialized, but that I don't have to do it each and every time I use my method which uses it.
def self.get_rate(from, to, amount)
Money.default_bank.fetch_rates #<---------------- Here it is...
if to == "USD" or from == "USD"
rate = Mon...
I just added a new gem to GitHub. Check it out:
http://github.com/esilverberg/google_otg
Unfortunately, it cannot be installed via the command:
gem install esilverberg-google_otg
And this is because it is not showing up in:
http://gems.github.com/list.html
So it is not being built by GitHub. I followed their really simple instructi...
Having a bit of a nightmare getting bluecloth to work on windows. I grabbed the gem from the site (since gem install bluecloth doesnt work). However, I can't seem to get the library to load
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'bluecloth'
LoadError: no such file to load -- bluecloth_ext
from C:/R...
[Cross-posted from the OAuth Ruby Google Group. If you couldn't help me there, don't worry bout it]
I'm working on integrating a project with TripIt's OAuth API
and am running into a weird issue.
I authenticate fine, I store and retrieve the token/secret for a given
user with no problem, I can even make GET requests to a number of
serv...
I don't use RI nor RDOC from the gems I install in my machine or in the servers I handle. (I use other means of documentation)
Every gem I install comes whith ri and rdoc by default and I forget to set --no-ri --no-rdoc.
Is there a way to make those 2 flags default?
...
I've setup the following in my ~/.gemrc file
gem: --no-ri --no-rdoc
so that when I do gem install some_gem, the rdocs won't get installed to not pile up my disk.
But for some gem, I'ld like to install the rdocs as well. So i tried,
gem install some_gem --rdoc --ri
the docs doesn't get downloaded. How can I force the gem install to...
Hello,
I'm new to OS X and I'm new to Ruby on Rails.
I just installed Ruby and Rails and when going through my first tutorial here's what I got:
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/sammat/.gem/ruby/1.8/bin in your PATH,
gem executabl...
As far as I know, the only difference is in "installation". I've also heard that plugins are somehow harder to update. But would I want to install something as a plugin instead of gem?
...
I have a rails project that runs fine in development and production and the tests pass when I do a rake test but when I try to autotest it it fails with:
Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, blah blah
Of course the rails gem is not missing and if I comment this line out, it complains about the rest of the ...
In my app, I've vendored the json-1.1.6 gem and in environment.rb file, its mentioned
config.gem "json", :version => '1.1.6'
When I try to access via browser, the following error is shown by passenger.
Error message:
can't activate json (= 1.1.7, runtime) for [], already activated json-1.1.6 for ["dancroak-twitter-search-0.5.5"]
An...