Railsinstaller DevKit on Citrix Windows 2012 R2 Standard issue, unable to install remote or local gems with c dependencies

28 views
Skip to the first unread message

Adam O

unread,
27 Apr 2016, 19:13:0527/04/2016
to RailsInstaller

Hi,

At work I am using a Windows 2012 r2 standard server with xen-tools installed on it. I have installed various ruby versions via the one click installer and railsinstaller, but currently have installed:

ruby 2.1.5p273 (2014-11-13 revision 48405) i386-mingw32

Im quite sure that the devkit is correctly installed, but when I run 'gem install json --platform=ruby' I get the following output:

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.

current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator

C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20160427-4424-6um93k.rb extconf.rb
creating Makefile

current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
c:/railsinstaller/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: generator-i386-mingw32.def:1: syntax error
generator-i386-mingw32.def: file not recognized: File truncated
collect2.exe: error: ld returned 1 exit status
make: *** [generator.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1
.0/gems/json-1.8.3 for inspection.
Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/json-1.8.3/gem_make.out

The results of the gem_make.out is:

'current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20160427-4424-6um93k.rb extconf.rb
creating Makefile

current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
generating generator-i386-mingw32.def
compiling generator.c
linking shared-object json/ext/generator.so
c:/railsinstaller/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe: generator-i386-mingw32.def:1: syntax error
generator-i386-mingw32.def: file not recognized: File truncated
collect2.exe: error: ld returned 1 exit status
make: *** [generator.so] Error 1

make failed, exit code 2'

My current path is:

C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\Sy
stem32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\M
icrosoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\To
ols\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (
x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86
)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\cURL\bin;C:\Program Files
(x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files\nodejs\;C:\RailsIn
staller\Ruby2.1.0\bin;

Please note that I have read the information from the following group, which is almost identical to my issue:

https://groups.google.com/forum/#!msg/rubyinstaller/74wmtd0vkWU/l5zAjOiiKIAJ

To which they have not come up with a solution.

Any help would be much appreciated.
Thanks
Ade

Reply all
Reply to author
Forward
0 new messages