Trying to install a gem, but it can't find the headers, despite specifying them:
sudo gem install nokogiri -- --with-xml2-lib=/usr/local/lib --with-xml2-include=/usr/local/include/libxml2 --with-xml2-include=/usr/local/include/libxml2 --with-xslt-include=/usr/local/include/libxslt
Building native extensions. This could take a while.....
When I type:
gem env
on my Windows system, it produces this info:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/bin
- RUBYGEMS PLATF...
I have mysql and apache running through XAMPP on my Mac machine (10.6.4). I usually do PHP development with this setup butnow I want to start out with Ruby on Rails. Unfortunately I cannot get mysql to work with RoR. I start the mysql Server with XAMPP and when I do "rake db:migrate" I get this output:!!! The bundled mysql.rb driver has ...
Hi there, the photo display sript is below:
<% if user.image %>
<%= image_tag user.image.url('100x20') %>
<% end %>
How can I only showing the right side of the photo by 20 x 20 on the web. it mean cut off the 80% on the left show only 20% of the whole picture.
Many thanks!
...
Hello,
With Ruby you can do gem install from the command line to install a module...even if it is not on your machine.
Can you do that with python. Does someone know of a module?
Seth
...
This might sound as a strange thing to do. Is there a bundler way to extract the bundled gems (from a Gemfile or from .bundle) and install them as system gems outside of the bundler context?
Something like bundle package, but instead of caching them in vendor/cache, installs them as system gems.
...
When trying to install Bundler 0.8.1 on Ubuntu machine, it install fine but the executable "bundle" is no where to be seen. Other gems install successfully, including their executables.
using: "gem install bundler --version=0.8.1"
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-li...
Hello,
I'm having a problem with my rails application.
When I type
script/server
I get the following error:
/Users/admin/.gem/ruby/1.8/gems/activesupport-2.3.5/
lib/active_support/multibyte/unicode_database.rb:37:
warning: getc is obsolete; use STDIN.getc instead
This causes the application to hang and not respond.
How can I...
Hi,
I am attempting to deploy my app to heroku via a windows 7 machine.
I've made it as far as git push heroku master without running into any major issues but when I try to rake the migrations i get the following error
$ heroku rake db:migrate --trace
rake aborted!
No such file or directory - /disk1/tmp/13403_23723015091620/.bundle...
I have a rails app which I develop on Windows with Rails 2.3.5, using sqlite3 as my database engine, and the internal Mongrel server as my webserver.
I deploy this app to a hosted Linux machine running Rails 2.1.0, using Postgres as my database, and Apache (calling dispatch.cgi) as my webserver. I do not have permissions to update the n...
Rails is collection of several gems, all who's source resides in the rails repository, aka active_record has its own gemspec but is at github.com/rails/rails/active_record. While I use this stuff all the time, I dont really know the details of creating my own gems using this strategy. I have a project for work where certain codebases wil...
I've trying to get the flickr-fu gem to search correctly only for commercial friendly photos but with no luck. It seems to ignore the parameter altogether.
photos = flickr.photos.search(:text => "anything",
:tags => 'architecture',
#:license_id => '4,6,5',
...
What technique does a ruby script use to find your libraries / requires on Windows.
I have an install of Ruby 1.8.7 on Windows to the path C:\Ruby187 and non of my "requires" work.
For example, just a test file
require "rack"
gives no such file to load -- rack (LoadError)
gem list rack is there
...
I would like to develop web services using ruby on rails. I have instantRails 2.0 on my laptop.
Whenever I try to install actionwebservice using
"gem install actionwebservice"
I get the following error
ERROR:While executing gem ---
HTTP Response 302 fetching htt://gems.rubyforge.org/yaml.
How do I do away with this error?
...
I can't seem to install the MySQL gem. I'm using this command:
ARCHFLAGS="-arch i386" gem install mysql --
--with-mysql-dir=/usr/local/mysql/
--with-mysql-config=/usr/local/mysql-5.1.50-osx10.6-x86/bin/mysql_config
The errors that I am getting seem to indicate that I have no headers and etc. Not sure where I can get those. I'm on Sn...
Im getting this error when I try and make an object. Here is my routine:
service = S3::Service.new(
:access_key_id => S3_ACCESS_KEY,
:secret_access_key => S3_SECRET
)
puts "connection established with s3"
puts "finding bucket"
bucket = service.buckets.find("test")
puts "building object"
object = bucket.objects.build("jso...
How do you update rubygems under rvm when ree is your default vm (on Snow Leopard)? I am doing:
$ rvm ree gem update --system
This results in things looking like everything went fine:
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
RubyGems...
Hi to all, i have:
ruby1.9.1-full
rubygems1.9.1
installed, these are the only versions i have installed.
I am not able to require any gems with the following syntax:
require 'rubygems'
require 'gem_name'
I get this error:
LoadError: no such file to load -- active_record
from (irb):2:in `require'
from (irb):2
from /usr/bin/irb:1...
I am trying to customize a gem called "gem_name" from github. I forked the project and cloned it to a directory.
I changed s.name in the "spec = Gem::Specification.new do |s|" block in the rake file to a custom gem name "gem_name_myname".
I also changed a line in the rails/init.rb file called "require gem_name" to require "gem_name_my...
I tried rake gems:unpack, it worked for most gems, but facebooker gem doesn't get frozen.
How to freeze it?
Thanks
...