Ruby on Rails
Friday, September 19, 2014
For the Development Kit, I could find out only:
DEVELOPMENT KIT
For use with Ruby 1.8.7 and 1.9.3:
For use with Ruby 2.0 (32bits version only):
For use with Ruby 2.0 (x64 – 64bits only)
I installed the last one in the list: DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
Regards
Rohan Sarker
+913324288069 / +917278539338
On Fri, Sep 19, 2014 at 3:53 PM, Rohan Sarker <rohansarkerhr@gmail.com> wrote:
I checked with some more options:Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved.C:\Users\Dell>cd..C:\Users>cd..C:\>cd Ruby200C:\Ruby200>cd blogC:\Ruby200\blog>cd binC:\Ruby200\blog\bin>rails serverCould not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine.Run `bundle install` to install missing gems.C:\Ruby200\blog\bin>railsCould not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine.Run `bundle install` to install missing gems.C:\Ruby200\blog\bin>RegardsRohan Sarker+913324288069 / +917278539338On Fri, Sep 19, 2014 at 3:44 PM, Rohan Sarker <rohansarkerhr@gmail.com> wrote:I did as mentioned and the command log is as follows:Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved.C:\Users\Dell>cd C:\Ruby200\DevKitC:\Ruby200\DevKit>ruby dk.rb reviewUnable to find 'config.yml'. Have you run 'ruby dk.rb init' yet?C:\Ruby200\DevKit>ruby dk.rbConfigures an MSYS/MinGW based Development Kit (DevKit) foreach of the Ruby installations on your Windows system. TheDevKit enables you to build many of the available nativeRubyGems that don't yet have a binary gem.Usage: ruby dk.rb COMMAND [options]where COMMAND is one of:init prepare DevKit for installationreview review DevKit install planinstall install required DevKit executablesand 'install' [options] are:-f, --force overwrite existing helper scriptsC:\Ruby200\DevKit>ruby dk.rb init[INFO] found RubyInstaller v2.0.0 at C:/Ruby200Initialization complete! Please review and modify the auto-generated'config.yml' file to ensure it contains the root directories to allof the installed Rubies you want enhanced by the DevKit.C:\Ruby200\DevKit>ruby dk.rb install[INFO] Updating convenience notice gem override for 'C:/Ruby200'[INFO] Installing 'C:/Ruby200/lib/ruby/site_ruby/devkit.rb'C:\Ruby200\DevKit>gem update --systemUpdating rubygems-updateFetching: rubygems-update-2.4.1.gem (100%)Successfully installed rubygems-update-2.4.1Parsing documentation for rubygems-update-2.4.1Installing ri documentation for rubygems-update-2.4.1Installing darkfish documentation for rubygems-update-2.4.1Installing RubyGems 2.4.1RubyGems 2.4.1 installedParsing documentation for rubygems-2.4.1Installing ri documentation for rubygems-2.4.1=== 2.4.1 / 2014-07-17Bug fixes:* RubyGems can now be updated on Ruby implementations that do not supportvendordir in RbConfig::CONFIG. Issue #974 by net1957.=== 2.4.0 / 2014-07-16Minor enhancements:* The contents command now supports a --show-install-dir option that showsonly the directory the gem is installed in. Feature request #966 by AkinoriMUSHA.* Added a --build-root option to the install command for packagers. Pullrequest #965 by Marcus Rückert.* Added vendor gem support to RubyGems. Package managers may now install gemsin Gem.vendor_dir with the --vendor option to gem install. Issue #943 byMarcus Rückert.Bug fixes:* Kernel#gem now respects the prerelease flag when activating gems.Previously this behavior was undefined which could lead to bugs when aprerelease version was unintentionally activated. Bug #938 by Joe Ferris.* RubyGems now prefers gems from git over installed gems. This allows gemsfrom git to override an installed gem with the same name and version. Bug#944 by Thomas Kriechbaumer.* Fixed handling of git gems in a lockfile with unversioned dependencies. Bug#940 by Michael Kaiser-Nyman.* The ruby directive in a gem dependencies file is ignored when installing.Bug #941 by Michael Kaiser-Nyman.* Added open to list of builtin commands (`gem open` now works). Reported byEspen Antonsen.* `gem open` now works with command-line editors. Pull request #962 by TimPope.* `gem install -g` now respects `--conservative`. Pull request #950 by JeremyEvans.* RubyGems releases announcements now now include checksums. Bug #939 byAlexander E. Fischer.* RubyGems now expands ~ in $PATH when checking if installed executables willbe runnable. Pull request #945 by Alex Talker.* Fixed `gem install -g --explain`. Issue #947 by Luis Lavena. Patch byHsing-Hui Hsu.* RubyGems locks less during gem activation. Pull request #951 by AaronPatterson and Justin Searls, #969 by Jeremy Tryba.* Kernel#gem is now thread-safe. Pull request #967 by Aaron Patterson.* RubyGems now handles spaces in directory names for some parts of extensionbuilding. Pull request #949 by Tristan Hill.* RubyGems no longer defines an empty Date class. Pull Request #948 by BenoitDaloze.* RubyGems respects --document options for `gem update` again. Bug 946 byjonforums. Patch by Hsing-Hui Hsu.* RubyGems generates documentation again with --ignore-dependencies. Bug #961by Pulfer.* RubyGems can install extensions across partitions now. Pull request #970 byMichael Scherer.* `-s` is now short for `--source` which resolves an ambiguity with--no-suggestions. Pull request #955 by Alexander Kahn.* Added extra test for ~> for 0.0.X versions. Pull request #958 by MarkLorenz.* Fixed typo in gem updated help. Pull request #952 by Per Modin.* Clarified that the gem description should not be excessively long. Part ofbug #956 by Renier Morales.* Hid documentation of outdated test_files related methods in Specification.Guides issue #90 by Emil Soman.* RubyGems now falls back to the old index if the rubygems.org API failsduring gem resolution.------------------------------------------------------------------------------RubyGems installed the following executables:C:/Ruby200/bin/gemRuby Interactive (ri) documentation was installed. ri is kind of like manpages for ruby libraries. You may access it like this:ri Classnameri Classname.class_methodri Classname#instance_methodIf you do not wish to install this documentation in the future, use the--no-document flag, or set it as the default in your ~/.gemrc file. See'gem help env' for details.RubyGems system software updatedC:\Ruby200\DevKit>Then I tried to run Rails Web Server and I failed. Command Log is:Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved.C:\Users\Dell>ruby -vruby 2.0.0p481 (2014-05-08) [i386-mingw32]C:\Users\Dell>bin/rails --version'bin' is not recognized as an internal or external command,operable program or batch file.C:\Users\Dell>cd..C:\Users>cd..C:\>cd Ruby200C:\Ruby200>bin/rails --version'bin' is not recognized as an internal or external command,operable program or batch file.C:\Ruby200>cd binC:\Ruby200\bin>rails --versionDL is deprecated, please use FiddleRails 4.1.6C:\Ruby200\bin>cd blogC:\Ruby200\bin\blog>bin/rails server'bin' is not recognized as an internal or external command,operable program or batch file.C:\Ruby200\bin\blog>cd..C:\Ruby200\bin>rails serverDL is deprecated, please use FiddleUsage:rails new APP_PATH [options]Options:-r, [--ruby=PATH] # Path to the Ruby binary of your choice# Default: C:/Ruby200/bin/ruby.exe-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)[--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile-B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install-G, [--skip-git], [--no-skip-git] # Skip .gitignore file[--skip-keeps], [--no-skip-keeps] # Skip source control .keep files-O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files-V, [--skip-action-view], [--no-skip-action-view] # Skip Action View files-S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files[--skip-spring], [--no-skip-spring] # Don't install Springapplication preloader-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)# Default: sqlite3-j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library# Default: jquery-J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files[--dev], [--no-dev] # Setup the applicationwith Gemfile pointing to your Rails checkout[--edge], [--no-edge] # Setup the applicationwith Gemfile pointing to Rails repository-T, [--skip-test-unit], [--no-skip-test-unit] # Skip Test::Unit files[--rc=RC] # Path to file containing extra configuration options for rails command[--no-rc], [--no-no-rc] # Skip loading of extraconfiguration options from .railsrc fileRuntime options:-f, [--force] # Overwrite files that already exist-p, [--pretend], [--no-pretend] # Run but do not make any changes-q, [--quiet], [--no-quiet] # Suppress status output-s, [--skip], [--no-skip] # Skip files that already existRails options:-h, [--help], [--no-help] # Show this help message and quit-v, [--version], [--no-version] # Show Rails version number and quitDescription:The 'rails new' command creates a new Rails application with a defaultdirectory structure and configuration at the path you specify.You can specify extra command-line arguments to be used every time'rails new' runs in the .railsrc configuration file in your home directory.Note that the arguments specified in the .railsrc file don't affect thedefaults values shown above in this help message.Example:rails new ~/Code/Ruby/weblogThis generates a skeletal Rails installation in ~/Code/Ruby/weblog.See the README in the newly created application to get going.C:\Ruby200\bin>Please help me.RegardsRohan Sarker+913324288069 / +917278539338On Fri, Sep 19, 2014 at 1:29 PM, Vic Abana <vincentabana@gmail.com> wrote:Hi Rohan,
To add to Clayton's message re DevKit. You may use the following instructions.
1) Download DevKit file from http://rubyinstaller.org/downloads (DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe)
2) Extract DevKit to path C:\Ruby200\DevKit
3) Go to DevKit installation directory, cd C:\Ruby200\DevKit
5) Run the command ruby dk.rb review
6) It is useful to review the list of Rubies to be enhanced to use the DevKit and verify the changes you made to it are correct.
Run ruby dk.rb install
7) Run gem update --system and run bundle install to your project folder.
Hope everything will go well while fixing these things. :D
Thanks,
Vic
On Friday, September 19, 2014 3:04:17 PM UTC+8, clayton cottingham wrote:Well if rails and gem are working I wonder:
Have you installed the dev kit?
Looks like the Json gem is failing because the dev kit isnt installed and it needs the build tools inside it
If you have installed the dev kit make sure you follow its instructions. It probably the path issue your error mentions.
Ive used this setup before though so I know its doable
On 18 September, 2014 4:39:40 AM PDT, Rohan Sarker <rohans...@gmail.com> wrote:Starting up the Web Server Error Details:I executed the following commands:$ rails new blog$ cd blog"Starting up the Web Server"$ bin/rails serverC:\Ruby200\blog>bin/rails server'bin' is not recognized as an internal or external command,operable program or batch file.C:\Ruby200\blog>rails serverCould not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine.Run `bundle install` to install missing gems.C:\Ruby200\blog>bundle installDL is deprecated, please use FiddleFetching gem metadata from https://rubygems.org/..........Resolving dependencies...Using rake 10.3.2Using i18n 0.6.11Gem::InstallError: The 'json' native gem requires installed build tools.Please update your PATH to include build tools or download the DevKitfrom 'http://rubyinstaller.org/downloads' and follow the instructionsAn error occurred while installing json (1.8.1), and Bundler cannot continue.Make sure that `gem install json -v '1.8.1'` succeeds before bundling.C:\Ruby200\blog>rails serverCould not find gem 'tzinfo-data (>= 0) x86-mingw32' in the gems available on this machine.Run `bundle install` to install missing gems.C:\Ruby200\blog>Also I could not open the Web Server in http://localhost:3000Unable to connectFirefox can't establish a connection to the server at localhost:3000.The site could be temporarily unavailable or too busy. Try again in a fewmoments.If you are unable to load any pages, check your computer's networkconnection.If your computer or network is protected by a firewall or proxy, make surethat Firefox is permitted to access the Web.Please help in correcting the problem.RegardsRohan Sarker+913324288069 / +917278539338
--
Sent from my Android
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJDt5_Dau88jenWeiz33zAsyxLybhjmCcYwm%3Dt0z%2B525Fd7FKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment