dude you must say the gem name ex: gem install rails

Enviado via iPad

Em 25/09/2011, às 15:24, Matin <caliskan.me...@gmail.com> escreveu:

> Hello,
> 
> C:\Users\Cédric>MKDIR C:\Foo
> 
> C:\Users\Cédric>SET HOME=C:\Foo
> 
> C:\Users\Cédric>gem install
> ERROR:  While executing gem ... (Gem::CommandLineError)
>    Please specify at least one gem name (e.g. gem build GEMNAME)
> 
> ...
> I've tried to install a Win XP Virtual Machine (with VirtualBox), a
> Ubuntu VM.
> When I try a gem install rails :I still get that same Errno
> message ... :-(
> 
> On 25 sep, 12:52, Luis Lavena <luislav...@gmail.com> wrote:
>> On Sep 24, 4:14 pm, Matin <caliskan.me...@gmail.com> wrote:
>> 
>>> C:\Users\Cédéric>SET HOME
>>> HOMEDRIVE=C:
>>> HOMEPATH=\Users\Cédéric
>> 
>>> C:\Users\Cédéric>SET USERPROFILE
>>> USERPROFILE=C:\Users\Cédéric
>> 
>>> C:\Users\Cédéric>SET HOMEPATH
>>> HOMEPATH=\Users\Cédéric
>> 
>> Problem is the accented characters in the path, which are not properly
>> translated into ANSI.
>> 
>> C:\Users>ruby -v
>> ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
>> 
>> C:\Users\Luis>chcp 1252
>> Active code page: 1252
>> 
>> C:\Users\Luis>cd ..
>> 
>> C:\Users>irb
>> irb(main):001:0> Dir.glob("*")
>> => ["All Users", "Cédéric", "Default", "Default User", "desktop.ini",
>> "Luis", "Public"]
>> irb(main):002:0> d = Dir.glob("*")[1]
>> => "Cédéric"
>> irb(main):003:0> d.encoding
>> => #<Encoding:Windows-1252>
>> irb(main):004:0> File.expand_path(d)
>> => "C:/Users/Cédéric"
>> irb(main):005:0> exit
>> 
>> C:\Users>SET FOO=%CD%\Cédéric
>> 
>> C:\Users>irb
>> irb(main):001:0> a = ENV["FOO"]
>> => "C:\\Users\\C\x82d\x82ric"
>> irb(main):002:0> File.expand_path(a)
>> => "C:/Users/C\x82d\x82ric"
>> irb(main):003:0> File.directory?(a)
>> => false
>> irb(main):004:0> exit
>> 
>> ===
>> 
>> That is why when doing "gem env" your home directory is not displayed
>> under GEM PATHS
>> 
>> Would you mind doing a test?
>> 
>> MKDIR C:\Foo
>> SET HOME=C:\Foo
>> 
>> And then doing "gem install"?
>> 
>> --
>> Luis Lavena
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to