This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Currently Working
Not sure what happened.
Built gemfile.lock on a linux box and moved it over. Had missing things, ran bundle install, worked.
Bundle is ignoring my inclusion of the "pg" gem in my Gemfile. Installing pg through gem install pg works fine, and it shows up when I use gem list --local.
Gemfile:
source 'http://rubygems.org'
gem 'rails'
gem 'pg'
bundle install (no pg):
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.2)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.2)
Using tilt (1.3.7)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.5.3)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using json (1.7.7)
Using rack-ssl (1.3.3)
Using bundler (1.3.5)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using rails (3.2.13)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
bundle show pg:
Could not find gem 'pg'.
Did you mean pg?
gem list --local (pg exists):
*** LOCAL GEMS ***
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13, 3.1.11)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13, 3.1.11)
arel (3.0.2)
bigdecimal (1.2.0)
builder (3.0.4)
bundler (1.3.5)
erubis (2.7.0)
hike (1.2.2)
i18n (0.6.4, 0.6.1)
io-console (0.4.2)
journey (1.0.4)
json (1.7.7)
mail (2.5.3)
mime-types (1.23)
minitest (4.3.2)
multi_json (1.7.2)
pg (0.15.1 x64-mingw32)
polyglot (0.3.3)
psych (2.0.0)
rack (1.4.5, 1.3.10)
rack-cache (1.2)
rack-mount (0.8.3)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
rake (10.0.4, 0.9.6)
rdoc (4.0.0, 3.12.2)
rubygems-update (2.0.3)
sprockets (2.2.2, 2.0.4)
test-unit (2.0.0.0)
thor (0.18.1)
tilt (1.3.7)
treetop (1.4.12)
tzinfo (0.3.37)
Also, if I try to run rails s, rake db:create, etc., I get:
rake aborted!
Please install the postgresql adapter: `gem install activerecord-postgresql-adap
ter` (pg is not part of the bundle. Add it to Gemfile.)
Tasks: TOP => db:create
(See full trace by running task with --trace)
Using:
Windows 7, 64-bit
Rails 3.2.13
ruby 2.0.0p0 (2013-02-24) [x64-mingw32]
Bundler version 1.3.5
Try deleting your "gemfile.lock" and then re-running bundle install?
Try to remove Gemfile.lock and run bundle check to see if the dependencies listed in Gemfile are satisfied by currently installed gems.
Related
I cannot seem to launch any debugging session from within Aptana Studio 3. I click "Debug Server" but nothing shows up anywhere and nothing happens.
I have found a couple various posts, none of which actually solved my problem. I'm a noob when it comes to ruby on rails development (I'm a seasoned Visual Studio user, however) so I imagine there's something I'm doing that's dumb.
Here is my setup:
1) $ rails -v Rails 4.1.0
2) $ ruby -v
ruby -v
ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
3) DevKit is installed
4) ruby-debug-ide is installed:
$ gem list
* LOCAL GEMS *
actionmailer (4.1.0)
actionpack (4.1.0)
actionview (4.1.0)
activemodel (4.1.0)
activerecord (4.1.0)
activesupport (4.1.0)
arel (5.0.1.20140414130214)
bigdecimal (1.2.0)
builder (3.2.2)
bundler (1.6.2)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
debase (0.0.9)
debugger-ruby_core_source (1.3.2)
erubis (2.7.0)
execjs (2.0.2)
hike (1.2.3)
i18n (0.6.9)
io-console (0.4.2)
jbuilder (2.0.7)
jquery-rails (3.1.0)
json (1.8.1, 1.7.7)
mail (2.5.4)
mime-types (1.25.1)
minitest (5.3.3, 4.3.2)
multi_json (1.9.3)
polyglot (0.3.4)
psych (2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.1.0)
railties (4.1.0)
rake (10.3.1, 0.9.6)
rbx-require-relative (0.0.9)
rdoc (4.1.1, 4.0.0)
ruby-debug-ide (0.4.22)
sass (3.2.19)
sass-rails (4.0.3)
sdoc (0.4.0)
sprockets (2.12.1, 2.11.0)
sprockets-rails (2.1.3)
sqlite3 (1.3.9 x64-mingw32)
test-unit (2.0.0.0)
thor (0.19.1)
thread_safe (0.3.3)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (2.2.2)
tzinfo (1.1.0)
uglifier (2.5.0)
3) Aptana Studio 3
4) Windows 7, 64-bit.
I made a quick YouTube video of me showing the issue as well as showing some locally installed gems, etc. Perhaps this reveal what I'm doing wrong.
http://www.youtube.com/watch?v=5QcK_cKYxCs&feature=youtu.be
Thanks in advance.
Rails 4.0 project not starting through aptana studio 3
Ooops. It was found already. The problem was my error was different (I was seeing no output); but the resolution was the same.
Basically just create a Script folder in the project directory and copy over the "rails" executable (found within your bin folder) to this directory.
I need the rails_12factor gem to install into my gem file for my app in order to successfully deploy to Heroku. I was able to to install the gem (gem install rails_12factor) and if I run gem list it shows that it is installed locally. How do I get that particular gem to be installed in my bundle? Not sure if I am asking this right but as you can see below it is installed locally as I stated.
4.0.0)
actionpack (4.0.1, 4.0.0)
activemodel (4.0.1, 4.0.0)
activerecord (4.0.1, 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.1, 4.0.0)
addressable (2.3.5)
arel (4.0.1)
atomic (1.1.14)
bigdecimal (1.2.3, 1.2.0)
builder (3.2.2, 3.1.4)
bundler (1.3.5)
coffee-rails (4.0.1)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
erubis (2.7.0)
excon (0.30.0, 0.25.3)
execjs (2.0.2)
heroku-api (0.3.15)
hike (1.2.3)
i18n (0.6.5)
io-console (0.4.2)
jbuilder (1.5.2)
jquery-rails (3.0.4)
json (1.8.1, 1.7.7)
launchy (2.4.2, 2.4.1)
mail (2.5.4)
mime-types (2.0, 1.25.1, 1.25)
minitest (5.0.8, 4.7.5, 4.3.2)
multi_json (1.8.2)
mysql2 (0.3.14)
netrc (0.7.7)
pg (0.17.0 x86-mingw32)
polyglot (0.3.3)
psych (2.0.2, 2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.1, 4.0.0)
**rails_12factor (0.0.2)
rails_serve_static_assets (0.0.1)
rails_stdout_logging (0.0.3)**
railties (4.0.1, 4.0.0)
rake (10.1.0, 0.9.6)
rdoc (4.0.1, 4.0.0, 3.12.2)
rest-client (1.6.7)
rubygems-update (2.1.11)
rubyzip (1.1.0)
sass (3.2.12)
sass-rails (4.0.1)
sdoc (0.3.20)
sprockets (2.10.1)
sprockets-rails (2.0.1)
sqlite3 (1.3.8 x86-mingw32)
test-unit (2.5.5, 2.0.0.0)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (1.3.1)
tzinfo (1.1.0, 0.3.38)
uglifier (2.3.1)
However it is not in my bundle below:
c:\dev\project2>bundle
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using mysql2 (0.3.14)
Using bundler (1.3.5)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rdoc (3.12.2)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.1)
Using uglifier (2.3.1)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
I am able to find rails_12factor-0.02.gemspec in this path C:\Users\vern.gem\specs\rubygems.org%443\quick\Marshal.4.8
I notice it's a gem spec file however I do not know how to get it installed as part of my gem bundle for my project
Below is what I get when I push to heroku:
c:\dev\project2>git push heroku master
Enter passphrase for key '/c/Users/vern/.ssh/id_rsa':
Counting objects: 87, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (76/76), done.
Writing objects: 100% (87/87), 16.24 KiB | 0 bytes/s, done.
Total 87 (delta 20), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bund
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Installing activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Installing actionpack (4.0.0)
Installing mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Installing actionmailer (4.0.0)
Installing activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Installing activerecord (4.0.0)
Using bundler (1.3.2)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Installing railties (4.0.0)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Installing mysql2 (0.3.14)
Using tilt (1.4.1)
Installing sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Installing rails (4.0.0)
Using rdoc (3.12.2)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.1)
Using uglifier (2.3.1)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (17.19s)
Cleaning up the bundler cache.
Removing sass-rails (3.2.6)
Removing kgio (2.8.1)
Removing tzinfo (0.3.37)
Removing jbuilder (1.5.1)
Removing raindrops (0.12.0)
Removing activerecord (3.2.14)
Removing builder (3.0.4)
Removing rails (3.2.14)
Removing activesupport (3.2.14)
Removing actionmailer (3.2.14)
Removing bcrypt-ruby (3.0.1)
Removing unicorn (4.6.3)
Removing mime-types (1.25)
Removing rails_stdout_logging (0.0.2)
Removing rails_stdout_logging (0.0.3)
Removing sprockets (2.2.2)
Removing execjs (2.0.1)
Removing json (1.8.0)
Removing rack-ssl (1.3.3)
Removing rack-cache (1.2)
Removing puma (2.6.0)
Removing journey (1.0.4)
Removing activesupport (4.0.1)
Removing activemodel (4.0.1)
Removing activemodel (3.2.14)
Removing sass (3.2.10)
Removing nokogiri (1.6.0)
Removing multi_json (1.8.0)
Removing actionpack (4.0.1)
Removing uglifier (2.2.1)
Removing railties (3.2.14)
Removing rails (4.0.1)
Removing arel (3.0.2)
Removing rails_serve_static_assets (0.0.1)
Removing rails_12factor (0.0.2)
Removing activeresource (3.2.14)
Removing bcrypt-ruby (3.1.2)
Removing actionmailer (4.0.1)
Removing sprockets (2.10.0)
Removing coffee-rails (3.2.2)
Removing mini_portile (0.5.1)
Removing activerecord (4.0.1)
Removing pg (0.17.0)
Removing rack (1.4.5)
Removing actionpack (3.2.14)
Removing railties (4.0.1)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-11-29T23:11:27.829492 #1297] INFO -- : Writing /tmp/build_55e1f130-6b0f-4106-871a-45
lic/assets/application-fee71c53d09a01d2ff7501990d2c3307.js
I, [2013-11-29T23:11:27.856160 #1297] INFO -- : Writing /tmp/build_55e1f130-6b0f-4106-871a-45
lic/assets/application-96a552b03ca0e7ebcbfc44b89ca097a6.css
Asset precompilation completed (7.77s)
Cleaning assets
-----> WARNINGS:
Include 'rails_12factor' gem to enable all platform features
See https://devcenter.heroku.com/articles/rails-integration-gems for more information.
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
-----> Compiled slug size: 21.0MB
-----> Launching... done, v5
http://fast-lake-6950.herokuapp.com deployed to Heroku
To git#heroku.com:fast-lake-6950.git
* [new branch] master -> master
c:\dev\project2>
As you can see it removes the rails_12 factor gem so I am not quite sure what to do. I also get the warning
WARNINGS:
Include 'rails_12factor' gem to enable all platform features
See https://devcenter.heroku.com/articles/rails-integration-gems for more information. Perhaps there is a solution that I did not realize any help would be appreciated. Thanks
Ruby Version 2.0.0
Rails 4.0.0
Windows 7 64bit
Trying putting rails_12factor gem only in production
gem 'rails_12factor', group: :production
So this will not install the gem in your development environment but will do it in your production environment (when you push to heroku).
Hope this helps
Output of bundle install:
Using rake (10.1.0)
Using i18n (0.6.4)
Using multi_json (1.7.8)
Using activesupport (3.2.7)
Using builder (3.0.4)
Using activemodel (3.2.7)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.1.3)
Using actionpack (3.2.7)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.4.4)
Using actionmailer (3.2.7)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.7)
Using activeresource (3.2.7)
Using coffee-script-source (1.6.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.7)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.4)
Using bundler (1.1.5)
Using rails (3.2.7)
Using sass (3.2.10)
Using sass-rails (3.2.6)
Using sqlite3 (1.3.7)
Using uglifier (2.1.2)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
MacBook:tickets michael$
MacBook:tickets michael$ rake db:migration
Could not find i18n-0.6.4 in any of the sources
Run `bundle install` to install missing gems.
What am I missing?
Use bundle exec rake db:migrate
Have you tried
bundle install again.
And then do rake db:migrate
Try running bundle exec bundle (yes, bundle two times).
I spent the past couple of hours, in addition to scouring Stack Overflow, trying to find a solution to this problem, but I haven't been able to solve anything when runningbundle install.
Here is the error message:
Alexander-MacBook-Pro:HealthApp Alex$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies......
Using rake (10.0.3)
Using i18n (0.6.4)
Using multi_json (1.6.1)
Using activesupport (3.2.11)
Using builder (3.0.4)
Using activemodel (3.2.11)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.4)
Using sprockets (2.2.2)
Using actionpack (3.2.11)
Using mime-types (1.21)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.11)
Using arel (3.0.2)
Using tzinfo (0.3.36)
Using activerecord (3.2.11)
Using activeresource (3.2.11)
Using bcrypt-ruby (3.0.1)
Using sass (3.2.6)
Using bootstrap-sass (2.3.0.1)
Using bundler (1.3.5)
Using cancan (1.6.9)
Using coffee-script-source (1.6.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.17.0)
Using railties (3.2.11)
Using coffee-rails (3.2.2)
Using commonjs (0.2.6)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.2.3)
Using sass-rails (3.2.6)
Using font-awesome-sass-rails (3.0.2.2)
Using haml (4.0.0)
Using jquery-rails (2.2.1)
Using jquery-ui-rails (3.0.1)
Using kaminari (0.14.1)
Using less (2.2.2)
Using less-rails (2.2.6)
Installing libv8 (3.11.8.13)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Alex/.rvm/rubies/jruby-1.7.4/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /Users/Alex/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1054
(root) at /Users/Alex/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
(root) at extconf.rb:1
Gem files will remain installed in /Users/Alex/.rvm/gems/jruby-1.7.4/gems/libv8-3.11.8.13 for inspection.
Results logged to /Users/Alex/.rvm/gems/jruby-1.7.4/gems/libv8-3.11.8.13/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.11.8.13), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling.
Running gem install libv8 -v '3.11.8.13' doesn't help much.
Add the following to your ~/.jrubyrc (create it if it does not exist):
cext.enabled=true
Then run the bundle install command again.
Regarding Ruby on rails in windows 7. after installing the railsinstaller, I am facing lot of issue and not sure what the cause is?
PS: I posted this question on stack-overflow, somewhere else while looking for answer of similar issue, where a gentleman suggest me to put my question on separate thread. And here it goes.
The windows 7 is behind proxy and websense. I run all applications as administrator. I wonder if I left any site/blog for the issues I am facing. Though it is my first question here on ROR in stack-overflow after I exhausted options of reading and searching to resolve it.
I am even not able to do the
$ gem install rubygems-update
though I the path is correct and showing
c:\>gem sources
display
http://rubygems.org.
as the only source.
I am still getting the below error for the even simple database creation. That was given in root directory of sample rails project namely SampleROR.
Any help please.
$ rake db:create
The i18n gem is not available. Please add it to your Gemfile and run bundle install
rake aborted!
cannot load such file -- i18n
c:/RailsInstaller/DevKit/home/anil-ku/SampleROR/config/application.rb:3:in `require'
c:/RailsInstaller/DevKit/home/anil-ku/SampleROR/config/application.rb:3:in `<top (required)>'
c:/RailsInstaller/DevKit/home/anil-ku/SampleROR/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
Note that I am not able to do
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem update --system
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
with latest version of rails, installed using railsinstaller one click for windows.
I did the bundle install after this, that run successfully but the issue didn't disappear.
anil-ku#hostname ~/SampleROR
$ bundle install
Using rake (10.0.2)
**Using i18n (0.6.1)**
Using multi_json (1.4.0)
Using activesupport (3.2.1)
Using builder (3.0.4)
Using activemodel (3.2.1)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.1)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.1)
Using arel (3.0.2)
Using tzinfo (0.3.35)
Using activerecord (3.2.1)
Using activeresource (3.2.1)
Using bundler (1.0.22)
Using coffee-script-source (1.4.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.5)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.1)
Using coffee-rails (3.2.2)
Using jquery-rails (2.1.4)
Using rails (3.2.1)
Using sass (3.2.3)
Using sass-rails (3.2.5)
Using sqlite3 (1.3.6)
Using uglifier (1.3.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.
anil-ku#DS-7071BC8FD6C4 ~/SampleROR
**$ bundle show i18n**
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/i18n-0.6.1
when I list
$gem list -local
actionmailer (3.2.1)
actionpack (3.2.1)
activemodel (3.2.9, 3.2.1)
activerecord (3.2.1)
activerecord-sqlserver-adapter (3.2.1)
activeresource (3.2.1)
activesupport (3.2.9, 3.2.1)
archive-tar-minitar (0.5.2)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.0.4, 3.0.0)
bundler (1.0.22)
cgi_multipart_eof_fix (2.5.0)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0, 1.2.0)
columnize (0.3.6)
daemons (1.1.9)
debugger-linecache (1.1.2)
debugger-ruby_core_source (1.1.5)
deprecated (3.0.1, 2.0.1)
erubis (2.7.0)
execjs (1.4.0, 1.3.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
hike (1.2.1)
hoe (3.3.1)
**i18n (0.6.1, 0.6.0)**
io-console (0.3)
journey (1.0.4, 1.0.2)
jquery-rails (2.1.4)
json (1.7.5, 1.5.4)
mail (2.4.4, 2.4.1)
mime-types (1.19, 1.17.2)
minitest (4.3.3, 2.5.1)
multi_json (1.4.0, 1.3.7, 1.1.0)
mysql2 (0.3.11)
permutation (0.1.8)
pg (0.13.1 x86-mingw32)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2, 1.1)
rack-ssl (1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.1)
railties (3.2.1)
rake (10.0.2, 0.9.2.2)
rake-compiler (0.8.1)
rb-readline (0.4.2)
rbx-require-relative (0.0.9)
rdoc (3.12, 3.9.4)
ruby_core_source (0.1.5)
rubyzip (0.9.6.1)
sass (3.2.3)
sass-rails (3.2.5)
sdoc (0.3.20)
sprockets (2.1.3, 2.1.2)
sqlite3 (1.3.6 x86-mingw32, 1.3.5 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.14.6)
tilt (1.3.3)
tiny_tds (0.5.1 x86-mingw32)
treetop (1.4.12, 1.4.10)
tzinfo (0.3.35, 0.3.31)
uglifier (1.3.0)
It shows i18n installed. Not sure what is the issue.
$ rails --version
Rails 3.2.1
also, downloading gem package and run it using ruby setup.rb also didn't work
C:\RailsInstaller\rubygems>ruby setup.rb
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems.rb:480:in `find_files': undefined method `map' for Gem::Specification:Class (NoMethodError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems.rb:1085:in `load_plugins'
from C:/RailsInstaller/rubygems/lib/rubygems/gem_runner.rb:84:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from setup.rb:25:in `<main>'
C:\RailsInstaller\rubygems>
My gem version is
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem -v
1.8.16
I tried to download gem manually from site (from http://rubygems.org/gems/) and installed few of them. So able to install some while for most other gems it give error like below
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel_services
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel_service
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel_service-0.4.0.gem
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel-1.1.5.gem
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install mongrel2-0.34.0.gem
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install win32-api-1.4.8.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed win32-api-1.4.8
1 gem installed
Installing ri documentation for win32-api-1.4.8...
Installing RDoc documentation for win32-api-1.4.8...
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem install windows-api-0.4.2.gem
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
Finally my environment details for gem is
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.16
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby1.9.3/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1
- C:/Users/anil-ku/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>
I note that there is nothing like ruby folder under
C:/Users/anil-ku/.gem/ruby/1.9.1
the only thing under the above one is a folder named specs that looks irrelevant.
Also the path environment is windows is
C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems>echo %PATH%
C:\RailsInstaller\Ruby1.9.3\bin;C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\bin;C:\RailsInstaller\DevKit\bin;C:\RailsInstaller\Git\c
md;C:\RailsInstaller\Ruby1.9.3\bin;C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\bin;C:\RailsInstaller\DevKit\bin;C:\RailsInstaller\Gi
t\cmd;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Syste
m32\WindowsPowerShell\v1.0\;;C:\Program Files\cvsnt;C:\Program Files\TortoiseSVN\bin;d:\RailsInstaller\Git\cmd;d:\RailsInstaller\Ruby1.9
.3\bin
Any help for how to proceed for simple database connection with above and/or how to install gem fully?
You need to set your proxy settings for rubygems. For example set the Environment Variable like so:
SET HTTP_PROXY=http://wolfbyte:secret#pigsy:8080
From https://stackoverflow.com/a/4431/192221