Can you provide the output of "gem env" ?
For some reason is unable to get into the directory where rdiscount
was extracted. Did you install Ruby using Administrator rights?
--
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
--
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.
Thank you. Are you also running Ruby or executing gem install from an
Admin command prompt (eg. Run As)?
Asking this because if you installed Ruby as admin but not running the
gem install as it, it will be possible you don't have permissions to
write to these folders.
Can you cd into the rdiscount folder:
cd C:\ruby\lib\ruby\gems\1.8\gems\rdiscount-1.6.5\ext\
And try to execute the following command?
ruby -rdevkit extconf.rb
Try the above command in a normal prompt, and if it fails, into an
elevated (Admin) command prompt.
Then paste the results here for us to inspect.
Thank you.
Thank you.
One last thing to try out, and bear with me for a second.
1) Manually remove rdiscount directory:
rd /s/q C:\ruby\lib\ruby\gems\1.8\gems\rdiscount-1.6.5
2) Attempt to install rdiscount, but this time with debug and verbose options:
gem install rdiscount --platform=ruby --debug --verbose
3) Collect the results and use Gist or Pastie to share with us:
http://pastie.org/
http://gist.github.com/
Hello,
I cannot think any reason that will fail precisely during the
extension compilation.
Can I ask which command prompt interpreter are you using? cmd.exe I guess?
Sorry for top posting.
Can you send me the link to that discussion? The installer is not ready for general usage
Sent from mobile.
On Nov 26, 2010 8:46 AM, "Thomas Egret" <thomas...@gmail.com> wrote:
yes i used cmd.exe.
I received another email from someone else who send me a discussion between two people. There were that link in it : https://github.com/oneclick/rubyinstaller/tree/dk-installer
Dunno if it works. I let you know about the link you gave me. thx
>
> On Wed, Nov 24, 2010 at 7:16 PM, Julie <mind...@gmail.com> wrote:
> > debug results here:
> >
...
> --
> You received this message because you are subscribed to the Google Groups "RubyInstaller" gro...
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group...
Thomas,
That link is to an "in progress" development branch I started for an upcoming enhancement (a "true" installer) to the DevKit. I gave the link in response to DevKit enhancement comments from Vit.
While I'd love to have contributions to that branch, that link will not help with the issue you and Luis are investigating. Unfortunately, it's a red herring for your discussion. ;)
Please continue to use the 4.5.0 DevKit's available from http://rubyinstaller.org/downloads for your issue. Luis may want you to try a 4.5.1 DevKit later, but we'll see.
Jon
Are you still having problems? Which specific XP version? Did you try things after disabling all AntiVirus sw?
Also, give us a pastie showing both C:\ruby\lib\ruby\site_ruby\devkit.rb and C:\ruby187\lib\ruby\site_ruby\1.8\rubygems\defaults\operating_system.rb. Mine look like http://pastie.org/1335898
It may make sense to do an uninstall and new install of both RubyInstaller and the DevKit. I'm with Luis and cannot yet see what's failing.
If everything is working as expected with the DevKit, I doubt an existing make.exe will compete as the DevKit overrides put the DevKit locations first on PATH. That said, after a reinstall of both I'd like to see the results using a clean PATH...a helper bat similar to the following:
# cleanpath.bat (assuming you installed Ruby1.8.7 to C:\ruby)
@echo OFF
echo Setting minimal PATH...
set PATH=C:\ruby\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Perhaps you have a bash_profile or any dot file in your %HOME% folder?
Beyond that, I don't see what else could be causing the problem.
Please follow Jon's instructions, install again and report the
contents of the devit and operating_system.rb files
If the issue still continues, please create a pastie of your home
directory contents (dir /a) and look for any dot file that could be
interfering (.bashrc .bash_profile etc)
Regards,
This is plain weird.
Would you mind perform another test?
1) Remove the rdiscount gem:
RD C:\ruby\lib\ruby\gems\1.8\gems\rdiscount-1.6.5 /S /Q
2) Get the following environment variables ouput:
SET PATH
SET HOME
SET USERPROFILE
3) Now, just for checking, do the following, and also provide the output:
ruby -rdevkit -e "system('SET PATH')"
4) Let's try another gem, but this time, we are going to debug the whole thing:
gem install RedCloth --platform=ruby --debug --verbose
5) Generate a pastie of the full output
If we can't get more data, will like to chat with you (GTalk?) and see
if we can use Skype or CrossLoop for me to check this remotely.
Thank you and apologize all the issues and back and forth on this subject.
Definitely try Luis' suggestions first, but if none of the above helps find the gremlin, I noticed that the DevKit helper files were an old version. If you've upgraded to the latest 4.5.1 version they should look something like http://pastie.org/1384498
I'd don't see how an updated DevKit would help, but it's worth checking only after none of the above works.
The only other things I'd add are:
a) can you install non-native gems like "gem install citrus"? I'm guessing yet, but just to be sure.
b) what happens when you do the following after a failed rdiscount install? I couldn't tell from your email whether you were in rdiscount's "ext" dir when you tried to run "extconf.rb"
cd C:\ruby\lib\ruby\gems\1.8\gems\rdiscount-1.6.5\ext
ruby -rdevkit extconf.rb
..or if above doesn't create a Makefile try
ruby -I. -rdevkit extconf.rb
..or maybe
ruby -IC:/ruby/lib/ruby/gems/1.8/gems/rdiscount-1.6.5/ext -rdevkit extconf.rb
I'm guessing on the last two, but it's odd ruby can't find the extconf.rb. I'm hoping it's just that you weren't in the "ext" dir ;)
Jon
Pastie is not working, can you please use gist.github.com or pastebin?
Thank you.
> At this point I'd be glad to have someone do a screen sharing with me
> to help get this resolved.
>
Please add me to to gtalk (luislavena at gmail dot com) or email me
personally so we can coordinate. First would like to look to the
information above.
Thank you, please ping me when you're online.
I might have an idea on what is going on, but let's see first.
Please provide the output of the same things we asked to Julie, if the
environment is different, there must be a common denominator in both
installations that is producing these effects.
Specifically, please add your information to the following if you haven't already:
https://spreadsheets.google.com/viewform?formkey=dG1DajlXc0luLTNKdUhYOWRlZ2FleVE6MQ
Thanks,
Jon
I don't see the link you mention. Also, verify that the devkit was actually installed (ruby dk.rb install)
Sent from mobile.
* Why installed DevKit inside Ruby192\bin directory?
* Why attempted to install rdiscount gem from inside the gem itself?
(you should have been outside)
Nothing you describe there provides me enough information to pinpoint
the failure.
I've been waiting for Julie to come only for do a remote session and no avail.
Julie: I'm UTC-3 timezone (Argentina). Please email me personally so
we can work out this issue.
Nevertheless, for me, the lines 29 and 30 are suspicious, since the line
29 is duplicated. Is it just copy/paste error or is it true?
Moreover, it was not done on plain installed Ruby, otherwise the
messages would be:
C:\devkit>ruby dk.rb install --force
[INFO] Updating convenience notice gem override for 'C:/Ruby19'
[INFO] Installing 'C:/Ruby19/lib/ruby/site_ruby/devkit.rb'
Could you please try to compare content of your
"C:\Ruby19\lib\ruby\1.9.1\rubygems\defaults\operating_system.rb" with
mine attached in this email?
Vit
Dne 4.1.2011 23:29, SATYA napsal(a):
>> Antoine de Saint-Exup�ry
I've Windows 7 and I don't have this problem, so is something else.
> I am new to ruby/rails and
> rusty as I rarely code in my current job. But here is the offending
> code I found in
>
> C:\Ruby19\lib\ruby\1.9.1\rubygems\ext\builder.rb
>
> def self.redirector
> '2>&1'
> end
>
> It fails as is on Windows 7. When I change it to
>
> def self.redirector
> '2>&1'
> puts "Having this comment makes it work in Windows 7"
> end
>
You're chaning what redirector is returning to the calling method.
Redirector is used by Gem::Ext::Builder both both make and run commands.
> It works after I put any trace message after the '2>&1'. I think the
> function is trying to execute "ruby extconf.rb" and somehow there is a
> issue in windows 7. It may be a buffer, timing or an incorrect
> implementation for Windows. But having a comment after the call
> removes the problem. If anyone finds another solution then I can try
> it and report a solution. Would be interesting if Julie can test the
> above on her machine and report her findings.
>
You code is removing the possibility of collect the output into
gem_make.out which happens by default
One last thing to check is the AutoRun registry key of you
installation (and Julie one) and what COMSPEC value is.
These two affect backticks functionality.
Please tell me what SET COMSPEC returns in your system and the AutoRun section:
reg query "HKCU\Software\Microsoft\Command Processor"
reg query "HKLM\Software\Microsoft\Command Processor"
Thank you.
Ok, this was the problem!
Thanks to TeamViewer, we took a look with Julie to these registry keys
and found AutoRun was set:
AutoRun CD C:\
That key was affecting sub process fired by RubyGems during installation.
Removing that key:
reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun
Solved the gem installation issue.
This one was hard!!!
So, any other user having a similar problem, will be great to check
that AutoRun do not contain a command like CD
To workaround Julie's need, I've suggested change the command prompt
shortcut to C:\ instead of %HOMEDRIVE%%HOMEPATH%, just to avoid the CD
need.
This needs to go to the wiki, volunteers? :-D
Julie, again, thank you for your patience on this and hope you can
enjoy now Ruby and Rails on Windows.
Regards,
Julie,
you've spent a lot of frustrating time on this one, but can I sweet talk you into contributing an initial summary to https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting
Don't worry about it being perfect as we can always tweak it. The only slightly tricky part is the way I've got summary links at the top that bounce you to the actual issue when you click the link. The "trick" is to insert an <a name="..."></a> right before the issue details with a "name" corresponding to the one given on the summary link at the top of the page.
You should be able to simply copy-n-paste what's already there, but I'll clean up anything if needed. I'm more interested in getting this captured as this one was certainly *not* obvious.
Thanks, Jon
> --
> 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.
>
Jon
---
blog: http://jonforums.github.com/