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

if Config::CONFIG['target_os'] == 'mingw32' #172

Closed
rivendale2010 opened this issue Jun 6, 2012 · 10 comments
Closed

if Config::CONFIG['target_os'] == 'mingw32' #172

rivendale2010 opened this issue Jun 6, 2012 · 10 comments

Comments

@rivendale2010
Copy link

on my windows PC this line in the extconf.rb file refers to a directory that can not be created because it is under the directory created by the gem install

if Config::CONFIG['target_os'] == 'mingw32'
find_library('curl', 'curl_easy_init',
File.join(ROOT, 'cross', 'curl-7.19.4.win32', 'bin'))
else
(That would be nice)

the extconf.rb file is in E:\Ruby193\lib\ruby\gems\1.9.1\gems\typhoeus-0.3.3\ext\typhoeus

i can not add the needed files in this location, and my edits to extconf.rb it are overwritten by the install as well...

the optional parameter for include directory does not change the hard coding in the file, so...

what do i do?

ERROR
E:\ruby193_diaspora_ [master +2 ~2 -0 !]> gem install typhoeus
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.

    E:/Ruby193/bin/ruby.exe extconf.rb

extconf.rb:9: Use RbConfig instead of obsolete and deprecated Config.
checking for curl/curl.h in E:/Ruby193/lib/ruby/gems/1.9.1/gems/typhoeus-0.3.3/c
ross/curl-7.19.4.win32/include... no
need libcurl
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

thank you

@hanshasselberg
Copy link
Member

Hi @rivendale2010, could you check if the current master is working? Since we got rid of the c extension it could be much easier.

@rivendale2010
Copy link
Author

i'm fairly new to these things :) thanks very much for the reply

i'm trying to install Diaspora on my windows box, i'm not sure why but it is still including this extconf.rb with reference to the c files?

i have installed all the other gems but the typhoeus gem i'm in over my head with :)

is it possible for me to make the update?

@hanshasselberg
Copy link
Member

@rivendale2010, are you ok with posting your question to the mailinglist again? There are more people who are able to help.

@rivendale2010
Copy link
Author

yup, sure. .thanks. not many seem interested in the windows OS issues but i try again. :_)

@hanshasselberg
Copy link
Member

I just checked the diaspora project.
Try to replace https://github.com/diaspora/diaspora/blob/master/Gemfile#L102 with gem "typhoeus", git: "https://github.com/typhoeus/typhoeus.git", branch: "master". This should install the latest typhoeus.

@rivendale2010
Copy link
Author

thanks very much for the kind support, after a week of looking that's the only reply that made any sense! lol...

i know it's odd, but honestly i think it is retrieving the files from master, but the extconf.rb file is still calling explicitly for directory locations that are not included in the gem

Where does this extconf.rb file come from? the only place i find it is on my local repository?????

@hanshasselberg
Copy link
Member

Hi @rivendale2010,

there is no extconf.rb any more in typhoeus. Did you replaced the line in the Gemfile and ran a bundle update?

@rivendale2010
Copy link
Author

it worked this time! thank you so much! I really means a lot! :)

PS: i did exactly the same thing 200 times yesterday , making the fetch and all, and it did move to 4.0, till this morning?

but what ever the cause, i'm HAPPY now! You are a gem! :)

E:\ruby193_diaspora_ [master +2 ~3 -0 !]> gem install typhoeus
Fetching: typhoeus-0.4.0.gem (100%)
Successfully installed typhoeus-0.4.0
1 gem installed
Installing ri documentation for typhoeus-0.4.0...
Building YARD (yri) index for typhoeus-0.4.0...
Installing RDoc documentation for typhoeus-0.4.0...

@hanshasselberg
Copy link
Member

Glad it worked out!

@rivendale2010
Copy link
Author

well, you know, trying to run Rails apps on Windows is a bit of a bear!

but this new version of typhoeus sure does help, thanks again for the excellent support!

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