--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
I've commented Daniel about using fat-binaries, but I couldn't find
the time to hack windows-to-windows fat-binaries into rake-compiler.
So you need to cross compile :-(
In the mean time you can force the installation of source code version
with --platform=ruby during the gem installation process.
--
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
Using our 1.9.1p429 and the DevKit (newer unreleased version although the existing version should also work) I used "gem install livereload --platform=ruby" and it all seems to have gone well.
Of livereload's deps (eventmachine, em-websocket, em-dir-watcher, ruby-json) only eventmachine required the DevKit to build native libraries.
I also did a "gem install win32-changenotify win32-event --platform=ruby" and of their deps (win32-api, windows-api, windows-pr, win32-ipc) only win32-api required the DevKit to build native libraries.
All DevKit built libraries appear to be linked properly and have their deps satisfied.
I successfully installed the Chrome extension but haven't yet tried it all out to see if it works. That said, it looks like all the pieces install correctly when used with the DevKit.
Do you have the DevKit installed and have you tried the above gem install incantations?
Jon
Tangentially, is anyone else having problems installing EventMachine
under 1.9.2dev? Here's what I get: http://gist.github.com/520590
I know the answer is "when it's ready", but do you have an estimate of
when the easy-to-install DevKit will be ready for the general public?
Cheers,
Charles
I believe EventMachine needs some adjustments for 1.9.2, I would
suggest clone EM repo and try building it to see the errors.
> I know the answer is "when it's ready", but do you have an estimate of
> when the easy-to-install DevKit will be ready for the general public?
>
The SFX and 7z packages for 3.4.5 and 4.5.0 are ready, also the dk.rb
which puts the RubyGems hook and devkit require in place.
(All of that on master)
Yes, --platform=ruby did the trick. It's now working under 1.9.1p429
(2010-07-02 revision 28523). Thank you guys - I'll relay this
information back to the LiveReload guys.
Tangentially, is anyone else having problems installing EventMachine
under 1.9.2dev? Here's what I get: http://gist.github.com/520590
I know the answer is "when it's ready", but do you have an estimate of
when the easy-to-install DevKit will be ready for the general public?
> As Luis mentioned, everything is on master so you can build your own DevKit
> as simply as
> git clone git://github.com/oneclick/rubyinstaller.git
> cd rubyinstaller
> rake devkit sfx=1
> cd ..\pkg
As you must have been writing this, I was doing a rake devkit 7z=1. Slick.
So I've got the old devkit installed via pik. Briefly, what do I need
to do to get this new one working?
Charles
1) Extract the new DevKit into a directory you're confortable with,
doesn't need to be in the PATH (eg C:\DevKit)
2) call dk.rb from one of your existing versions of ruby:
ruby C:\DevKit\dk.rb init
That will generate a config.yml in your current directory including a
list of all the Ruby versions if found. If your version of ruby is not
there...
3) Manually edit config.yml to include your versions of Ruby. In my
case, I did "pik ls -v" to obtain the paths and then edited config.yml
to contain them.
Since is a YAML file, remember use "-" and "/" for the paths.
Save the file
4) Review the list of Rubies:
ruby C:\DevKit\dk.rb review
Check all your MinGW-based Rubies are there.
5) Remove the stubs (gcc, make, sh) that Pik installed.
We are no longer encouraging to use those and instead we hook gem
installation. Remove them from your Ruby installations and then
proceed with next step
6) Install:
ruby C:\DevKit\dk.rb install
7) Try installing a new gem:
gem install RedCloth --platform=ruby
Expect to see this as part of the output:
Temporarily enhancing PATH to include DevKit...
You can later call "C:\DevKit\devkitvars.bat" to get GCC and MSYS
added to your PATH.
First, rename (or delete) all the old {gcc,make,sh}.bat scripts in your Ruby bindirs from the legacy DevKit to something like gcc.bat.orig.
Then...
# extract the pkg/DevKit...-sfx.exe to a dir with no spaces
cd <DEVKIT_INSTALL_DIR>
ruby dk.rb init
# edit to generated 'config.yml' to include the root dirs
# of all the installed Rubies on your system that were not
# automagically discovered
ruby dk.rb review
# all Rubies to be enhanced with the Devkit listed?
ruby dk.rb install
That's it. You can now "gem install some-native-gem --platform=ruby" and it should work. Let us know if you run into any problems.
Jon
[C:\Users\charlesr\Desktop\devkit]ruby dk.rb init
[INFO] unable to open HKEY_LOCAL_MACHINE\Software\RubyInstaller\MRI...
[INFO] unable to open HKEY_LOCAL_MACHINE\Software\RubyInstaller\Rubinius...
[INFO] unable to open HKEY_CURRENT_USER\Software\RubyInstaller\Rubinius...
Which was leading me to believe it wasn't working. Are there plans to
add detection support for pik? I'll try editing that yaml file now...
Cheers,
Charles
I think that should be changed to positive things instead of the
opposite (found instead of ..)
>Are there plans to
> add detection support for pik? I'll try editing that yaml file now...
>
Since pik can contain MSVC versions of Ruby too, we haven't considered
using ~/.pik/config.yml
But indeed is a good idea, and I believe can be paired after the
registry scan. Patches are welcome :-D
You're right, that's ugly. They're internal messages that really shouldn't be shown anyways...changing.
No plans yet for integration with pik although I want to talk a bit with Gordon and see what he thinks.
As Luis stated, pik supports MSVC versions as well as IronRuby so we need to think what makes most sense and doesn't cause weird corner case instability bugs.
Jon
To swing this thread back round to LiveReload, am I right in thinking
this would be the install procedure on a clean system:
1. Download and install RubyInstaller
2. Download the devkit.exe installer
3. Run devkit.exe SFX and extract to a path without spaces; e.g.,
C:\Users\*username*\DevKit
4. Open a command prompt and CD to your newly created DevKit directory
5. Run the following commands:
ruby dk.rb init
ruby dk.rb install
gem update --system
gem install eventmachine win32-changenotify win32-event livereload
--platform=ruby
Charles
Looks good to me and I would add a "ruby dk.rb review" between "init" and "install" as a quick double-check.
Before you post this to the LiveReload thread, give me some time to update dk.rb to get rid of the unnecessary info messages when running init.
Jon
You guys have done a truly remarkable job of making Ruby on Windows
vastly more pleasurable and practical. Thank you. :D
Download this and overwrite the existing dk.rb in your DevKit install dir:
http://github.com/oneclick/rubyinstaller/raw/master/resources/devkit/dk.rb
Then rename your existing config.yml to config.yml.orig and rerun "ruby dk.rb init" and tell me what you think.
FYI, you can rerun "ruby dk.rb install" multiple times and the script is smart enough to not overwrite files that already exist.
Jon
*Much* better!
[C:\Users\charlesr\Desktop\devkit]ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/Users/charlesr/Tools/Ruby187
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
Hi,
I am not able to overcome the error
"This application has failed to start because msvcrt-ruby18.dll wasnot found. Re-installing the application may fix this problem."
I have uninstalled win32-api gem as follows:
C:\Work\gems>gem uninstall win32-api
You have requested to uninstall the gem:
win32-api-1.4.6-x86-mingw32
windows-api-0.4.0 depends on [win32-api (>= 1.4.5)]
windows-pr-1.0.9 depends on [win32-api (>= 1.4.5)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Successfully uninstalled win32-api-1.4.6-x86-mingw32
And then I have reinstalled using
C:\Work\gems>gem install win32-api --platform=ruby
Temporarily enhancing PATH to include DevKit...Successfully installed win32-api-1.4.6-x86-mingw32
1 gem installed
Installing ri documentation for win32-api-1.4.6-x86-mingw32...
Installing RDoc documentation for win32-api-1.4.6-x86-mingw32...
The binary gem has been build against Ruby 1.8, not 1.9
Please uninstall all the win32-* and windows-* and install with --platform=ruby
> And then I have reinstalled using
>
> C:\Work\gems>gem install win32-api --platform=ruby
> Temporarily enhancing PATH to include DevKit...
> Successfully installed win32-api-1.4.6-x86-mingw32
> 1 gem installed
> Installing ri documentation for win32-api-1.4.6-x86-mingw32...
> Installing RDoc documentation for win32-api-1.4.6-x86-mingw32...
>
> but I still get the msvcrt-ruby18.dll error popup when I start irb and
> reference 'win32/api'
That is because it is always installing x86-mingw32 compiled gem.