Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

create a new application problem #5501

Closed
Obka opened this issue Mar 6, 2017 · 9 comments
Closed

create a new application problem #5501

Obka opened this issue Mar 6, 2017 · 9 comments

Comments

@Obka
Copy link

Obka commented Mar 6, 2017

Hello Dear's

When i use example "rails new blog" or bundle install or anythings show me a error !
how can i solve this problem ?

`
--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out
why things are going wrong.

  • What did you do?

    I ran the command C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/exe/bundle install

  • What did you expect to happen?

    I expected Bundler to...

  • What happened instead?

    Instead, what happened was...

  • Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?

    I tried...

  • Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?

    ...

Backtrace

ArgumentError: unknown encoding name - CP720
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/win32/registry.rb:72:in `find'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/win32/registry.rb:72:in `<module:Win32>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/win32/registry.rb:4:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/win32/resolv.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/resolv.rb:172:in `<class:Hosts>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/resolv.rb:169:in `<class:Resolv>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/resolv.rb:39:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/remote_fetcher.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/fetcher/index.rb:3:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/fetcher.rb:216:in `<class:Fetcher>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/fetcher.rb:9:in `<module:Bundler>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/fetcher.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli/install.rb:58:in `run'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:181:in `block in install'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/settings.rb:99:in `temporary'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:180:in `install'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:20:in `dispatch'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:11:in `start'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/exe/bundle:32:in `block in <main>'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
  C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/exe/bundle:24:in `<main>'

Environment

Bundler   1.14.6
Rubygems  2.5.2
Ruby      2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
Git       2.8.1.windows.1
Platform  x86-mingw32
OpenSSL   OpenSSL 1.0.2j  26 Sep 2016

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=unknown+encoding+name+-+CP720&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new
`
@segiddins
Copy link
Member

This appears to be an issue with the windows-specific part of your ruby installation (the error is coming from the Ruby stdlib)

@Obka
Copy link
Author

Obka commented Mar 6, 2017

@segiddins ooops , ok now how can i fix it ? i guess install ruby correctly

@segiddins
Copy link
Member

Probably file a bug with Ruby / wherever the the win32 parts of ruby are coming from?

@Obka
Copy link
Author

Obka commented Mar 6, 2017

no, i think not have it

@simi
Copy link
Member

simi commented Mar 6, 2017

You need to change terminal code page to supported one. For example with

chcp 1252

before running any ruby command.

You can find more info on SO.

@Obka
Copy link
Author

Obka commented Mar 6, 2017

I do this before

@Obka
Copy link
Author

Obka commented Mar 8, 2017

any body cant help me for solve my problem ?
i need install ruby in rails in my windows platform.

@colby-swandale
Copy link
Member

@Obka This is not the best place to ask for support relating to your issue. I suggest searching Stack Overflow or finding an appropriate mailing list.

@mmostafam
Copy link

I got an issue with bundler :### Gemfile.lock

<No C:/Sites/bootstrap1/Gemfile.lock found>

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=unknown+encoding+name+-+CP720&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new
I've all ruby, rails, gem and bundler installed:
ZBOOK@ZBOOK MINGW64 /c/sites/bootstrap1 (master)
$ cd /c/sites

ZBOOK@ZBOOK MINGW64 /c/sites
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]

ZBOOK@ZBOOK MINGW64 /c/sites
$ rails -v
Rails 5.1.3

ZBOOK@ZBOOK MINGW64 /c/sites
$ gem -v
2.5.2

ZBOOK@ZBOOK MINGW64 /c/sites
$ bundler -v
Bundler version 1.15.3

ZBOOK@ZBOOK MINGW64 /c/sites
$
please help!
thank you>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants