Problem to install DevKit-4.5.1. on Vista

132 views
Skip to first unread message

arufanov

unread,
Jul 27, 2011, 2:41:05 AM7/27/11
to RubyInstaller
Hi!

I have successfully installed DevKit on Win Xp, but have trouble to
install on Win32 Vista (if somebody need special information about
vista, let me know). I wasn't able to find solution at Google and at
http://github.com/oneclick/rubyinstaller/wiki/Troubleshooting. I am
using DevKit-4.5.1. I have installed it according documentation and
run gem install rdiscount --platform=ruby, result is: “ERROR: Failed
to build gem native extension. “ and no mkmf.log file. I am able to
run make -f Makefile and native extension is build OK.

Could anybody direct me to resolve this problem? Any help is
appreciated.

Sincerely yours,
Rufanov Artem.

P.S.
-1.Initial install log:
gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.

c:/Binutils/Ruby192/bin/ruby.exe extconf.rb

checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

Gem files will remain installed in c:/Binutils/Ruby192/lib/ruby/gems/
1.9.1/gems/
rdiscount-1.6.8 for inspection.
Results logged to c:/Binutils/Ruby192/lib/ruby/gems/1.9.1/gems/
rdiscount-1.6.8/e

-2.The content of the gem_make.out:
c:/Binutils/Ruby192/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

-3.I was trying run make manuall, here is log (all is ok):

...
there are a lot of warning and
...
markdown.h:135:13: note: expected 'void (*)(int, void *)' but
argument is of ty
pe 'void (*)(int, struct Cstring *)'
toc.c:54:7: warning: passing argument 2 of 'Csprintf' discards
qualifiers from p
ointer target type
cstring.h:73:12: note: expected 'char *' but argument is of type
'const char *'
toc.c:56:7: warning: passing argument 2 of 'Csprintf' discards
qualifiers from p
ointer target type
cstring.h:73:12: note: expected 'char *' but argument is of type
'const char *'
toc.c:64:4: warning: passing argument 2 of 'Csprintf' discards
qualifiers from p
ointer target type
cstring.h:73:12: note: expected 'char *' but argument is of type
'const char *'
gcc -I. -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/c/
Binutils/Ruby
192/include/ruby-1.9.1/ruby/backward -I/c/Binutils/Ruby192/include/
ruby-1.9.1 -I
. -DHAVE_RAND -DHAVE_SRAND -O3 -g -Wextra -Wno-unused-parameter -
Wno-parenthe
ses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -
Wno-long-lo
ng -o xml.o -c xml.c
xml.c: In function 'mkd_xmlchar':
xml.c:26:17: warning: return discards qualifiers from pointer target
type
xml.c:27:17: warning: return discards qualifiers from pointer target
type
xml.c:28:17: warning: return discards qualifiers from pointer target
type
xml.c:29:17: warning: return discards qualifiers from pointer target
type
xml.c:30:17: warning: return discards qualifiers from pointer target
type
xml.c:33:3: warning: return discards qualifiers from pointer target
type
gcc -shared -s -o rdiscount.so basename.o Csio.o css.o docheader.o
dumptree.o em
match.o generate.o html5.o markdown.o mkdio.o rdiscount.o resource.o
tags.o toc.
o xml.o -L. -Lc:/Binutils/Ruby192/lib -L. -Wl,--enable-auto-image-
base,--enable
-auto-import rdiscount-i386-mingw32.def -lmsvcrt-ruby191 -lshell32 -
lws2_32

arufanov@HOMEPC /c/Binutils/Ruby192/lib/ruby/gems/1.9.1/gems/
rdiscount-1.6.8/ext


-4.Content of the mkmf.log that is created after run command make -f
Makefile manually:

have_func: checking for random()... -------------------- no

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
conftest.c: In function 't':
conftest.c:8:53: error: 'random' undeclared (first use in this
function)
conftest.c:8:53: note: each undeclared identifier is reported only
once for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))random; return
0; }
/* end */

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
C:\Users\arufanov\AppData\Local\Temp\ccNagZp4.o: In function `t':
c:\Binutils\Ruby192\lib\ruby\gems\1.9.1\gems\rdiscount-1.6.8\ext/
conftest.c:8:
undefined reference to `random'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { random(); return 0; }
/* end */

--------------------

have_func: checking for srandom()... -------------------- no

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
conftest.c: In function 't':
conftest.c:8:53: error: 'srandom' undeclared (first use in this
function)
conftest.c:8:53: note: each undeclared identifier is reported only
once for each function it appears in
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))srandom; return
0; }
/* end */

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
C:\Users\arufanov\AppData\Local\Temp\ccZcX9sQ.o: In function `t':
c:\Binutils\Ruby192\lib\ruby\gems\1.9.1\gems\rdiscount-1.6.8\ext/
conftest.c:8:
undefined reference to `srandom'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { srandom(); return 0; }
/* end */

--------------------

have_func: checking for rand()... -------------------- yes

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))rand; return
0; }
/* end */

--------------------

have_func: checking for srand()... -------------------- yes

"gcc -o conftest -Ic:/Binutils/Ruby192/include/ruby-1.9.1/i386-mingw32
-Ic:/Binutils/Ruby192/include/ruby-1.9.1/ruby/backward
-Ic:/Binutils/Ruby192/include/ruby-1.9.1 -I. -O3 -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long conftest.c -L.
-Lc:/Binutils/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32
-lws2_32 "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5:
6: /*top*/
7: int main() {return 0;}
8: int t() { void ((*volatile p)()); p = (void ((*)()))srand; return
0; }
/* end */

--------------------


-5.Second attemp to install gem:
$ gem install rdiscount --platform=ruby
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.

c:/Binutils/Ruby192/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile


Gem files will remain installed in c:/Binutils/Ruby192/lib/ruby/gems/
1.9.1/gems/
rdiscount-1.6.8 for inspection.
Results logged to c:/Binutils/Ruby192/lib/ruby/gems/1.9.1/gems/
rdiscount-1.6.8/e
xt/gem_make.out

arufanov@HOMEPC /c/Binutils/Ruby192/lib/ruby/gems/1.9.1/gems/
rdiscount-1.6.8/ext

$

Boško Ivanišević

unread,
Jul 27, 2011, 3:09:35 AM7/27/11
to rubyin...@googlegroups.com
On Wed, Jul 27, 2011 at 8:41 AM, arufanov <aruf...@gmail.com> wrote:
Hi!

I have successfully installed DevKit on Win Xp, but have trouble to
install on Win32 Vista (if somebody need special information about
vista, let me know). I wasn't able to find solution at Google and at
http://github.com/oneclick/rubyinstaller/wiki/Troubleshooting. I am
using DevKit-4.5.1.  I have installed it according documentation and
run gem install rdiscount --platform=ruby, result is: “ERROR: Failed
to build gem native extension. “ and no mkmf.log file. I am able to
run make -f Makefile and native extension is build OK.

Could anybody direct me to resolve this problem? Any help is
appreciated.

Sincerely yours,
Rufanov Artem.

P.S.
-1.Initial install log:
gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Building native extensions. This could take a while...

It seems that DevKit is not used and you have other build tools in your path. What is the output of

where make


--
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.




--
Regards,
Boško Ivanišević

bala

unread,
Jul 27, 2011, 5:09:10 AM7/27/11
to RubyInstaller
Hi

Try this link https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#gems_fails_autorun

It solved similar problem I had with XP, Vista, Win 7.

arufanov

unread,
Jul 27, 2011, 2:08:24 PM7/27/11
to RubyInstaller
Hi!

I installed cucumber and was trying to color my console by ansicon.exe
a long time ago. And I has "AutoRun REG_SZ "C:\Develops\_fucik
\x86\ansicon.exe" -p", so now problem is fixed but according to
https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#gems_fails_autorun
I should have message "C:/ruby/bin/ruby.exe: No such file or directory
-- extconf.rb" and I doesn't according to my previous log. I would be
great to improve wiki ( I suppose this is message for moderator?).

Boško thank you for help!


Sincerely yours,
Rufanov Artem.

P.S.
Log:
C:\Binutils\DevKit-4.5.1>REG QUERY "HKCU\Software\Microsoft\Command
Processor"
The system cannot find the path specified.

HKEY_CURRENT_USER\Software\Microsoft\Command Processor
CompletionChar REG_DWORD 0x9
DefaultColor REG_DWORD 0x0
EnableExtensions REG_DWORD 0x1
PathCompletionChar REG_DWORD 0x9
AutoRun REG_SZ "C:\Develops\_fucik\x86\ansicon.exe" -p


C:\Binutils\DevKit-4.5.1>REG QUERY "HKLM\Software\Microsoft\Command
Processor"
The system cannot find the path specified.

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor
CompletionChar REG_DWORD 0x40
DefaultColor REG_DWORD 0x0
EnableExtensions REG_DWORD 0x1
PathCompletionChar REG_DWORD 0x40


C:\Binutils\DevKit-4.5.1>REG DELETE "HKCU\Software\Microsoft\Command
Processor" /v AutoRun
The system cannot find the path specified.
Delete the registry value AutoRun (Yes/No)? y
The operation completed successfully.

C:\Binutils\DevKit-4.5.1>REG QUERY "HKCU\Software\Microsoft\Command
Processor"

HKEY_CURRENT_USER\Software\Microsoft\Command Processor
CompletionChar REG_DWORD 0x9
DefaultColor REG_DWORD 0x0
EnableExtensions REG_DWORD 0x1
PathCompletionChar REG_DWORD 0x9


C:\Binutils\DevKit-4.5.1>cd /
C:\>


On Jul 27, 1:09 pm, bala <balachandran.kan...@gmail.com> wrote:
> Hi
>
> Try this linkhttps://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#gems_f...

Luis Lavena

unread,
Jul 27, 2011, 2:09:52 PM7/27/11
to rubyin...@googlegroups.com
2011/7/27 arufanov <aruf...@gmail.com>

Hi!

I installed cucumber and was trying to color my console by ansicon.exe
a long time ago. And I has "AutoRun    REG_SZ    "C:\Develops\_fucik
\x86\ansicon.exe" -p", so now problem is fixed but according to
I should have message "C:/ruby/bin/ruby.exe: No such file or directory
-- extconf.rb" and I doesn't according to my previous log. I would be
great to improve wiki ( I suppose this is message for moderator?).


Sorry for the confusion, but the problem is actually raised by AutoRun, so is one of the common problems the "ruby.exe extconf not found", seems there is another :-P

--
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
Reply all
Reply to author
Forward
0 new messages