Sorry to ask such a basic question. I'm trying to install tiny_tds as explain on this page. I've tried $ gem install tiny_tds, I'm getting error: Syntaxt error, unexpected $undefined. If I remove $, the error becomes undefined local variable or methos "tiny_tds". I don't know where to start to install a gem. I'm using the ruby command prompt.
Thanks for helping
I guess you should try railsinstaller for windows that includes rubygems. Then gem install tiny_tds in the command prompt.
You need to download the Ruby installer depending on you systems settings (32 or 64 bit) and the ruby development kit in order to run command lines. Here is a link to the installer and a simple guide for installing the DevKit for ruby on windows (this one is to make jekyll run on windows, jekyll is other ruby gem):
Ruby Installer:
http://rubyinstaller.org/downloads/
Devkit configuration:
http://www.madhur.co.in/blog/2011/09/01/runningjekyllwindows.html
Related
I am trying to install jekyll on a 32 bit windows 7 PC . I downloaded ruby installer-32 bit and 32 bit devkit and extracted un ruby install folder.i got some ssh error which i resolved by temporarily switching to http instead of https and then updated gems as well as installed bundler using
gem install bundler
however gem install jekyll gives following error
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
C:/Ruby21/bin/ruby.exe -r ./siteconf20150109-5804-1k3wbva.rb extconf.rb
No such file or directory - C:/Ruby21/bin/ruby.exe -r ./siteconf20150109-5804-1k
3wbva.rb extconf.rb 2>&1
Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/fast-stemm
er-1.0.2 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/fas
t-stemmer-1.0.2/gem_make.out
You need to install the Ruby DevKit to fix the error you're seeing. Any sane Ruby install has the ability to build stuff on the fly.
I would start with Julian Thilo's awesome instructions for installing Jekyll on Windows:
Run Jekyll on Windows
If you are installing Ruby only for the purpose of running Jekyll, PortableJekyll will give you a full working Jekyll install in < 5 minutes.
Happy Jekylling...
I tried the same thing on 3 systems and found out that installing ruby gems fixed the issue .. so for anyone coming back at this question , this is how you install jekyll on a windows pc:
1.download and install ruby.
2.download devkit extract in to a folder(preferably inside ruby installation dir) and type in cmd window while in your devkit dir :
ruby dk.rb init
ruby dk.rb install
3.download and install gems by
ruby setup.rb
4. finally :
gem install bundler
gem install jekyll
*bundler is a jekyll dependency
I had the same issue on Windows 10 after installing Ruby+Devkit 2.5.X (x64) with the Windows installer.
The reason was that I changed the default path in the installer and had spaces in the path name. Apparently some make scripts do not like that.
Reinstalling to a path without any spaces fixed the issue.
Also see this related issue on github.
I failed to install "gem install jekyll bundler" when ruby was installed in "c:\program files\Ruby26-x64". After I reinstalled ruby on c:\Ruby26-x64 everything went ok. Seems like installation fails to parse path with blank
I'm trying to install rubygems on my windows7 pc. I've download the rubygems-2.4.1.zip from https://rubygems.org/pages/download. Now I'm trying to install rubygems through the command:
ruby setup.rb
But I see the error:
'ruby' is not recognized as an internal or external command
How can I use 'ruby' command on my pc?
Downloaded rubygems-2.4.1.zip does not contain any exe file, through which I can install it. I'm a beginner. Please help me.
Try RubyInstaller on Win32 Platforms
Rubygems is a package manager for Ruby, which is a per-requisite that you may or may not have properly installed on your OS. Installing Ruby on Windows properly is tricky; your best bet is to use RubyInstaller to install Ruby and Rubygems, and make sure to read the RubyInstaller FAQ.
Good luck!
I'm trying to install ruby on rails for windows 7. I've tried this on Professional and Enterprise.
I'm following Michael Hartl's tutorial if it helps answer this question.
First I install Cygwin64, then I download rubygems-2.3.0. I move rubygems-2.3.0 into C:\cygwin64\home\mycomputername. I untar it successfully, cd into the rubygems-2.3.0 folder, and run setup.rb.
Everything works fine up till here.
When I run the command gem install rails --version 3.0.0, it installs successfully until I get to
Fetching: rack-1.2.8.gem (100%)
ERROR: While executing gem ... (TypeError)
can't convert nil into String
Which is where the above error happens. After this, no rails command will work.
I should note that my version of ruby is v1.9.3, if it matters.
I suggest you install Ruby and Rails from http://railsinstaller.org/en if you are on Windows 7.
If on Windows it's best to use railsinstaller.org. If you could install Linux it would be a better option for developing ruby on rails.
I have copy the make.bat to bin\ folder,when run the command gem install bcrypt-ruby,
it shows the bash.exe is not the internal or external command.
How to solve it?
I was trying to install "bcrypt-ruby" on Windows 8, 64 bit .
Tried a lot of configurations, ranging from different versions of the gem, direct from git, platform ruby etc.
But nothing worked
At the end installed DEVKIT compatible to my ruby version and thats it.
Steps
Install Devkit compatible to your ruby version
Link : http://rubyinstaller.org/downloads/
Download under
C:/Ruby Folder/devkit
Then on command line go to above path
C:/Ruby Folder/devkit
then say
gem install bcrypt-ruby
This should install it,
Post this, you need to add the gem to your Gemfile and say
bundle install
bundle update
bundle install
This should work fine. Also solves update issues related to active_record etc.
The same should work for WIN 64, WIN 32 also.
I installed ruby through the windows installer yesterday.
All seemed fine.
Today, I went installing the rmagick win32 gem like so:
c:\ruby187\bin\gem install rmagick-2.7.1-x86-mswin32.gem
in the directory with the gem.
That also seemed to work fine, got the familiar
1 gem installed
Installing ...[all the ri and other docs].
But after that, I am tried:
c:\ruby187\bin\gem install --version '= 2.3.5' rails
it just returned immediately with no output. Probably doing nothing.
c:\ruby187\bin\gem list --local
the same, no output, but returns to the cmd line (no hang).
c:\ruby187\bin\gem install rails
c:\ruby187\bin\gem install --debug rails
c:\ruby187\bin\gem install --debug --version '= 2.3.5' rails
does exactly the same.
Any idea what's wrong?
I am a RoR newbie, although I already have some experience with it on linux -
but not on Windows.
Can anybody help? Really appreciated, started to get concerned now...
I've already had problems for installing rails on windows using the command gem install. The solution was executing the file cmd.exe like Administrator. This file is encountered in path C:\windows\system32 on Windows XP. Try do it.