jopenssl error?
-
cyberkid81
Ok. I did some more reading. I got it working, but with two warnings. The warnings are at the bottom. I have detailed the steps I took in hopes of saving someone else some time. If you're able to help with the warnings, they're listed at the bottom of my post.
Thanks!
I modified ruby-1.8.7/ext/Setup and uncommented openssl. I then recompiled. That resulted in a new error:
/usr/local/lib/ruby/1.8/openssl/ssl.rb:26: uninitialized constant OpenSSL::SSL::VERIFY_PEER (NameError)I did some reading on that and came across this thread: http://redmine.ruby-lang.org/issues/show/863
I modified ruby-1.8.7/ext/openssl/ossl_digest.c to remove the line containing "rb_require("openssl");" inside of the "Init_ossl_digest" function (I didn't look at the line number...just searched for it, found it, and removed it).
I then cd'd back to ruby-1.8.7 and ran the following commands:
make clean ./configure make make test make installI then ran this command to see if it would give an error... and it didn't! :)
irb
irb(main):001:0> require 'openssl' => true irb(main):002:0> exit
I tried re-running the google test program... and got another error....
WARNING: Nokogiri was built against LibXML version 2.6.26, but has dynamically loaded 2.6.27
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require': no such file to load -- firewatir (LoadError)from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/agents/firewatir.rb:2 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt.rb:29 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from ./favicon.rb:4So, I ran this:
gem install firewatirI got this as output:
Successfully installed xml-simple-1.0.12 Successfully installed json_pure-1.4.3
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.6.0
Successfully installed s4t-utils-1.0.4
Successfully installed builder-2.1.2
Successfully installed user-choices-1.1.6.1
Successfully installed commonwatir-1.6.5
Successfully installed firewatir-1.6.5
9 gems installed
Installing ri documentation for xml-simple-1.0.12...
Installing ri documentation for json_pure-1.4.3...
Installing ri documentation for rubyforge-2.0.4...
Installing ri documentation for hoe-2.6.0...
Installing ri documentation for s4t-utils-1.0.4...
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->" ... RDOC args: --ri --op /usr/local/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation (continuing with the rest of the installation) Installing ri documentation for user-choices-1.1.6.1...
Installing ri documentation for commonwatir-1.6.5...
Installing ri documentation for firewatir-1.6.5...
Installing RDoc documentation for xml-simple-1.0.12...
Installing RDoc documentation for json_pure-1.4.3...
Installing RDoc documentation for rubyforge-2.0.4...
Installing RDoc documentation for hoe-2.6.0...
Installing RDoc documentation for s4t-utils-1.0.4...
Installing RDoc documentation for builder-2.1.2...
Installing RDoc documentation for user-choices-1.1.6.1...
Installing RDoc documentation for commonwatir-1.6.5...
Installing RDoc documentation for firewatir-1.6.5...I tried running the google test program again. Guess what? No run-errors!
root@XXXXXX ~/xpath_playground/ruby]#ruby google.rb
WARNING: Nokogiri was built against LibXML version 2.6.26, but has dynamically loaded 2.6.27
!!!!! DEPRECATION NOTICE !!!!! The WWW constant is deprecated, please switch to the new top-level Mechanize
constant. WWW will be removed in Mechanize version 2.0You've referenced the WWW constant from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in
included', please<br/> switch the "WWW" to "Mechanize". Thanks!Sincerely,
Pew Pew Pew
[{:link_title=>"Ruby Programming Language", :link_url=>"http://ruby-lang.org/"}, {:link_title=>"Download Ruby", :link_url=>"http://www.ruby-lang.org/en/downloads/"}, {:link_title=>"Ruby - The Inspirational Weight Loss Journey on the Style Network ...", :link_url=>"http://www.mystyle.com/mystyle/shows/ruby/index.jsp"}, {:link_title=>"Ruby (programming language) - Wikipedia, the free encyclopedia", :link_url=>"http://en.wikipedia.org/wiki/Ruby_(programming_language)"}, {:link_title=>"Ruby - Wikipedia, the free encyclopedia", :link_url=>"http://en.wikipedia.org/wiki/Ruby"}, {:link_title=>"Ruby on Rails", :link_url=>"http://www.rubyonrails.org/"}, {:link_title=>"Ruby's Diner - rubys.com", :link_url=>"http://www.rubys.com/"}, {:link_title=>"Ruby Annotation", :link_url=>"http://www.w3.org/TR/ruby/"}, {:link_title=>"Watir", :link_url=>"http://watir.com/"}, {:link_title=>"[Ruby-Doc.org: Documenting the Ruby Language]", :link_url=>"http://ruby-doc.org/"}, {:link_title=>"El Paso Corporation and Global Infrastructure Partners Close $1.5 ...", :link_url=>"http://www.marketwatch.com/story/el-paso-corporation-and-global-inf...] root@XXXXXX ~/xpath_playground/ruby]#
So, I modified this file: /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/agents/mechanize.rb and removed the WWW:: portion of line 17 and re-ran the test program. It broke. Don't do that. I added back in the WWW:: that I had removed earlier, re-ran, and got output this time.
I hope this helps somebody besides myself. I've spent far too much time on getting this just to the point that it runs post-install. I'm new to ruby, which certainly adds some time for not knowing what I'm doing per-say...but I've been a sysadmin for 10+ years.
This program - scrubyt - is the only reason I am using ruby on my system. My new gem list looks like this with everything functional.
LOCAL GEMS
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.2)
commonwatir (1.6.5)
ffi (0.6.3)
firewatir (1.6.5)
hoe (2.6.0)
hpricot (0.8.2)
jruby-openssl (0.7)
json_pure (1.4.3)
mechanize (1.0.0)
nokogiri (1.4.1)
openssl-nonblock (0.2.1)
ParseTree (3.0.5)
ParseTreeReloaded (0.0.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubyforge (2.0.4)
RubyInline (3.8.4)
RubyInlineAcceleration (0.0.1)
rubyzip (0.9.4)
s4t-utils (1.0.4)
scrubyt (0.4.1)
sexp_processor (3.0.4)
smartcard (0.5.0)
tem_openssl (0.3.6)
tem_ruby (0.16.0)
user-choices (1.1.6.1)
xml-simple (1.0.12)
ZenTest (4.3.1)
zerg_support (0.1.5)
Now: Does anyone know how to fix these two notices?
Notice #1:
WARNING: Nokogiri was built against LibXML version 2.6.26, but has dynamically loaded 2.6.27
!!!!! DEPRECATION NOTICE !!!!!Notice #2:
The WWW constant is deprecated, please switch to the new top-level Mechanize
constant. WWW will be removed in Mechanize version 2.0You've referenced the WWW constant from /usr/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.1/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in
included', please<br/> switch the "WWW" to "Mechanize". Thanks!Sincerely,
Pew Pew Pew
-
cyberkid81
To suppress the display of the warnings, I modified the two gems as detailed below. It looks nicer, but things may still go awry due to the reasons for the warnings. Does anyone know?
Thanks!
Files I modified to suppress the warning output messages:
/usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/version.rb I commented out line 18 which actually displays the warning and contains:
warn "WARNING: #{warning}"/usr/local/lib/ruby/gems/1.8/gems/mechanize-1.0.0/lib/mechanize.rb
I added a multi-line comment that starts on line 646, just above "warn <<eomsg" What I added on line 646:=beginI ended the multi-line comment just after "eomsg" What I added on line 659:
=end
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.