I'm taking a course on Ruby on Rails. In the video the instructor recommends that you use
railsinstaller.org to download Rails instead of rubyonrails.org . But the site isn't there.
According to whois, it is inactive.
(When I investigated I got farther, but then got SSL errors. See solution below.)
My instructor said to go to this website for instructions. This solution also works if you are getting SSL errors when trying to use Ruby On Rails ( See Note1 and Note2 below first):
https://www.youtube.com/watch?v=iF8caVyDi5g&list=PLCC34OHNcOtrk3BDsfZwf4GattdLoKCOF&index=1&t=839s
Note1:
... get installer from here (If you have Git already, unclick that box.):
https://web.archive.org/web/20210306035811/http://railsinstaller.org/en
The idea is to remove ruby and rails from your machine. (Make sure you have node and yarn.) Run the installer. Then install newest stable versions of Ruby and Rails. Installing Ruby from rubyinstaller.org
Note2: Instead of using "gem install rails" command as Youtube video says, Do the following:
(thanks to Kingston Peng for this process)
"Run the command:
$ gem install gemName --source http://rubygems.org
it worked for me. I got: "1 gem installed".
So I tried:
$ gem install rails --source http://rubygems.org
", said Kingston Peng.
It worked! "37 gems installed"!
The GoRails setup guide is a good resource for this. This will show you how to download the latest versions of Ruby and Rails.
I'm working on the same course by the same instructor. Also, railsinstaller.org isn't working, so, you may use the link mentioned below to directly install the same version of ruby rails.
https://s3.amazonaws.com/railsinstaller/Windows/railsinstaller-3.4.0.exe
Related
I'm trying to initialize a new rails app on windows, and running rails new <appname> generates everything up to vendor/assets/stylesheets/.keep, but when bundle install is run, rails generates this error:
Checksum of /versions does not match the checksum provided by server! Something is wrong.
I'm not sure what's causing this, as I've done nothing to rails itself. Any help is appreciated.
Edit: If it's an error caused by windows being finicky, I have the option of moving to Linux, but I'd like to know what's wrong first.
I had the same issue using windows, and was able to solve it by uninstalling bundler and installing an older version.
rails new <appname>
gem uninstall bundler
gem install bundler -v 1.9
cd <appname>
bundle install
That did it for me!
In my case there was a *.pre.1 version and I chose to uninstall that particular version and then "bundle install" worked.
Try removing your ruby cache folder and then try again. So for example if you are on Linux machine and you are using rbenv and say ruby 2.1.5 folder. Your path would be similar to something like (Not sure where on windows ruby is stored):
~/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/cache/
Removing this folder and trying bundle install again should resolve the issue.
It will be great, if you move to a Linux machine.
On windows it's a hell to pay in my 5 years of experience what i have learned is not to mess with (ror) or (rs) in windows. here's a cheeky thing you can do an easy way. I believe you are using github as repo, as a editor you are using sublime if thats is a case open your gemfile you will see check the image or
try to clear cache on your server or update the gems.
I had this same exact error and solved it the following way. I think you are missing the ruby DevKit being installed.
Go here http://rubyinstaller.org/downloads/ and download/install the latest 32-bit Ruby version (as of writing this 2.2.4, you will need it for the web-console gem)
Make sure to add your ruby\bin folder to your environmental path variable
The trick is hidden near the bottom-left of the same page under the "Development Kit" section. You need to download and extract the right one into a permanent location (as of writing this for 32-bit - DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe)
After extracting the files, go into the main directory and run "ruby dk.rb init" followed by "ruby dk.rb install" (More information can be found here
That fixed it for me and i can now fully install with no checksum issues
This problem began when i tried to run my app. I wrote rails s and the console said me Could not find sdoc-0.4.1 in any of the sources Run bundle install to install missing gems. Then i wrote bundle install and the message that appeared was Checksum of /versions does not match the checksum provided by server! Something is wrong.
I solve this problem following this steps:
Wrote bundle install
The console said me Could not find sdoc-0.4.1 in any of the sources
Then i reinstalled this gem with gem install sdoc -v 0.4.1
I tried again to write rails s and it's was solved.
`
I am trying to run a
rails new demo
But am told:
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
I run that command, and many 'fetching' lines followed by many 'Installing RDoc documentation for...' are run, but then the last lines say:
Installing RDoc documentation for rails-3.2.13...
file 'lib' not found
and then it stops running, and the 'rails' command (see above) doesn't work still. Why is Rails not installed? What else should I do? Thanks
Looks like this is rdoc related. Short version, try :
gem install rdoc
And then launch the install of rails again.
Look at this answer that seems to have helper a lot of people with this exact problem.
I solved it: apparently I was trying to install rails in the directory. I did the following and it worked well:
cd /
Then I ran
sudo gem install rails
Then I cd into the relevant directory again and now
rails new demo
worked!
It's not a good idea to do a 'sudo gem install rails' since you may experience permission problems with your applications in the future.
I would recommend you using RVM which is a ruby version manager. You can easily install different versions of Rubies, you can create application specific gemset's and minimize possible futuristic 'rails is not currently installed' errors.
I highly recommend you searching and reading about these concepts:
RVM
Gemsets
.rvmrc
.bashrc and .bash_profile
I am super, super new at programming and I have been trying to get everything set-up on my computer. I have installed RailsInstaller, go to >railsinstaller_demo, and type in rails s. I get the following error though could not find gem 'uglifier <>= 1.0.3> x86-mingw32'
I looked through the forum and found how to do a gem list and i noticed it was not there. I then went to gembundler and ran $ gem install bundler. I tried again but it did not work.
I am sure the answer is on this site, but i am so new that i see all these lines of code I actually have no idea where to type it in.. I am running Windows 7.
thanks for taking the time to help out a real beginner.
Have you gone to the $ railsinstaller_demo directory and run the bundle install command? This will install the gem dependencies for the application; you will not be able to run the server until you've bundled the gems. Additionally, if you're still having issues with the uglifier gem, go ahead and remove the line in the Gemfile and then run bundle install
If you need further help with the Command Prompt, you an find out more at http://bit.ly/ZajVeW.
Thanks,
Evan
I installed ruby as per instructions given here but when I do ruby--version then it still shows 1.8.7. How do I make sure I use newly installed Ruby?
I would suggest you to use RVM (Ruby Version Manager). You may find a full installation guide here:
http://ryanbigg.com/2011/06/mac-os-x-ruby-rvm-rails-and-you/
If you get an error such as "ERROR: Error running ' ./configure...." after executing rvm install e.g.
rvm install 1.9.3
Then you may try to install it like this:
rvm install 1.9.3 --with-gcc=clang
Note: in the guide this possible error is not described
Did you properly setup your PATH? What's the output of echo $PATH? /usr/local/bin has to come first they way this tutorial sets up things. You see that everything worked right when which ruby displays /usr/local/bin/ruby.
Personally I'd recommend using a tool for managing Ruby versions though. RVM still seems to be the most popular choice, I prefer the combination of rbenv and ruby-build.
I cannot get Refinery cms to install on my crappy Vista machine. I have followed all instructions on http://github.com/resolve/refinerycms but the bundler doesn't work because there is not gemfile (I have copied the gemfile from github but it fails at rmagick gem) and have also tried the command line instructions but it fails at rake db:setup.
I have tried installing all required gems myself but this makes no difference.
Can anyone give me a quick step by step on how to get it running? I have now completely removed ruby so can start afresh. I have the installers from rubyinstaller.org and have tried with both 1.8.7 and 1.9. I have mysql 5.1 installed.
Much appreciated!
If this is still a problem, try using the latest version of refinerycms (0.9.7.7) as there have been a lot of improvements to the installation process since then.
(also, please retag this question with refinerycms)
You have to install RMagick yourself as it can`t be done by the bundler, have you tried this?
http://rmagick.rubyforge.org/install-faq.html#win