Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Railsinstaller DevKit on Citrix Windows 2012 R2 Standard issue #80

Open
adeoke opened this issue Apr 27, 2016 · 1 comment
Open

Railsinstaller DevKit on Citrix Windows 2012 R2 Standard issue #80

adeoke opened this issue Apr 27, 2016 · 1 comment

Comments

@adeoke
Copy link

adeoke commented Apr 27, 2016

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

@emachnic
Copy link
Contributor

Please try with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants