Topic: RubyGems error

I am trying to install (sudo gem install mysql) the following gems, on ubuntu 10.10:
gem mysql, prawn, passenger and rails, but i take the following error, for gem...


ERROR:  http://rubygems.org/ does not appear to be a repository
ERROR:  Could not find a valid gem 'mysql' (>= 0) in any repository

What can i do?

Re: RubyGems error

sudo gem update
sudo gem update --system

sudo gem sources -a http://gems.rubyforge.org/
sudo gem install mysql

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: RubyGems error

I am afraid it is not working.. i am talking the same msg... :\

Re: RubyGems error

just type

sudo gem sources

if you see a source http:/rubygems.org

delete it

sudo gem sources -r http:/rubygems.org

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: RubyGems error

the result is:

:~$ sudo gem sources
*** CURRENT SOURCES ***

[url]http://rubygems.org/[/url]
:~$ sudo gem sources -r [url]http://rubygems.org[/url]
source [url]http://rubygems.org[/url] not present in cache

now what? when i am checking the source after that, it is still there... :\

Last edited by proskopos (2011-01-01 14:46:06)

Re: RubyGems error

look at the difference,  there is a trailing slash in the source you are trying to remove

sudo gem sources -r http://rubygems.org/

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: RubyGems error

still not working...

:~$ sudo gem sources
*** CURRENT SOURCES ***

http://rubygems.org/
:~$ sudo gem sources -r http://rubygems.org/
http://rubygems.org/ removed from sources
proskopos@proskopos:~$ sudo gem install mysql
WARNING:  RubyGems 1.2+ index not found for:
  http://rubygems.org/

RubyGems will revert to legacy indexes degrading performance.
ERROR:  Could not find a valid gem 'mysql' (>= 0) in any repository
ERROR:  Possible alternatives: mysql

Re: RubyGems error

did you do this:

sudo gem update --system

something's funky with your gems

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: RubyGems error

Is this normal? think not..:\

Building native extensions.  This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

No definition for field_length

No definition for field_max_length

No definition for field_flags

No definition for field_decimals

No definition for time_inspect

No definition for time_to_s

No definition for time_get_year

No definition for time_get_month

No definition for time_get_day

No definition for time_get_hour

No definition for time_get_minute

No definition for time_get_second

No definition for time_get_neg

No definition for time_get_second_part

No definition for time_set_year

No definition for time_set_month

No definition for time_set_day

No definition for time_set_hour

No definition for time_set_minute

No definition for time_set_second

No definition for time_set_neg

No definition for time_set_second_part

No definition for time_equal

No definition for error_errno

No definition for error_sqlstate
Installing RDoc documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

No definition for field_length

No definition for field_max_length

No definition for field_flags

No definition for field_decimals

No definition for time_inspect

No definition for time_to_s

No definition for time_get_year

No definition for time_get_month

No definition for time_get_day

No definition for time_get_hour

No definition for time_get_minute

No definition for time_get_second

No definition for time_get_neg

No definition for time_get_second_part

No definition for time_set_year

No definition for time_set_month

No definition for time_set_day

No definition for time_set_hour

No definition for time_set_minute

No definition for time_set_second

No definition for time_set_neg

No definition for time_set_second_part

No definition for time_equal

No definition for error_errno

No definition for error_sqlstate

Re: RubyGems error

Not a problem,  the gem got built,  you're seeing minor complaints about the documentation that got created.

In my personal experience, about 1 in 5 gems I've built have shown these kinds of errors while generating the docs,  I've always just ignored it,  with no ill effects.

Last edited by BradHodges (2011-01-04 12:41:04)

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: RubyGems error

Could anybody please tell me how to get rid off this error while I run any rails application:

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- script/../config/boot (LoadError)
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from script/server:2:in `<main>'



Thanks in advance

Re: RubyGems error

I never understood why gem generate docs by default. Most of the time, you read documentation on internet, not on local, especially when it's lost in 2 000 depth folders.

I just install all my gems with --no-ri --no-rdoc.

Regards

Re: RubyGems error

i have installed all the gems

gem install tzinfo builder memcache-client rack rack-test erubis mail text-format
bundler thor i18n sqlite3-ruby
gem install rack-mount --version=0.4.0
gem install rails --version 3.0.0

and then i install snorby at www/var/ with

git clone git://github.com/Snorby/snorby.git

but when i go for

bundle install 

it says that

Could not locate Gemfile

what is the problem?

there is something weird happened...
when i do

sudo su
bundle install

it says could not locate gemfile

without writing sudo su, and instead of that i write sudo bundle install it says

sudo: bundle: command not found 

Last edited by proskopos (2011-02-13 15:50:20)

Re: RubyGems error

Dear  BradHodges,
I have the same kind of error as "proskopos"
gem install selenium-webdriver
ERROR:  http://rubygems.org/ does not appear to be a repository
ERROR:  Could not find a valid gem 'selenium-webdriver' (>= 0) in any repository
Could you help me please ?
With my best regards,
Beya.

Last edited by beya (2012-05-15 12:31:15)