abaird/word_cloud

bundler want to install win32 gem for watir

phunold opened this issue · 2 comments

hi

running ubuntu 11.10 and have issue with the bundler to resolve the dependencies.

please see output below, any input is helpful, eager to test your work.

thanks in advance.

# sudo install bundle

skipped...
Installing win32-api (1.4.8) with native extensions /usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:533:in
`build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/bin/ruby1.8 extconf.rb
checking for strncpy_s()... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c win32/api.c
win32/api.c:2:21: fatal error: windows.h: No such file or directory
compilation terminated.
make: *** [api.o] Error 1

Gem files will remain installed in /var/lib/gems/1.8/gems/win32-api-1.4.8 for inspection.

Philipp -

I think the problem here is that bundler is trying to install win32-api on
your Linux machine which makes sense to me why that would fail :)

The dependency is part of the Watir gem which is used to start up the
browser. I didn't write word_cloud to be compatible with Linux
installations but I suppose it could easily be made to do so if I had a
Linux machine available. All that would need to be done is to get Watir to
start up Firefox. I will see if I can look into this but it will be
difficult for me to test since I'm not on Linux. Can you use a windows
machine for this?

Alan

On Thu, Mar 1, 2012 at 11:22 PM, Philipp Hunold <
reply@reply.github.com

wrote:

hi

running ubuntu 11.10 and have issue with the bundler to resolve the
dependencies.

please see output below, any input is helpful, eager to test your work.

thanks in advance.

sudo install bundle

skipped...
Installing win32-api (1.4.8) with native extensions
/usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:533:in
`build_extensions': ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)

   /usr/bin/ruby1.8 extconf.rb

checking for strncpy_s()... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fPIC
-fno-strict-aliasing -g -g -O2 -fPIC -c win32/api.c
win32/api.c:2:21: fatal error: windows.h: No such file or directory
compilation terminated.
make: *** [api.o] Error 1

Gem files will remain installed in /var/lib/gems/1.8/gems/win32-api-1.4.8
for inspection.


Reply to this email directly or view it on GitHub:
#1

Sorry for not replying earlier.

Im a Unix guy so was hoping bundler could resolve the dependency issue,
nevermind it wasnt a good fit. I'm looking for something similar like
Wordpress tag cloud, so I could run it on my ubuntu server and on the fly
with changing data...Wasn't lucky so far to find a fit in ruby.
Thanks for help anyway.
On Mar 2, 2012 9:35 AM, "Alan Baird" <
reply@reply.github.com>
wrote:

Philipp -

I think the problem here is that bundler is trying to install win32-api on
your Linux machine which makes sense to me why that would fail :)

The dependency is part of the Watir gem which is used to start up the
browser. I didn't write word_cloud to be compatible with Linux
installations but I suppose it could easily be made to do so if I had a
Linux machine available. All that would need to be done is to get Watir to
start up Firefox. I will see if I can look into this but it will be
difficult for me to test since I'm not on Linux. Can you use a windows
machine for this?

Alan

On Thu, Mar 1, 2012 at 11:22 PM, Philipp Hunold <
reply@reply.github.com

wrote:

hi

running ubuntu 11.10 and have issue with the bundler to resolve the
dependencies.

please see output below, any input is helpful, eager to test your work.

thanks in advance.

sudo install bundle

skipped...
Installing win32-api (1.4.8) with native extensions
/usr/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:533:in
`build_extensions': ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)

   /usr/bin/ruby1.8 extconf.rb

checking for strncpy_s()... no
creating Makefile

make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -fPIC
-fno-strict-aliasing -g -g -O2 -fPIC -c win32/api.c
win32/api.c:2:21: fatal error: windows.h: No such file or directory
compilation terminated.
make: *** [api.o] Error 1

Gem files will remain installed in /var/lib/gems/1.8/gems/win32-api-1.4.8
for inspection.


Reply to this email directly or view it on GitHub:
#1


Reply to this email directly or view it on GitHub:
#1 (comment)