Skip to content

Instantly share code, notes, and snippets.

@bagwanpankaj
Last active May 10, 2021 00:56
Show Gist options
  • Save bagwanpankaj/ab5a43a633009b4e2ba2 to your computer and use it in GitHub Desktop.
Save bagwanpankaj/ab5a43a633009b4e2ba2 to your computer and use it in GitHub Desktop.

Revisions

  1. bagwanpankaj revised this gist Jan 15, 2016. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion ruby_windows_troubleshooting.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@ Removing update_rubygems
    Successfully uninstalled rubygems-update-2.2.3
    ```

    # Timeout Error for gem install
    ## Timeout Error for gem install

    1.) Identify proxy IP for system

    @@ -62,3 +62,16 @@ Successfully uninstalled rubygems-update-2.2.3

    3.) Setup using `cmd`

    ## CoffeeScriptError (Windows 64 Bit): ExecJS::ProgramError in Posts#index' TypeError: Object doesn't support this property or method

    Rollback `coffee-script-source` back to version 1.8.0 by adding following line to your Gemfile

    ````
    gem 'coffee-script-source', '1.8.0'
    ````

    After that update `coffee-script-source` by running

    ````
    bundle update coffee-script-source
    ````
  2. bagwanpankaj revised this gist Sep 4, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ruby_windows_troubleshooting.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,9 @@ meantime, please proceed using the instructions described below.
    ### Installing using update packages

    1.) Find RubyGems version by running `gem -v`

    2.) Download `rubygems-update-X.Y.Z.gem` (find the version higher than your current version)

    You can find download links at GitHub under
    [Releases](https://github.com/rubygems/rubygems/releases).

  3. bagwanpankaj revised this gist Sep 4, 2015. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions ruby_windows_troubleshooting.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ meantime, please proceed using the instructions described below.
    You can find download links at GitHub under
    [Releases](https://github.com/rubygems/rubygems/releases).

    version for the version of RubyGems you need to update:
    Version for the version of RubyGems you need to update:
    - Running 1.8.x: download [1.8.30](https://github.com/rubygems/rubygems/releases/tag/v1.8.30)
    - Running 2.0.x: donwload [2.0.15](https://github.com/rubygems/rubygems/releases/tag/v2.0.15)
    - Running 2.2.x: download [2.2.3](https://github.com/rubygems/rubygems/releases/tag/v2.2.3)
    @@ -51,9 +51,8 @@ Successfully uninstalled rubygems-update-2.2.3

    1.) Identify proxy IP for system

    a.) Look for Proxy settings in IE **OR**

    b.) Look for Proxy settings in Firefox
    - Look for Proxy settings in IE **OR**
    - Look for Proxy settings in Firefox

    2.) Set Up HTTP_PROXY Environment Variable (By using MS Control Panel)

  4. bagwanpankaj revised this gist Sep 4, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions ruby_windows_troubleshooting.md
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,7 @@ Please move file out of Downloads/ folder to somewhere you can later point out
    C:\> gem install --local C:\rubygems-update-1.8.30.gem
    C:\> update_rubygems --no-ri --no-rdoc
    ```

    4.) After this check gems version `gem -v`. This should be updated version

    5.) You could now uninstall `rubygems-update`
    @@ -49,9 +50,14 @@ Successfully uninstalled rubygems-update-2.2.3
    # Timeout Error for gem install

    1.) Identify proxy IP for system

    a.) Look for Proxy settings in IE **OR**

    b.) Look for Proxy settings in Firefox

    2.) Set Up HTTP_PROXY Environment Variable (By using MS Control Panel)

    **OR**

    3.) Setup using `cmd`

  5. bagwanpankaj revised this gist Sep 4, 2015. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion ruby_windows_troubleshooting.md
    Original file line number Diff line number Diff line change
    @@ -44,4 +44,14 @@ C:\> update_rubygems --no-ri --no-rdoc
    C:\>gem uninstall rubygems-update -x
    Removing update_rubygems
    Successfully uninstalled rubygems-update-2.2.3
    ```
    ```

    # Timeout Error for gem install

    1.) Identify proxy IP for system
    a.) Look for Proxy settings in IE **OR**
    b.) Look for Proxy settings in Firefox
    2.) Set Up HTTP_PROXY Environment Variable (By using MS Control Panel)
    **OR**
    3.) Setup using `cmd`

  6. bagwanpankaj renamed this gist Sep 4, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. bagwanpankaj created this gist Sep 4, 2015.
    47 changes: 47 additions & 0 deletions Ruby and Windows
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    ## RubyGems SSL Error

    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

    This error is actually produced by changes on rubygems site certificate in lieu of recent OpenSSL vulnerabilities.
    To fix this error one need to upgrade their rubygems

    ### Specific problem with RubyGems

    RubyGems bundles its trust certificate within itself (as it is used from command line tool),
    where some OS does not able to verify the identity of them.

    Recently CA for RubyGems.Org has changed, thus changing the certificate. Because
    of this existing installation of rubygems has to be upgraded. In case of windows
    since most people use [RailsInstaller](http://railsinstaller.org) it is still
    distributed with old rubygems.Leaving RubyGems 2.4 is broken on Windows.

    Once official releases are out, installation might be simpler. In the
    meantime, please proceed using the instructions described below.

    ### Installing using update packages

    1.) Find RubyGems version by running `gem -v`
    2.) Download `rubygems-update-X.Y.Z.gem` (find the version higher than your current version)
    You can find download links at GitHub under
    [Releases](https://github.com/rubygems/rubygems/releases).

    version for the version of RubyGems you need to update:
    - Running 1.8.x: download [1.8.30](https://github.com/rubygems/rubygems/releases/tag/v1.8.30)
    - Running 2.0.x: donwload [2.0.15](https://github.com/rubygems/rubygems/releases/tag/v2.0.15)
    - Running 2.2.x: download [2.2.3](https://github.com/rubygems/rubygems/releases/tag/v2.2.3)

    Please move file out of Downloads/ folder to somewhere you can later point out

    3.) Install gem locally (by running below specified command)
    ```
    C:\> gem install --local C:\rubygems-update-1.8.30.gem
    C:\> update_rubygems --no-ri --no-rdoc
    ```
    4.) After this check gems version `gem -v`. This should be updated version

    5.) You could now uninstall `rubygems-update`
    ```
    C:\>gem uninstall rubygems-update -x
    Removing update_rubygems
    Successfully uninstalled rubygems-update-2.2.3
    ```