Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > problem running after upgrade

Reply
Thread Tools

problem running after upgrade

 
 
Russ Amer
Guest
Posts: n/a
 
      03-25-2011
Hi, I am a newbie to this site,

I have search for the issue I am having and found similar issues and
have tried what has been suggested, but at this point have not got it
working. we had test that run under ruby version 1.8 and needed to move
to 1.9.1. After the upgrade I cannot got the tests to run, so something
has gone wrong with the upgrade.

gem env gives

RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 37 [i486-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/


export gives

declare -x GEM_HOME="/usr/lib/ruby/gems/1.9.1/gems"
declare -x GEM_PATH="/usr/lib/ruby/gems/1.9.1/gems"


declare -x
PATH="/usr/local/apache-maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/RealPlayer:/opt/TimesTen/tt70//bin:/var/lib/gems/1.9.1/bin"


gem list --local gives


*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.5)
actionpack (3.0.5)
activemodel (3.0.5)
activerecord (3.0.5)
activeresource (3.0.5)
activesupport (3.0.5)
arel (2.0.9)
builder (3.0.0, 2.1.2)
bundler (1.0.10)
ci_reporter (1.6.4)
columnize (0.3.2)
diff-lcs (1.1.2)
erubis (2.6.6)
ffi (1.0.7)
fileutils (0.7)
haml (3.0.25, 2.2.24)
hanna (0.1.12)
highline (1.6.1)
i18n (0.5.0)
magic (0.2.6)
mail (2.2.15)
mime-types (1.16)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.5)
railties (3.0.5)
rake (0.8.7)
rdoc (3.5.3, 2.3.0)
rest-client (1.6.1)
rmagick (2.13.1)
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
rubygems-update (1.6.2)
selenium-client (1.2.1
selenium-rc (2.3.2)
syntax (1.0.0)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.25)


when I run my tests, I get

rake
(in /home/netdev/workspace/cie2-gui/framework)
rm -rf spec/reports
/usr/bin/ruby1.9.1 -S rspec test_master.rb
/usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': no such file to load -- spec (LoadError)
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
/usr/lib/ruby/gems/1.9.1/gems/selenium-client-1.2.18/lib/selenium/rspec/reporting/selenium_test_report_formatter.rb:11:in
`<top (required)>'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in
`block in requires='
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in
`map'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:236:in
`requires='
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:23:in
`block in configure'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:22:in
`each'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/configuration_options.rb:22:in
`configure'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:17:in
`run'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in
`run_in_process'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in
`run'
from
/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in
`block in autorun'

Report files archived to:
/home/netdev/workspace/cie2-gui/framework/reports/archive/2011-03-25/16-28-54-tests



if I try to run spec manually, spec -h gives

spec -h
/usr/local/lib/site_ruby/1.9.1/rubygems.rb:388:in `bin_path': can't find
gem rspec ([">= 0"]) with executable spec (Gem::GemNotFoundException)
from /usr/bin/spec:19:in `<main>'


obviously this is some kind of config issue, but I have spent some time
on it, and to be honest not making much progress.

any help would be greatly accepted.

best rgds Russ

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco 837 upgrade IOS upgrade gone wrong cisconewbie Hardware 5 10-05-2008 06:29 PM
Upgrade vs Upgrade - not a faq but maybe some answers. Comments and Corrections welcomed. Agent86 Windows 64bit 2 02-09-2007 08:16 PM
Upgrade perl from 5.8.6 to 5.8.8 - help with upgrade ben.wilder@gmail.com Perl Misc 5 07-05-2006 11:19 AM
"Circular file references are not allowed" after running ASP.Net 2.0 Upgrade Wizard BBuff ASP .Net 0 09-26-2005 12:26 PM
PDF problem after upgrade Newfdog Firefox 4 03-07-2005 03:25 AM



Advertisments