By accident I ran rvm gemset empty default.
Can someone list all gems from gemset default for ruby-2.0.0-p247 so I can reinstall them manually?
Thanks!
Don't worry, it's still possible to restore all your gems:
#!/usr/bin/env bash
CURRENT_GEMSET=$( rvm current )
CACHE_FOLDER=~/.rvm/gems/$CURRENT_GEMSET/cache
CACHED_GEMS=$CACHE_FOLDER/*.gem
for gem_file in $CACHED_GEMS
do
GEM_FILES=$GEM_FILES' '$gem_file
done
gem install $GEM_FILES
You may take a look at ~/.rvm/gems/$( rvm current )/cache folder first. All gems should be there.
Edit:
rvm gemset empty
Removes all the installed gems for gemset. But gems are still in ~/.rvm/gems/$( rvm current )/cache folder(e.g. ~/.rvm/gems/ruby-2.0.0-p247/cache, ~/.rvm/gems/jruby-1.7.3#my_gemset/cache) and you are still able to install them.
A bit of explanations regarding script:
rvm current Print the current Ruby version and the name of any gemset being used(from rvm usage current). You may invoke rvm gemset use first in order to choose gemset you want to restore.
~/.rvm/gems/$( rvm current )/cache is a cache folder for current gemset and is the same as $GEM_HOME/cache.
~/.rvm/gems/$( rvm current )/cache/*.gem is a regexp for gems in cache folder.
Loop through the file names and concatenate them into a single string
for gem_file in $CACHED_GEMS
do
GEM_FILES=$gem_file' '$GEM_FILES
done
gem install $GEM_FILES reinstalls you gems.
Do you mean this?
alexandr#alexandr-2pcdesktop:~/RailsWork/Achivity$ ruby -v
ruby 2.0.0dev (2013-01-07 trunk 38733) [i686-linux]
alexandr#alexandr-2pcdesktop:~/RailsWork/Achivity$ rvm #global do gem list
*** LOCAL GEMS ***
bundler (1.3.5)
bundler-unload (1.0.1)
rake (10.1.0)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
=====Updated======
alexandr#alexandr-2pcdesktop:~/RailsWork/Achivity$ rvm default do gem list
*** LOCAL GEMS ***
actionmailer (4.0.0, 3.2.13)
actionpack (4.0.0, 3.2.13)
actionpack-action_caching (1.0.0)
actionpack-page_caching (1.0.0)
activemodel (4.0.0, 3.2.13)
activerecord (4.0.0, 3.2.13)
activerecord-deprecated_finders (1.0.3)
activerecord-postgresql-adapter (0.0.1)
activeresource (3.2.13)
activesupport (4.0.0, 3.2.13)
arel (4.0.0, 3.0.2)
atomic (1.1.10)
bcrypt-ruby (3.0.1)
builder (3.1.4, 3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
capybara (2.1.0)
childprocess (0.3.9)
climate_control (0.0.3)
cocaine (0.5.1)
coffee-rails (4.0.0, 3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.3, 1.6.2)
commonjs (0.2.6)
database_cleaner (1.0.1)
devise (3.0.0.rc, 2.2.4, 1.5.4)
diff-lcs (1.2.4)
erubis (2.7.0)
execjs (1.4.0)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
ffi (1.9.0)
hike (1.2.3)
i18n (0.6.4, 0.6.1)
jar_wrapper (0.1.7)
jbuilder (1.4.2)
journey (1.0.4)
jquery-rails (3.0.2, 3.0.1)
json (1.8.0)
less (2.3.2)
less-rails (2.3.3)
libv8 (3.11.8.17 x86-linux)
mail (2.5.4)
mime-types (1.23)
mini_portile (0.5.0)
minitest (4.7.5)
multi_json (1.7.7)
mysql2 (0.3.11)
nokogiri (1.6.0)
orm_adapter (0.4.0, 0.0.7)
paperclip (3.4.2)
pg (0.15.1)
polyglot (0.3.3)
protected_attributes (1.0.3)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (4.0.0)
rails-observers (0.1.1)
railties (4.0.0, 3.2.13)
rake (10.1.0)
rdoc (3.12.2)
ref (1.0.5)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.2)
rubygems-bundler (1.2.0)
rubyzip (0.9.9)
rvm (1.11.3.8)
sass (3.2.9)
sass-rails (4.0.0)
sdoc (0.3.20)
selenium (0.2.10)
selenium-webdriver (2.33.0)
shoulda-matchers (2.2.0)
sprockets (2.10.0, 2.2.2)
sprockets-rails (2.0.0)
sqlite3 (1.3.7)
therubyracer (0.11.4)
thor (0.18.1)
thread_safe (0.1.0)
tilt (1.4.1)
treetop (1.4.14)
turbolinks (1.2.0)
twitter-bootstrap-rails (2.2.7)
tzinfo (0.3.37)
uglifier (2.1.1)
warden (1.2.1)
websocket (1.0.7)
xpath (2.0.0)
zip (2.0.2)
But all of them are from Gemfile.
I am working on a CentOs 5.5. I have never worked with ruby or rails before, but recently I had to upgrade a redmine 1.1.0 to version 2.3.1 following this tutorial. The update process went smoothly, but once I try to start WEBrick to host the application, with the command
ruby /var/www/redmine/script/server webrick -d -e production -p 8080 (port 80 is already being listened by an apache)
I get the following error:
/var/www/redmine/script/server:3:in `require': no such file to load -- commands/server (LoadError)
from /var/www/redmine/script/server:3:in `<main>'
The contents in '/var/www/redmine/script/server' are:
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/server'
My ruby version, which is compatible with this redmine version, is 1.9.2. I believe I have installed every required gem in my Gemfile. I don't know why ruby doesn't find this file, and so I tried replacing the last require with what I suspected was the filepath of the desired file.
require '/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb'
It didn't seem to work, though. Despite the fact the error was gone, I still got an "Service Unavailable" error from my browser.
Just for the record, the output as shown by the command 'gem env' is:
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.5
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i686-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
The output of 'gem list' is:
actionmailer (3.2.13, 3.2.0)
actionpack (3.2.13, 3.2.0)
activemodel (3.2.13, 3.2.0)
activerecord (3.2.13, 3.2.0)
activeresource (3.2.13, 3.2.0)
activesupport (3.2.13, 3.2.0)
arel (3.0.2)
atomic (1.1.4)
bourne (1.1.2)
builder (3.0.4, 3.0.0)
bundler (1.3.5)
capybara (2.0.3)
childprocess (0.3.9)
coderay (1.0.9)
erubis (2.7.0)
fastercsv (1.5.5)
ffi (1.9.0)
hike (1.2.3)
i18n (0.6.4, 0.6.1)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.8.0)
mail (2.5.4, 2.4.4)
metaclass (0.0.1)
mime-types (1.23)
mini_portile (0.5.1)
minitest (4.7.5, 1.6.0)
mocha (0.13.3, 0.10.5)
multi_json (1.7.7)
mysql (2.8.1)
net-ldap (0.3.1)
nokogiri (1.6.0)
pg (0.11.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 3.2.0)
railties (3.2.13, 3.2.0)
rake (10.1.0, 0.8.7)
rake-compiler (0.8.3)
rdoc (3.12.2, 2.5.8)
rmagick (2.13.2)
ruby-openid (2.2.3, 2.1.8, 2.1.4)
rubygems-update (2.0.5)
rubyzip (0.9.9)
selenium-webdriver (2.33.0)
shoulda (3.5.0, 3.3.2)
shoulda-context (1.0.2)
shoulda-matchers (1.4.2)
sprockets (2.2.2, 2.1.3)
sqlite3 (1.3.7)
thor (0.18.1, 0.14.6)
thread_safe (0.1.0)
tilt (1.4.1)
treetop (1.4.14)
tzinfo (0.3.37)
websocket (1.0.7)
xpath (1.0.0)
yard (0.8.6.2)
Would someone please give me a hint of the cause of the error or how to fix it?
If I'm not mistaken script/server is rails 2.x.x way to start the rails application.
If I look at your bundler, it now uses rails 3.x and the way to start it suppose to be with rails server
I verify this by looking into
http://www.redmine.org/projects/redmine/repository/show/tags/2.3.1/script
there is no server executable. but there is rails executable there
Check if thre is rails executable on the same folder.
if there is, you should be able to run rails with:
$ /var/www/redmine/script/rails server
This is a pretty long story... but it basically boils down to the same issue that everyone else seems to have had, except I can't seem to resolve it.
I am using EC2 ami-3d4ff254 which is Ubuntu 12.04.1 LTS x64. I am deploying Githubs Janky application which requires Ruby 1.93, and is a Sinatra app.
My basic install procedure of dependencies in Ubuntu is
sudo apt-get -y update
sudo apt-get -y install curl ssh git-core git build-essential zlib1g zlib1g-dev libyaml-dev libxml2-dev libc6-dev autoconf automake libtool make postgresql postgresql-client postgresql-contrib libpq-dev ruby1.9.3 ruby1.9.1-dev rubygems1.9.1 ruby-bundler openssl
I have also followed directions here to ensure 1.9.3 is the default.
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.3 400 \
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz \
/usr/share/man/man1/ruby1.9.3.1.gz \
--slave /usr/bin/ri ri /usr/bin/ri1.9.3 \
--slave /usr/bin/irb irb /usr/bin/irb1.9.3 \
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.3 \
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.3 400
sudo gem install rubygems-update
Thats the basic setup of my environment.
Cmd line verification of tool versions
ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
gem -v
1.8.11
openssl version
OpenSSL 1.0.1 14 Mar 2012
Here are the contents of Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
activemodel (3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
activerecord (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activesupport (3.2.8)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.3.2)
arel (3.0.2)
broach (0.2.1)
json (~> 1.4)
nap (~> 0.3)
builder (3.0.4)
daemons (1.1.9)
eventmachine (1.0.0)
faraday (0.8.4)
multipart-post (~> 1.1)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
hashie (1.2.0)
hipchat (0.6.1)
httparty
httparty
httparty (0.9.0)
multi_json (~> 1.0)
multi_xml
i18n (0.6.1)
janky (0.9.13)
activerecord (~> 3.2.0)
broach (~> 0.2)
mustache (~> 0.11)
rake (~> 0.9.2)
replicate (~> 1.4)
sinatra (~> 1.3)
sinatra_auth_github (~> 0.7.0)
yajl-ruby (~> 1.1.0)
json (1.7.5)
mime-types (1.19)
multi_json (1.3.7)
multi_xml (0.5.1)
multipart-post (1.1.5)
mustache (0.99.4)
nap (0.5.1)
oauth2 (0.5.2)
faraday (~> 0.7)
multi_json (~> 1.0)
octokit (1.4.0)
addressable (~> 2.2)
faraday (~> 0.8)
faraday_middleware (~> 0.8)
hashie (~> 1.2)
multi_json (~> 1.3)
pg (0.14.1)
rack (1.4.1)
rack-protection (1.2.0)
rack
rake (0.9.2.2)
replicate (1.5)
rest-client (1.6.7)
mime-types (>= 1.16)
sinatra (1.3.3)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
sinatra_auth_github (0.7.0)
rest-client (~> 1.6.1)
sinatra (~> 1.0)
warden-github (~> 0.7.0)
yajl-ruby (~> 1.1)
thin (1.5.0)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
tilt (1.3.3)
tzinfo (0.3.35)
warden (1.2.1)
rack (>= 1.0)
warden-github (0.7.0)
json (~> 1.5)
oauth2 (~> 0.5.2)
octokit (~> 1.4.0)
rest-client (~> 1.6.1)
warden (~> 1.0)
yajl-ruby (~> 1.1)
yajl-ruby (1.1.0)
PLATFORMS
ruby
DEPENDENCIES
hipchat (~> 0.4)
janky (~> 0.9)
pg
thin
The app is being run under Upstart (as configured by Foreman)
Everything seems to be working totally fine with the app, aside from when it must make external connections to https sites. It dies with the dreaded OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed:
I've tried exporting a variable to the certs file
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
I've tried a few monkey patch suggestions.
I can also connect to the site at the cmd line with openssl, so this doesn't appear to be a system problem, just a Ruby problem (as far as I can tell)
openssl s_client -connect my.jenkins.site:443
This is a bit of a cross-post, but there are a lot more details for this saga on the Janky issue tracker, including the call stack of where Ruby blows up, etc.
I'm stumped if anyone has any great ideas! (I guess the next option is to try using RVM, which I know nothing about).
I think this boils down to 1.9.3p0.
As soon as I used RVM to install Ruby, and used a later version, my issues went away.
So the moral of the story here is, don't use the Ruby that ships with Ubunutu.
FWIW - If I had to do it all over again, I would use rbenv instead. It's much simpler. RVM is a bit of a bear to work with (especially through Capistrano deploys, where the deploy user isn't the same as the user running the app, etc, etc.)
I am on Dreamhost shared hosting. I installed RVM to run Ruby 1.9.2, and created a empty gemset to work with. I ran gemset empty command on it to assure it's really empty.
Strangely, if I run rvm gemset use MYGEMSET followed by running rvm do gem list, I get a long list of gems that Dreamhost offers out of the box.
[phantom]$ rvm do gem list
WARN: `rvm do gem list` is deprecated, use `rvm all do gem list` or `rvm 1.9.2 do gem list` instead.
*** LOCAL GEMS ***
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec]: /usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec:12: invalid multibyte char (UTF-8)
/usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec:12: syntax error, unexpected tIDENTIFIER, expecting keyword_end
...d heavily on Mauricio Fern?ndez's implementation in rpa-base...
... ^
/usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec:31: syntax error, unexpected tFLOAT, expecting keyword_end
...rsion) >= Gem::Version.new('1.2.0') then
... ^
/usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec:31: no .<digit> floating literal anymore; put 0 before dot
...sion) >= Gem::Version.new('1.2.0') then
... ^
/usr/lib/ruby/gems/1.8/specifications/archive-tar-minitar-0.5.1.gemspec:31: unterminated string meets end of file
abstract (1.0.0)
actionmailer (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
actionpack (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
activeresource (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
activesupport (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
acts_as_taggable (2.0.2, 1.0.4)
ajax_scaffold_generator (3.1.11, 2.2.1)
archive-tar-minitar (0.5.2)
arel (2.0.4)
auth_generator (2.0.1, 1.5.3)
Bloglines4R (0.1.0)
BlueCloth (1.0.0)
builder (2.1.2, 2.0.0)
bundler (1.0.7)
bunny (0.6.0)
camping (1.5.180, 1.5)
capistrano (2.5.1, 2.1.0, 1.4.1)
cgi_multipart_eof_fix (2.5.0)
chef (0.10.2)
classifier (1.3.1)
cmdparse (2.0.2, 2.0.0)
curb (0.1.4)
daemons (1.0.10, 1.0.9)
dbd-mysql (0.4.3)
dbi (0.4.3)
deprecated (2.0.1)
erubis (2.6.6)
eventmachine (0.12.10, 0.12.8)
facets (2.2.1, 1.8.54)
fastthread (1.0.7, 1.0.1)
feedtools (0.2.29, 0.2.28)
ferret (0.11.6, 0.11.4)
flickr (1.0.2)
gd2 (1.1.1, 1.1)
gem_plugin (0.2.3)
gen (0.41.0)
geoip (0.6.1)
gettext (1.90.0)
glue (0.41.0)
gnuplot (2.2)
gravtastic (2.0.0)
gruff (0.3.1)
haml (2.0.3)
highline (1.6.2)
hoe (2.7.0)
hpricot (0.6)
htmltools (1.10)
i18n (0.4.2, 0.4.1)
json (1.5.1)
localization_generator (1.0.8)
login_generator (1.2.2)
logstash-lite (0.2.20110206003603)
madeleine (0.7.3)
mail (2.2.15)
markaby (0.5)
mechanize (0.7.6)
metaid (1.0)
mime-types (1.16)
mini_magick (1.2.3)
mixlib-authentication (1.1.0)
mixlib-cli (1.1.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
mongrel (1.1.5, 1.1.4)
mysql (2.7)
needle (1.3.0)
net-scp (1.0.4)
net-sftp (2.0.5, 1.1.1)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.1, 1.0.1)
nitro (0.41.0)
nokogiri (1.4.4)
og (0.41.0)
ohai (0.6.0)
oniguruma (1.1.0)
packet (0.1.14)
PageTemplate (2.2.0)
ParseTree (2.1.1)
payment (1.0.1)
pdf-writer (1.1.8)
podcast (0.0.4)
polyglot (0.3.1)
rack (1.2.1, 1.1.0, 1.0.1, 1.0.0)
rack-mount (0.6.13)
rack-test (0.5.6)
radiant (0.6.9)
rails (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
railties (3.0.3)
rake (0.8.7)
RedCloth (3.0.4)
rest-client (1.6.3)
rfacebook (0.9.8)
rmagick (1.15.14)
rspec (1.1.3)
ruby-breakpoint (0.5.1)
ruby-debug (0.10.0)
ruby-openid (2.1.7)
ruby-yadis (0.3.4)
ruby_odeum (0.4.1)
rubyforge (2.0.4)
RubyInline (3.6.7)
rubypants (0.2.0)
rubyzip (0.9.1)
ruport (1.6.0)
ruport-util (0.14.0)
ruwiki (0.9.3)
salted_login_generator (2.0.2)
shipping (1.5.1)
SimpleSearch (0.5.0)
sqlite3-ruby (1.2.1)
stemmer (1.0.1)
switchtower (1.0.1)
syntax (1.0.0)
systemu (2.2.0)
tagtools (0.0.3)
thin (1.2.5, 1.2.2)
thor (0.14.6, 0.14.4)
tidy (1.1.2)
treetop (1.4.9)
tzinfo (0.3.23)
unicode (0.1)
uuidtools (1.0.3)
webgen (0.4.7)
wee (0.10.0)
xhtmldiff (1.0.0)
xml-simple (1.0.11)
yajl-ruby (0.8.2)
ym4r (0.6.1)
youtube-g (0.4.9.9)
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
actionpack (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.3)
activerecord (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
activeresource (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
activesupport (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
acts_as_taggable (2.0.2, 1.0.4)
ajax_scaffold_generator (3.1.11, 2.2.1)
archive-tar-minitar (0.5.2, 0.5.1)
arel (2.0.4)
auth_generator (2.0.1, 1.5.3)
Bloglines4R (0.1.0)
BlueCloth (1.0.0)
builder (2.1.2, 2.0.0)
bundler (1.0.7)
bunny (0.6.0)
camping (1.5.180, 1.5)
capistrano (2.5.1, 2.1.0, 1.4.1)
cgi_multipart_eof_fix (2.5.0)
chef (0.10.2)
classifier (1.3.1)
cmdparse (2.0.2, 2.0.0)
curb (0.1.4)
daemons (1.0.10, 1.0.9)
dbd-mysql (0.4.3)
dbi (0.4.3)
deprecated (2.0.1)
erubis (2.6.6)
eventmachine (0.12.10, 0.12.8)
facets (2.2.1, 1.8.54)
fastthread (1.0.7, 1.0.1)
feedtools (0.2.29, 0.2.28)
ferret (0.11.6, 0.11.4)
flickr (1.0.2)
gd2 (1.1.1, 1.1)
gem_plugin (0.2.3)
gen (0.41.0)
geoip (0.6.1)
gettext (1.90.0)
glue (0.41.0)
gnuplot (2.2)
gravtastic (2.0.0)
gruff (0.3.1)
haml (2.0.3)
highline (1.6.2)
hoe (2.7.0)
hpricot (0.6)
htmltools (1.10)
i18n (0.4.2, 0.4.1)
json (1.5.1)
localization_generator (1.0.8)
login_generator (1.2.2)
logstash-lite (0.2.20110206003603)
madeleine (0.7.3)
mail (2.2.15)
markaby (0.5)
mechanize (0.7.6)
metaid (1.0)
mime-types (1.16)
mini_magick (1.2.3)
mixlib-authentication (1.1.0)
mixlib-cli (1.1.0)
mixlib-config (1.1.2)
mixlib-log (1.3.0)
moneta (0.6.0)
mongrel (1.1.5, 1.1.4)
mysql (2.7)
needle (1.3.0)
net-scp (1.0.4)
net-sftp (2.0.5, 1.1.1)
net-ssh (2.1.4)
net-ssh-gateway (1.1.0)
net-ssh-multi (1.1, 1.0.1)
nitro (0.41.0)
nokogiri (1.4.4)
og (0.41.0)
ohai (0.6.0)
oniguruma (1.1.0)
packet (0.1.14)
PageTemplate (2.2.0)
ParseTree (2.1.1)
payment (1.0.1)
pdf-writer (1.1.8)
podcast (0.0.4)
polyglot (0.3.1)
rack (1.2.1, 1.1.0, 1.0.1, 1.0.0)
rack-mount (0.6.13)
rack-test (0.5.6)
radiant (0.6.9)
rails (3.0.3, 2.3.8, 2.3.5, 2.3.4, 2.3.3, 2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.5, 2.0.2)
railties (3.0.3)
rake (0.8.7)
RedCloth (3.0.4)
rest-client (1.6.3)
rfacebook (0.9.8)
rmagick (1.15.14)
rspec (1.1.3)
ruby-breakpoint (0.5.1)
ruby-debug (0.10.0)
ruby-openid (2.1.7)
ruby-yadis (0.3.4)
ruby_odeum (0.4.1)
rubyforge (2.0.4)
RubyInline (3.6.7)
rubypants (0.2.0)
rubyzip (0.9.1)
ruport (1.6.0)
ruport-util (0.14.0)
ruwiki (0.9.3)
salted_login_generator (2.0.2)
shipping (1.5.1)
SimpleSearch (0.5.0)
sqlite3-ruby (1.2.1)
stemmer (1.0.1)
switchtower (1.0.1)
syntax (1.0.0)
systemu (2.2.0)
tagtools (0.0.3)
thin (1.2.5, 1.2.2)
thor (0.14.6, 0.14.4)
tidy (1.1.2)
treetop (1.4.9)
tzinfo (0.3.23)
unicode (0.1)
uuidtools (1.0.3)
webgen (0.4.7)
wee (0.10.0)
xhtmldiff (1.0.0)
xml-simple (1.0.11)
yajl-ruby (0.8.2)
ym4r (0.6.1)
youtube-g (0.4.9.9)
I have two questions:
How do I create a real silo for my project, a gemset which is truly empty?
How do I get rid of the "invalid gemspec" error in the local gems? Because if I switch back to rvm use 1.8.7 and then run gem list I don't get the "invalid gemspec" error!
EDIT
Typing rvm use ruby-1.9.2#MYGEMSET, then running which gem points to ~/.rvm/rubies/ruby-1.9.2-p290/bin/gem which I think is correct.
most likely this happens because the global gemset contains all the gems, try:
rvm 1.9.2#global gem list
you can compare this with gem list to see only your gems:
rvm use 1.9.2
diff --normal <(gem list) <( rvm 1.9.2#global gem list ) | sed '/^[^<]/ d ; s/^< //'
or using only GEM_HOME as GEM_PATH:
GEM_PATH=$GEM_HOME gem list
rvm do gem list is deprecated
rvm gemset list: List your gemsets
rvm gemset create your_gemset: Create a gemset
rvm gemset use your_gemset: Use a gemset
gem list: List current gemset gems
Use rvm info to check that you are using the correct ruby and gemset. a best practice is to create a .rvmrc file
I believe that rvm do gem list is going to list the gems for all your rubies (and all the gemsets). If you have rvm setup and sourced correctly, you should be able to use all of the shell scripts (ruby, gem, bundle, etc..) without prefixing them with rvm.
Try gem list after you use the correct ruby version + gemset (ie: rvm use ruby-1.9.2#MY_GEMSET). If that produces weird results, see which gem you're using with which gem.
I'm having a real hard time getting my environment ready with rspec and spork.
I am working on an application both on windows and linux environment (linux:home, windows:work)
I had a project configured using rspec and spork at home, when trying to replicate the gems needed for this project to run, I get the following error when trying to install spork.
gem install spork
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing spork:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing de
pendencies based off of your operating system
installing windows dependencies
Failed to install necessary dependency gem win32-process: Could not find a valid
gem 'win32-process' (~> 0.6.1) locally or in a repository
Gem files will remain installed in C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
/gems/spork-0.8.4 for inspection.
Results logged to C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/spork-0.8.4
/ext/gem_make.out
I am really frustrated since I have already installed win32-process in the correct version. If I run
gem list
abstract (1.0.0)
actionmailer (3.0.5, 3.0.4)
actionpack (3.0.5, 3.0.4, 3.0.0)
activemodel (3.0.5, 3.0.4, 3.0.0)
activerecord (3.0.5, 3.0.4)
activeresource (3.0.5, 3.0.4)
activesupport (3.0.5, 3.0.4, 3.0.0)
arel (2.0.9, 2.0.8)
autotest (4.4.6)
autotest-growl (0.2.9)
autotest-rails-pure (4.1.2)
builder (2.1.2)
bundler (1.0.10)
diff-lcs (1.1.2)
erubis (2.6.6)
hoe (2.9.1)
i18n (0.5.0, 0.4.1)
json (1.5.1 x86-mingw32)
json_pure (1.5.1)
mail (2.2.15)
mime-types (1.16)
minitest (2.0.2)
nokogiri (1.4.4.1 x86-mingw32, 1.4.4
open4 (1.0.1)
pg (0.10.1)
Platform (0.4.0)
polyglot (0.3.1)
POpen4 (0.1.4)
racc (1.4.6)
rack (1.2.2, 1.2.1)
rack-mount (0.6.13)
rack-test (0.5.7, 0.5.4)
rails (3.0.5, 3.0.4)
railties (3.0.5, 3.0.4, 3.0.0)
rake (0.8.7)
rake-compiler (0.7.6)
rb-readline (0.4.0)
rexical (1.0.5)
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
rubyforge (2.0.4)
rubygems-update (1.6.2)
rubyzip2 (2.0.1)
sqlite3 (1.3.3 x86-mingw32)
sqlite3-ruby (1.3.3)
sys-proctable (0.9.0 x86-mswin32-60)
test-unit (2.2.0)
thor (0.14.6, 0.14.4, 0.14.0)
treetop (1.4.9)
tzinfo (0.3.25, 0.3.24, 0.3.23)
win32-api (1.4.8)
win32-open3 (0.3.2 x86-mingw32)
win32-process (0.6.1)
windows-api (0.4.0)
windows-pr (1.1.3)
ZenTest (4.5.0)
any ideas?
thanks in advance
I fixed the problem using milhouse-spork instead of spork itself
this version is, as said on the wiki page, for enabling windows machines to use spork
https://github.com/Milhouse/spork/wiki