Forum: Ruby on Rails could not find [gem] locally or in a repository

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-14 16:48
Hi,

Every gem i tried to install i got the message:

Error: Could not find  locally or in a repository!

please some help...

remco
057ebc4c894fde6d48490ed01dcb61a6?d=identicon&s=25 Shrikant L. (shrikant)
on 2008-11-14 16:54
(Received via mailing list)
Which Rubygem version your are install on system.
Just do

gem install --system
and then try.

let me know if there is any error.
Thanks,
Deployd.

On Nov 14, 8:48 pm, Remco Swoany <rails-mailing-l...@andreas-s.net>
89bf722038e07b8fba56d96df40b6267?d=identicon&s=25 Jeff E. (jemminger)
on 2008-11-14 16:55
(Received via mailing list)
Means whatever gem you're trying to install does not exist in your
current working dir or in the standard repositories.

You'll need to install via
  gem install some_gem http://some.server/path/to/some_gem

On Nov 14, 10:48 am, Remco Swoany <rails-mailing-l...@andreas-s.net>
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-14 17:09
Shrikant Lokhande wrote:
> Which Rubygem version your are install on system.
> Just do
>
> gem install --system
> and then try.
>
> let me know if there is any error.
> Thanks,
> Deployd.
>
> On Nov 14, 8:48 pm, Remco Swoany <rails-mailing-l...@andreas-s.net>

I got this...

gem install --system
ERROR:  While executing gem ... (OptionParser::InvalidOption)
  invalid option: --system
057ebc4c894fde6d48490ed01dcb61a6?d=identicon&s=25 Shrikant L. (shrikant)
on 2008-11-14 17:10
(Received via mailing list)
Use this and then try:

gem update --system

which specific gem you are trying to install ?

Thanks,
DeployD.
On Nov 14, 8:54 pm, "lokhande.shrik...@gmail.com"
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-14 17:12
Jeff Emminger wrote:
> Means whatever gem you're trying to install does not exist in your
> current working dir or in the standard repositories.
>
> You'll need to install via
>   gem install some_gem http://some.server/path/to/some_gem
>
> On Nov 14, 10:48�am, Remco Swoany <rails-mailing-l...@andreas-s.net>

I just want to instal json, redcloth ect...this are standard gems...so i
think something else is wrong. But a fast solution would be wath you
suggest..

Can you tell me how can i find the external repositories of the gem?

Thanks//
Frederick Cheung (Guest)
on 2008-11-14 17:12
(Received via mailing list)
On Nov 14, 3:48 pm, Remco Swoany <rails-mailing-l...@andreas-s.net>
wrote:
> Hi,
>
> Every gem i tried to install i got the message:
>
> Error: Could not find  locally or in a repository!
>

Perhaps your gem sources list is borked?
gem sources
will display it.

Fred
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-14 17:13
Shrikant Lokhande wrote:
> Use this and then try:
>
> gem update --system
>
> which specific gem you are trying to install ?
>
> Thanks,
> DeployD.
> On Nov 14, 8:54 pm, "lokhande.shrik...@gmail.com"

I am trying to install json and tzinfo...
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-14 17:14
Frederick Cheung wrote:
> On Nov 14, 3:48�pm, Remco Swoany <rails-mailing-l...@andreas-s.net>
> wrote:
>> Hi,
>>
>> Every gem i tried to install i got the message:
>>
>> Error: Could not find �locally or in a repository!
>>
>
> Perhaps your gem sources list is borked?
> gem sources
> will display it.
>
> Fred

 gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org
057ebc4c894fde6d48490ed01dcb61a6?d=identicon&s=25 Shrikant L. (shrikant)
on 2008-11-14 17:28
(Received via mailing list)
Actually Gem installation need enough memory on your server/system and
Bandwidth.
or if it is not just download that gem and install specific.

gem install rails-2.0.2.gem,

Pls check:
i have install json like this.
===================================================
gem install json
Bulk updating Gem source index for: http://gems.rubyforge.org/
Building native extensions.  This could take a while...
Successfully installed json-1.1.3
1 gem installed
Installing ri documentation for json-1.1.3...

No definition for cState_configure

No definition for cState_configure
Installing RDoc documentation for json-1.1.3...

No definition for cState_configure

No definition for cState_configure

Thanks,
DeployD.

On Nov 14, 9:14 pm, Remco Swoany <rails-mailing-l...@andreas-s.net>
C38add4c247dc9ca5dfd8cb06335a54d?d=identicon&s=25 Remco S. (zwaan123)
on 2008-11-17 09:03
Shrikant Lokhande wrote:
> Actually Gem installation need enough memory on your server/system and
> Bandwidth.
> or if it is not just download that gem and install specific.
>
> gem install rails-2.0.2.gem,
>
> Pls check:
> i have install json like this.
> ===================================================
> gem install json
> Bulk updating Gem source index for: http://gems.rubyforge.org/
> Building native extensions.  This could take a while...
> Successfully installed json-1.1.3
> 1 gem installed
> Installing ri documentation for json-1.1.3...
>
> No definition for cState_configure
>
> No definition for cState_configure
> Installing RDoc documentation for json-1.1.3...
>
> No definition for cState_configure
>
> No definition for cState_configure
>
> Thanks,
> DeployD.
>
> On Nov 14, 9:14 pm, Remco Swoany <rails-mailing-l...@andreas-s.net>

i just tried "gem install json-1.1.3.gem" but again..the error-message:
ERROR:  could not find json-1.1.3.gem locally or in a repository

remco
Abhishek shukla (Guest)
on 2008-11-17 09:54
(Received via mailing list)
@remco first check your internet connection and firewall is it working
and
configured properly or not.
Coz the error "ERROR:  could not find json-1.1.3.gem locally or in a
repository" it can because of internet connectivity........

And yes if you are on windows then defiantly you have to do N number of
thing before installing json I guess you will need Visual c complier.
Try to
install *gem install json_pure.
*Jump into the linux environment. ;) ..
and upgrade ur gems
http://rubyforge.org/frs/?group_id=126*
regards
Abhishek
*


On Mon, Nov 17, 2008 at 1:33 PM, Remco Swoany <
Frederick Cheung (Guest)
on 2008-11-17 12:13
(Received via mailing list)
On 17 Nov 2008, at 08:03, Remco Swoany wrote:
>
> i just tried "gem install json-1.1.3.gem" but again..the error-
> message:
> ERROR:  could not find json-1.1.3.gem locally or in a repository
>
That will only work if you have a file called json-1.1.3.gem sitting
right there. To install over the network you need
gem install json
or gem install json --version=1.1.3

if you want that version (although as others have said you may not be
able to build the c extension required for that particular gem if you
don't have the appropriate version of visual studio installed)

Fred
4d83d7fd3f4bd42d71233e557b22906d?d=identicon&s=25 Ss K. (kisrti)
on 2009-01-08 14:38
Frederick Cheung wrote:
> On 17 Nov 2008, at 08:03, Remco Swoany wrote:
>>
>> i just tried "gem install json-1.1.3.gem" but again..the error-
>> message:
>> ERROR:  could not find json-1.1.3.gem locally or in a repository
>>
> That will only work if you have a file called json-1.1.3.gem sitting
> right there. To install over the network you need
> gem install json
> or gem install json --version=1.1.3
>
> if you want that version (although as others have said you may not be
> able to build the c extension required for that particular gem if you
> don't have the appropriate version of visual studio installed)
>
> Fred

I have json 1.1.3 locally on my machiene and i am trying to install
it,and it's giving an error:
Building native extensions.  This could take a while...
ERROR:  Error installing d:\json-1.1.3.gem:
        ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb install d:\json-1.1.3.gem
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3 for
 inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/
gem_make.out
MaD (Guest)
on 2009-01-08 14:44
(Received via mailing list)
you're obviously on windows. have you installed nmake? did you add it
to your path-variable? it seems like it is not found on your machine.
4d83d7fd3f4bd42d71233e557b22906d?d=identicon&s=25 Ss K. (kisrti)
on 2009-01-09 04:53
MaD wrote:
> you're obviously on windows. have you installed nmake? did you add it
> to your path-variable? it seems like it is not found on your machine.

Thanks for the reply.

Any hints how to do that?
MaD (Guest)
on 2009-01-09 09:18
(Received via mailing list)
i don't work on windows, but nmake can be found here:
  ftp://ftp.microsoft.com/softlib/mslfiles/nmake15.exe

reference:
  http://msdn.microsoft.com/en-us/library/ms930369.aspx

additionally i want to say, that i never used this program and i'm not
sure if you really need it, but form your output
  > 'nmake' is not recognized as an internal or external command,
operable program or batch file.
it seems you should take a look at it.
4d83d7fd3f4bd42d71233e557b22906d?d=identicon&s=25 Ss K. (kisrti)
on 2009-01-09 09:31
MaD wrote:
> i don't work on windows, but nmake can be found here:
>   ftp://ftp.microsoft.com/softlib/mslfiles/nmake15.exe
>
> reference:
>   http://msdn.microsoft.com/en-us/library/ms930369.aspx
>
> additionally i want to say, that i never used this program and i'm not
> sure if you really need it, but form your output
>   > 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
> it seems you should take a look at it.

I have installed it from >
ftp://ftp.microsoft.com/softlib/mslfiles/nmake15.exe
But still it's giving the same error
MaD (Guest)
on 2009-01-09 09:37
(Received via mailing list)
for your OS to find the programm you need to add it to your path
variable. look here (or google for it):
  http://vlaurie.com/computers2/Articles/environment.htm

this should be very easy. when you adjusted your path variable try to
invoke nmake from the command line to check if it is found correctly
(should then be possible from any folder).
4d83d7fd3f4bd42d71233e557b22906d?d=identicon&s=25 Ss K. (kisrti)
on 2009-01-09 10:08
MaD wrote:
> for your OS to find the programm you need to add it to your path
> variable. look here (or google for it):
>   http://vlaurie.com/computers2/Articles/environment.htm
>
> this should be very easy. when you adjusted your path variable try to
> invoke nmake from the command line to check if it is found correctly
> (should then be possible from any folder).

Path variable are already set,Can you tell me where i will get json
1.1.3 windows version?
This topic is locked and can not be replied to.