[ANN] RubyInstaller 2.1.3 released

2,145 views
Skip to first unread message

Luis Lavena

unread,
Sep 19, 2014, 8:04:53 PM9/19/14
to rubyin...@googlegroups.com, Ruby Talk
I'm very pleased to announce the release of RubyInstaller packages for Ruby
2.1.3

Installers and 7z binary packages are available from bintray.com:



## Ruby 2.1.3

This new version of Ruby also brings new changes to RubyInstaller.

Similar to 2.0.0, the packages will be provided in two versions:
32bits (x86) and 64bits (x64).

This is possible thanks to newer compiler provided by mingw-w64 project.

Same DevKit used for version 2.0.0 is required for this version.

### Important information

Please note that the installers in this release are *not digitally signed*.

You can read more about this in post at RubyInstaller group:

#### Choosing 32bits vs 64bits

Before you download a 64bits version (labeled x64), it is important you
understand that not all gems, libraries or tools have been tested for this
version.

It is our recommendation you use 32bits until these issues are solved.

If you have a 64bits version of Windows, you can still use 32bits, as there
is no performance issue around it.

#### Ruby 2.1.x is brand new

While officially 2.1.x is stable, that doesn't mean all the software will
magically work on it.

Use 2.1.3 for development and verify your application, scripts and tools works
properly before deciding to run this in your production environment.

#### Existing pre-compiled gems might not be Ruby 2.0 compatible

Ruby 2.1 introduces ABI breakage which means compiled C extensions with previous
1.9.3 or 2.0.0 will not run against Ruby 2.1.

**DO NOT install Ruby 2.1 on top of existing Ruby 1.9.3 or 2.0.0**, or try to
use compiled extensions with it.

You will be required to force compilation of those gems:

    gem install <name> --platform=ruby

This **will require you have the extra dependencies installed** for that gem to
compile. Look at the gem documentation for the requirements.

Please check each gem documentation and recent releases.

#### Do not use other DevKit version than the one recommended

This version of Ruby has been compiled and optimized for mingw-w64 GCC 4.7.2.

Use of another version of DevKit package to compile gems might result in
compilation issues during gem installation or simply segfaults.

Look for the DevKit installers identified with the name 'DevKit-mingw64-32' and
'DevKit-mingw64-64' for 32 and 64 bits respectively.

To be clear:

* Download and install `DevKit-mingw64-32-4.7.2` for 32bits Ruby
* Download and install `DevKit-mingw64-64-4.7.2` for 64bits Ruby

**Known Issues**

There are some issues with Development Kit configuration process that fails
to detect x64 installations of Ruby. You will need to manually edit
`config.yml` for it to work. See the following issues for details:


### MD5:

    594509a374a48fe05598ec203c62f782 *ruby-2.1.3-doc-chm.7z
    60e39aaab140c3a22abdc04ec2017968 *ruby-2.1.3-i386-mingw32.7z
    d339f956db4d4b1e8a30ac3e33014844 *ruby-2.1.3-x64-mingw32.7z
    e5e2c028d76895e9da6c3c86965fc747 *rubyinstaller-2.1.3.exe
    0f29131a6852cf92382c082eaf1dfd34 *rubyinstaller-2.1.3-x64.exe

### Official Announcement:


### Enhancements:

* Upgraded Ruby 2.1 to version 2.1.3
* Upgraded OpenSSL to version 1.0.0n
* Upgraded zlib to version 1.2.8

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Adrián Avila

unread,
Sep 21, 2014, 2:25:37 PM9/21/14
to rubyin...@googlegroups.com, ruby...@ruby-lang.org
I installed it, but eventmachine doesn't work, I get this error after requiring it:


C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/eventmachine-1.0.3/rubyeventmachine.so (LoadError)


I've installed the eventmachine gem just fine, but as son I required it I get this error, the file exists btw. 

Luis Lavena

unread,
Sep 21, 2014, 2:52:40 PM9/21/14
to rubyin...@googlegroups.com, Ruby Talk
Hello Adrian and welcome

Please see my response below.

On Sun, Sep 21, 2014 at 3:25 PM, Adrián Avila <adrian.a...@gmail.com> wrote:
I installed it, but eventmachine doesn't work, I get this error after requiring it:


C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/eventmachine-1.0.3/rubyeventmachine.so (LoadError)


I've installed the eventmachine gem just fine, but as son I required it I get this error, the file exists btw. 


I thought I explained in this release notes, going to quote them again just in case:

#### Existing pre-compiled gems might not be Ruby 2.0 compatible

Ruby 2.1 introduces ABI breakage which means compiled C extensions with previous
1.9.3 or 2.0.0 will not run against Ruby 2.1.

**DO NOT install Ruby 2.1 on top of existing Ruby 1.9.3 or 2.0.0**, or try to
use compiled extensions with it.

You will be required to force compilation of those gems:

    gem install <name> --platform=ruby

This **will require you have the extra dependencies installed** for that gem to
compile. Look at the gem documentation for the requirements.
 
--

This is the same that was reported to Eventmachine issue tracker, and this was exactly the same response:


--

If the note in the release announcement wasn't clear, play say so. I'm not a native english speaker and seems lot of people have missed these notes and complained about the same issue.

Anything you can think of can improve the message and make it more clear will be appreciated.

Cheers,
-- 

Adrián Avila

unread,
Sep 21, 2014, 5:18:59 PM9/21/14
to rubyin...@googlegroups.com, ruby...@ruby-lang.org
You are right, but the part that confuse me is that I'm compiling the eventmachine Gem, not using a binary, so in theory should work.

Luis Lavena

unread,
Sep 21, 2014, 5:32:10 PM9/21/14
to rubyin...@googlegroups.com, Ruby Talk
On Sun, Sep 21, 2014 at 6:18 PM, Adrián Avila <adrian.a...@gmail.com> wrote:
You are right, but the part that confuse me is that I'm compiling the eventmachine Gem, not using a binary, so in theory should work.


Background:

When you install Eventmachine gem via RubyGems, it will pull pre-compiled binaries if they exist.

Lot of gems have bundled binaries into what got called a "fat-binary", which includes compiled extensions to different versions of Ruby, from 1.8.7 to 2.0.0

When you install the gem via `gem install eventmachine`, it will pull the gem that contains pre-compiled binaries and will not attempt to compile it for you, like happens when `--platform=ruby` is given.

Now, the existing binaries do not include compiled extensions that target Ruby 2.1, since is brand new release, and gem authors will take some time to provide those updated binaries.

Gems authors place a stub wrapper to ensure the proper version of the extension is loaded, for example, sqlite3-ruby does this:


It will first attempt to load "sqlite3/X.Y/sqlite3_native" where X.Y are MAJOR.MINOR versions of Ruby (2.1 in this case).

Then, it will fall back to the one that results from normal compilation.

Seems like Eventmachine gem will require to be updated to support this workflow, since the code that should be doing that:


Is only present when cross-compiled (not built natively) and is missing the fallback required (similar to sqlite3-ruby).

I would recommend reach the gem developer and comment this issue, but better yet, will be send a pull request that corrects it instead of relying on gem developer to find the time to fix it.

Hope that helps.

foi first

unread,
Sep 23, 2014, 8:55:29 AM9/23/14
to rubyin...@googlegroups.com, ruby...@ruby-lang.org
Hello! Thanks for release! Why no news on the site http://rubyinstaller.org/ about new rubies? I think few people know about bintray

Luis Lavena

unread,
Sep 23, 2014, 11:11:52 AM9/23/14
to rubyin...@googlegroups.com, Ruby Talk
On Tue, Sep 23, 2014 at 9:55 AM, foi first <foi....@gmail.com> wrote:
Hello! Thanks for release! Why no news on the site http://rubyinstaller.org/ about new rubies? I think few people know about bintray

The release was announced here, not bintray. Bintray provides the download links, which are linked in the announcement.

Also, I wanted people to read the release notes, which didn't happen and they started to report problems everywhere without at least trying to workout the issue locally (after reading the release notes).

Specially when getting personal emails stating this:


Thinking on remove the news announcement for the new website entirely :)


Cheers,
-- 

rogerdpack

unread,
Sep 24, 2014, 4:22:08 PM9/24/14
to rubyin...@googlegroups.com, ruby...@ruby-lang.org


On Friday, September 19, 2014 6:04:53 PM UTC-6, Luis Lavena wrote:
I'm very pleased to announce the release of RubyInstaller packages for Ruby
2.1.3

Nice, congrats, thanks for all the hard work (and continued work).
-roger-
(404 for that last link, /2.1.3 works well).

Luis Lavena

unread,
Sep 24, 2014, 4:24:21 PM9/24/14
to rubyin...@googlegroups.com, Ruby Talk
Doh, really sorry for that.

Correct link to Bintray release is:


You can always look at the root package to determine latest version:


Cheers,
-- 
Reply all
Reply to author
Forward
0 new messages