2014-06-12 34 views
5

मैं विंडोज मशीन पर प्यूमा मणि स्थापित करने की कोशिश कर रहा हूं। मुझे निम्नलिखित त्रुटि प्राप्त हो रही है। कुछ मंचों के माध्यम से चला गया लेकिन व्यर्थ में।विंडोज़ पर प्यूमा स्थापना त्रुटि

C:/railsInstaller/Ruby2.0.0/bin/ruby.exe extconf.rb 
creating Makefile 

make 
generating puma_http11-i386-mingw32.def 
compiling http11_parser.c 
ext/http11/http11_parser.rl: In function 'puma_parser_execute': 
ext/http11/http11_parser.rl:111:3: warning: comparison between signed and unsigned integer expressions 
compiling io_buffer.c 
io_buffer.c: In function 'buf_to_str': 
io_buffer.c:119:3: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness 
c:/RailsInstaller/Ruby2.0.0/include/ruby-2.0.0/ruby/intern.h:668:7: note: expected 'const char *' but argument is of type 'uint8_t *' 
compiling mini_ssl.c 
In file included from mini_ssl.c:3:0: 
c:/RailsInstaller/Ruby2.0.0/include/ruby-2.0.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h" 
mini_ssl.c:4:25: fatal error: openssl/bio.h: No such file or directory 
compilation terminated. 
make: *** [mini_ssl.o] Error 1 

मैं के रूप में https://github.com/puma/puma/issues/202 पर उल्लेख किया openssl हेडर संकुल और पुस्तकालयों स्थापित करने के लिए कोशिश की है, लिंक काम नहीं करते।

+1

इस विंडो उपयोगकर्ताओं के लिए एक बड़ा मुद्दा रहा है। [यह] देखें (https://github.com/puma/puma/issues/202) और [यह] (https://github.com/puma/puma/issues/424)। –

+0

संभावित डुप्लिकेट [रेल पर रूबी पर प्यूमा मणि इंस्टॉल नहीं कर सकता है।] (Http://stackoverflow.com/questions/20294199/cannot-install-puma-gem-on-ruby-on-rails) –

उत्तर

7

मैं bundle install से पहले भाग गया और इससे मेरे लिए समस्या हल हो गई।

  1. चेक किए गए openssl का कौन सा संस्करण रूबी उपयोग कर रहा है ruby -v -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
  2. चलाकर:

    मैं के रूप में मैं मैन्युअल कि इससे पहले कि प्यूमा अद्यतन निम्न चरणों का उपयोग करते हुए, कि अगर केवल एक चीज है कि मदद की यकीन नहीं है, http://packages.openknapsack.org/openssl/openssl-1.0.0o-x86-windows.tar.lzma से सही openssl संस्करण डाउनलोड किया गया (https://github.com/hicknhack-software/rails-disco/wiki/Installing-puma-on-windows से लिंक मिला और इसे # 1 के आउटपुट के आधार पर संपादित किया गया)।

  3. निकाले openssl सेल्सियस तक http://www.7-zip.org का उपयोग कर: \ RailsInstaller \ openssl
  4. gem install puma -- --with-opt-dir=C:/RailsInstaller/openssl
+1

आपने अपना दिन बचाया। कुडोस !!! :) –

+0

खुशी है कि आपको यह सहायक मिला! –

+0

आपने मेरा दिन भी बचाया। धन्यवाद!! – purplerice

संबंधित मुद्दे