ruby for cygwin comes without "gem" command

Ben Atkin ben@benatkin.com
Wed May 16 08:16:00 GMT 2007


As Shankar Unni says, don't try to install gem for cygwin using the
gem that comes with the Ruby One-Click Installer for Windows. Instead,
get the tarball and install it using the included script. Since
rubygems is pure ruby, you don't have to worry about having a compiler
installed. It should just work with what the default cygwin install
plus ruby and its dependencies. To install it, do the following steps:

1. Download tarball from http://rubyforge.org/frs/?group_id=126
(currently rubygems-0.9.3.tgz)

2. Unpack the tarball

3. Go into the directory containing setup.rb

4. Type ruby setup.rb install

-- Ben



On 5/14/07, Ronald Fischer <ronald.fischer@venyon.com> wrote:
> I installed ruby for cygwin, using the cygwin setup program:
>
> $ ruby --version
> ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin]
>
>
> To my surprise, this does not install the "gem" command, which is
> normally part of Ruby 1.8.5:
>
> $ which ruby
> /usr/bin/ruby
> $ ls /usr/bin/gem
> ls: cannot access /usr/bin/gem: No such file or directory
>
>
> How can I get the gem command for cygwin? Or can I simply use the "gem"
> command
> from the normal (Windows-) installation of Ruby?
>
> Ronald
> --
> Ronald Fischer <ronald.fischer@venyon.com>
> Phone: +49-89-452133-162
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


-- 
Ben Atkin
ben@benatkin.com
http://www.benatkin.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list