Forum: Ruby Gem install error?

Posted by Al Baker (alcheddah)
on 2012-12-01 00:29
i tried to install my own gem and got this:

C:\Users\Al Baker\Documents\Programming\RuBy>gem install
'string_extensions'
ERROR:  Could not find a valid gem 'string_extensions' (>= 0) in any
repository
ERROR:  Possible alternatives: string_extensor, spine-extensions,
ruby_extension
s, string_extensions_refi, string_extendr
Posted by Justin Collins (Guest)
on 2012-12-01 01:48
(Received via mailing list)
On 11/30/2012 03:34 PM, Al Baker wrote:
> i tried to install my own gem and got this:
>
> C:\Users\Al Baker\Documents\Programming\RuBy>gem install
> 'string_extensions'
> ERROR:  Could not find a valid gem 'string_extensions' (>= 0) in any
> repository
> ERROR:  Possible alternatives: string_extensor, spine-extensions,
> ruby_extension
> s, string_extensions_refi, string_extendr
>

You mean a gem you built on your local machine? Then you need to provide
the full file name, like:

   gem install string_extensions-0.0.1.gem

-Justin
Posted by Al Baker (alcheddah)
on 2012-12-01 01:59
tried that and got:
C:\Users\Al Baker\Documents\Programming\RuBy>gem install 
string_extensions-0.0.1
.gem
ERROR:  Could not find a valid gem 'string_extensions-0.0.1.gem' (>= 0) 
in any r
epository
ERROR:  Possible alternatives: string_extensions_refi

C:\Users\Al Baker\Documents\Programming\RuBy>gem install 
'string_extensions-0.0.
1.gem'
ERROR:  Could not find a valid gem 'string_extensions-0.0.1.gem' (>= 0) 
in any r
epository
Posted by unknown (Guest)
on 2012-12-01 08:48
(Received via mailing list)
Am 01.12.2012 01:59, schrieb Al Baker:
> tried that and got:
> C:\Users\Al Baker\Documents\Programming\RuBy>gem install
> string_extensions-0.0.1
> .gem
> ERROR:  Could not find a valid gem 'string_extensions-0.0.1.gem' (>= 0)
> in any r
> epository

You made of course sure that the file exists in the directory you
are issuing the `gem install' command from?

And you built the gem with `gem build' before trying to install it?
Posted by Bartosz Dziewoński (matmarex)
on 2012-12-01 16:54
(Received via mailing list)
2012/12/1 Justin Collins <justincollins@ucla.edu>:
> You mean a gem you built on your local machine? Then you need to provide the
> full file name, like:
>
>   gem install string_extensions-0.0.1.gem
>
> -Justin
>

Or just `gem install string_extensions --local`.

-- Matma Rex
Posted by Al Baker (alcheddah)
on 2012-12-01 20:10
Bartosz Dziewoński wrote in post #1087427:
> 2012/12/1 Justin Collins <justincollins@ucla.edu>:
>> You mean a gem you built on your local machine? Then you need to provide the
>> full file name, like:
>>
>>   gem install string_extensions-0.0.1.gem
>>
>> -Justin
>>
>
> Or just `gem install string_extensions --local`.
>

tried that and got the same error. and YES i did do that,Guest!
Posted by Hassan Schroeder (Guest)
on 2012-12-01 21:11
(Received via mailing list)
Dunno if this will help, since you're on Windows and I'm on Mac OS,
but I just built and installed a simple test gem using the following 
steps:

11:36 ~/projects/testcases/gems $ bundle gem xyz
11:37 ~/projects/testcases/gems $ cd xyz
11:44 ~/projects/testcases/gems/xyz (master)$ vim lib/xyz.rb
11:44 ~/projects/testcases/gems/xyz (master)$ vim lib/xyz.gemspec
11:44 ~/projects/testcases/gems/xyz (master)$ gem build xyz.gemspec
11:45 ~/projects/testcases/gems/xyz (master)$ gem install --local xyz
11:46 ~/projects/testcases/gems/xyz (master)$ gem list --local

*** LOCAL GEMS ***

bundler (1.2.1)
rvm (1.11.3.5)
xyz (0.0.1)

HTH!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.