rubygems

Ruby Gem installation problem on Windows 7.

Hi there, I'm trying to install some Gems and need to run the following command: gem install mongrel mongrel_service mysql ruby-postgres oniguruma ultraviolet libxml-ruby --no-ri --no-rdoc --platform=mswin32 However, that --platform=mswin32 at the end of it bothers the hell out of me. I mean, my platform is x64 as it's supposed to b...

Sqlite on a production box

Should I have to install sqlite on a prod box where I'm using mysql for a rails application? The reason I ask is that phusion is yelling at me with the following error: Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the gem sources. (Bundler::GemNotFound) My gemfile has the following group :development, :test do gem...

Can't install Rmagick and Imagemagick on Windows 7.

Hi there, when I run gem install rmagick-2.13.1.gem from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, below which it says c:/Ruby192/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5 ... yes Unable to get Imagemagick version ***extconf.rb failed*** Could not c...

Not Null in "count" or "find" function in rails

I'm trying to find the not null elements in a database @genus_counts = Table.count(:all, :conditions=> {:col1 => params[:gm], :col2 => nil}, :without => {:col3 => nil}) It's not recognising "without" function. I am in doubt to apply it as array value. @genus_counts = Table.count(:all, :conditions=> {:col1 => params[:gm], :col3 != nil...

Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010

When i'm running ruby script/server webrick -e production it gives error => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #...

gem installed but 'rails' commands don't work

when I run any rails command like rails s I get the following error: Could not find diff-lcs-1.1.2 in any of the sources Try running bundle install. However, I already installed diff-lcs. bundle show diff-lcs /opt/local/lib/ruby1.9/gems/1.9.1/gems/diff-lcs-1.1.2 I also see diff-lcs when I do a gem list command My GEM_HOME is /...

Rails project has a .gems file, can I batch download them somehow?

In this project in github, it doesn't have a 'GEMFILE', but it has a .gems file that looks like: rcov rails --version 2.1.1 mash --version 0.0.3 haml --version 2.0.3 color --version 1.4.0 ruby-hmac --version 0.3.2 calendar_date_select --version 1.15 fastercsv oauth --version 0.3.6 oauth-plugin --version 0.3.14 httparty --version 0.4.3 ...

IronRuby doesn't recognize 'rake' - I'm getting undefined method `rake' for main:Object, how to fix?

Hi All, Just installed IronRuby 1.1. I'm trying to take a look at rake and albacore. After installing ironruby, I am able to hit a command prompt by typing ir, and I am able to do simple puts, but when I try to run rake, I get the error undefined method `rake' for main:Object How do I resolve this? Any ideas? Thanks, ~ck in San D...

TokyoCabinet ruby binding install problem

I get the same issue attempting to install tokyocabinet's ruby bindings from source or from a gem: tokyocabinet.c: In function 'fdb_get_reverse': tokyocabinet.c:2377: error: 'TCFDB' undeclared (first use in this function) tokyocabinet.c:2377: error: 'fdb' undeclared (first use in this function) tokyocabinet.c:2383: error: expected expre...

High-performance Screen Scrape with Ruby on Rails!

I need to get many data and performance is an essential requirement. Do you have any suggestions? Thanks in advance! ...

How to get Ruby on Rails to generate a model using sql server 2008

Ruby version: 3.0.2 Rails: 1.9.2 OS: windows 7 DB: sql server 2008 (r2) I tried to execute the following command: rails generate model product The error I get can be seen here: pastebin.ca/1965168 I tried to follow these two sites: rubyrailsandwindows.blogspot.com/2008/03/rails-2-and-sql-server-2008-on-windows_24.html www.lostechies....

unable to load libtidy.dylib

Hi, I'm trying to run on my mac os 10.6 a Ruby script that apparently requires libtidy. I spent an hour trying to find an information on how to get libtidy installed. 'gem install tidy' didn't help I'm amazed that I was unable to find the answers in google :/ ...

Ruby on Rails: I installed the native pg gem on Mac OS Snow Leopard 10.6.3, but I still get an error "no such file to load -- pg"

I'm using Rails 3.0.1. I installed the native pg gem for postgresql with this command: $ export ARCHFLAGS='-arch i386' $ sudo gem install pg -- --with-pg-config=/Library/PostgreSQL/8.4/bin/pg_config When I run the gem list, I can see that pg 0.9 is installed. However when I set the postgres database adaptor and re-run the server...

Rubygems 1.3.7 setup error

I am setting up a server and decided to install the latest Ruby from source. I downloaded ruby-1.9.2-p0.tar.gz and installed that with no problems. Next up, was installing Rubygems. Using the 1.3.7 I downloaded from Rubyforge I ran setup.rb and got the error: ./setup.rb: 13: Syntax error: "(" unexpected (expecting "then") This is all...

how to add gem dependency with :path and :branch

I am working on a rails gem that has dependency on the following gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' How can I add this in the gem spec as a dependency? Specifically I need to specifiy the path and branch in the dependency. ...

In Rails, what is the difference between installing a gem, and then rake gems:freeze into the vendor folder vs installing it as a plugin?

Both methods put the gem into the project's folder to be a self-contained project. Is there advantage / disadvantage of these methods or one better than the other method? (the project is a Rails 2.2 project, so can't use Bundler) ...

In Rails, if "gem install ___" installs 6 gems total, will installing as plugin require installing the other 5 gems manually?

If installing a gem using gem install ______ actually install 6 gems, because of the dependencies, then if the gem is installed as plugin by script/plugin install git://github.com/author/____.git or script/plugin install _____ then we to manually install the gem it depends on? Does it matter if it is the later form, where it d...

In Rails 2.x, what is the difference between "rake gems:unpack" and "rake gems:freeze"?

It seems that both methods can freeze a gem into the vendor directory, but rake gems:unpack requires the gem to be listed in config/environment.rb as config.gem '<name of the gem>' before the rake is done. On the other hand, rake gems:freeze requires installing the gem gemsonrails first, and uses the syntax rake gems:freeze GEM=haml and...

In Ruby / Rails, why "gem server" says haml depends on maruku and yard but "gem list" doesn't show these gems?

If I run gem server and go to localhost:8808, one of the entry is haml and it says it depends on maruku and yard haml 3.0.22 [rdoc] [www] - depends on maruku, yard. An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine. Executables are css2sass, haml, html2haml, sass, sass-convert. b...

In Rails, can "script/plugin install ___" install things from rubygems.org?

If for some reason, the project cannot use bundler and gem install, we can use script/plugin install git://github/<author name>/ ... /foo.git but what if it is not on github and for sure it is a ruby gem, can script/plugin install install from the rubygems.org which is the official gems place? (that's the one gem install uses, isn't ...