Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Victor Costan
RE: exception when installing sys-cpu [ reply ]  
2009-12-16 17:21
This command will install the right gem:

sudo gem install sys-cpu --platform x86-linux

By: Victor Costan
RE: exception when installing sys-cpu [ reply ]  
2009-12-16 17:18
On x86_64, the default gem gets installed. The default gem has an "ext" directory, and doesn't ship any "lib" directory. This looks like a packaging issue to me.

Suggestion: how about including all the code in the gem, and choosing which files to require at runtime, based on RUBY_PLATFORM? You won't need as much magic then.

By: Daniel Berger
RE: exception when installing sys-cpu [ reply ]  
2009-04-21 11:27
I'm not sure why it's trying to build extensions. The sys-cpu library is pure Ruby on Linux. Are you on x64 Linux?

I recommend downloading the tarball, building and installing the gem manually for now.

Regards,

Dan

By: SandRock Madnug
RE: exception when installing sys-cpu [ reply ]  
2009-04-21 09:56
Thanks for your reply. The install works but the same exception is throwed when using the gem : /

# gem install sys-cpu --platform linux && echo success
Building native extensions. This could take a while...
Successfully installed sys-cpu-0.6.1
1 gem installed
Installing ri documentation for sys-cpu-0.6.1...
Updating ri class cache with 570 classes...
Installing RDoc documentation for sys-cpu-0.6.1...
success

But...

# gem install sys-cpu --platform linux --test
Building native extensions. This could take a while...
Successfully installed sys-cpu-0.6.1
1 gem installed
Installing ri documentation for sys-cpu-0.6.1...
Updating ri class cache with 570 classes...
Installing RDoc documentation for sys-cpu-0.6.1...
/usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb:118:Warning: Gem::SourceIndex#search support for String patterns is deprecated
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sys/cpu (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
...

The 'sys/cpu' thing should be text from /proc/cpuinfo, right? Or is there a lib I missed? I've done a lot of google' but nobody have this problem.

By: Daniel Berger
RE: exception when installing sys-cpu [ reply ]  
2009-04-21 03:02
Hi,

Try "gem install sys-cpu --platform linux" and see if that works.

Regards,

Dan

By: SandRock Madnug
exception when installing sys-cpu [ reply ]  
2009-04-18 16:55
Hello,

I've got a problem installing sys-cpu:

The install command works:

# gem install sys-cpu
Building native extensions. This could take a while...
Successfully installed sys-cpu-0.6.1
1 gem installed
Installing ri documentation for sys-cpu-0.6.1...
Updating ri class cache with 570 classes...
Installing RDoc documentation for sys-cpu-0.6.1...


But in the project I checked-out, the following command fails:

$ rake test
(in ...)
no such file to load -- sys/cpu
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
...
Missing these required gems:
sys-cpu

You're running:
ruby 1.8.7.72 at /usr/bin/ruby1.8
rubygems 1.3.2 at /home/sandrock/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8



My environment is
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.2
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/