could not find [gem] locally or in a repository

812 views
Skip to first unread message

Remco Swoany

unread,
Nov 14, 2008, 10:48:55 AM11/14/08
to rubyonra...@googlegroups.com
Hi,

Every gem i tried to install i got the message:

Error: Could not find locally or in a repository!

please some help...

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

lokhande...@gmail.com

unread,
Nov 14, 2008, 10:54:29 AM11/14/08
to Ruby on Rails: Talk
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>
wrote:

jemminger

unread,
Nov 14, 2008, 10:54:49 AM11/14/08
to Ruby on Rails: Talk
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>
wrote:

Remco Swoany

unread,
Nov 14, 2008, 11:09:34 AM11/14/08
to rubyonra...@googlegroups.com
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

lokhande...@gmail.com

unread,
Nov 14, 2008, 11:10:03 AM11/14/08
to Ruby on Rails: Talk
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"

Frederick Cheung

unread,
Nov 14, 2008, 11:12:00 AM11/14/08
to Ruby on Rails: Talk


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

Remco Swoany

unread,
Nov 14, 2008, 11:12:30 AM11/14/08
to rubyonra...@googlegroups.com
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//

Remco Swoany

unread,
Nov 14, 2008, 11:13:20 AM11/14/08
to rubyonra...@googlegroups.com
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...

Remco Swoany

unread,
Nov 14, 2008, 11:14:06 AM11/14/08
to rubyonra...@googlegroups.com

gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org

lokhande...@gmail.com

unread,
Nov 14, 2008, 11:26:37 AM11/14/08
to Ruby on Rails: Talk
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>

Remco Swoany

unread,
Nov 17, 2008, 3:03:57 AM11/17/08
to rubyonra...@googlegroups.com
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

unread,
Nov 17, 2008, 3:54:20 AM11/17/08
to rubyonra...@googlegroups.com
@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

Frederick Cheung

unread,
Nov 17, 2008, 6:12:25 AM11/17/08
to rubyonra...@googlegroups.com

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

Ss Kk

unread,
Jan 8, 2009, 8:38:20 AM1/8/09
to rubyonra...@googlegroups.com

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

unread,
Jan 8, 2009, 8:43:10 AM1/8/09
to Ruby on Rails: Talk
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.

Ss Kk

unread,
Jan 8, 2009, 10:53:55 PM1/8/09
to rubyonra...@googlegroups.com
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

unread,
Jan 9, 2009, 3:17:20 AM1/9/09
to Ruby on Rails: Talk
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.

Ss Kk

unread,
Jan 9, 2009, 3:31:43 AM1/9/09
to rubyonra...@googlegroups.com

I have installed it from >
ftp://ftp.microsoft.com/softlib/mslfiles/nmake15.exe
But still it's giving the same error

MaD

unread,
Jan 9, 2009, 3:37:35 AM1/9/09
to Ruby on Rails: Talk
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).

Ss Kk

unread,
Jan 9, 2009, 4:08:36 AM1/9/09
to rubyonra...@googlegroups.com

Path variable are already set,Can you tell me where i will get json
1.1.3 windows version?

Reply all
Reply to author
Forward
0 new messages