scRUBYt! in WinXP?
Pages: 1 2
|
|
I have the following problem with Inline_ParseTree_a424.so in winxp:
|
|
|
It looks like to be a missing library file issue? If it helps at all, I use cygwin on Windows for Ruby/Rails development. It works very well. It use it together with e text editor. |
|
|
Well, currently there are problems with installing scRUBYt! on WinXP, but these are usually stemming from Ruby’s C compiler setting – somehow Ruby seems to be configured by default to search Visual Studio’s compiler, and people were not able to set it to mingw or something different. However, since it seems you have installed it, I am not sure what the problem might be… We are currently working on a new gem for windows (a C to Ruby bridge) which will mean that ParseTree will be installed without compiling C code. Until this is ready, cygwin seems to be a viable alternative to me! |
|
|
Hmm. I have cygwin installed, working with the e text editor, but I get this same error when I try to run the first extractor tuturial. The problem is that there is no “cl” command-line tool in my cygwin (and I can’t find it in the cygwin installer to install it). If I set up the path to find the Microsoft Visual C++ 2005 Express Edition (what I have installed) command line tools (does have a “cl” tool), I get a different error. I’m confused and frustrated. Here’s the error I get when I put the VC tools in the path:
|
|
|
We are working full steam to resolve this issue…. The fix (actually a new package, which will cause that you won’t need to compile C at all) should be ready soon. Until then, unfortunately I can not really help you – but this problem pops up only if you export the extractor, right? |
|
|
I am having the same problem. My scenario is this: I have scrubyt and all his dependencies instaled. I am trying to do the first extractor example, the google one. But I am getting that error:
“C:/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.3/lib/inline.rb:386:in ``’: No such file or directory – cl Please, help me. I am really frustraded, I am thinking in going back to hpricot. Thanks! |
|
|
Good news: the windows fix should be ready next week (hopefully – I am not working on it and can not influence it too much, but the guy responsible for it said it should be ready soon). Until then, the easiest thing you can do is to comment out these two lines:require 'parse_tree' require 'ruby2ruby'in [your gem directory]/scrubyt-0.2.8/lib/scrubyt.rb, and don’t install ParseTree and Ruby2Ruby. Everything will work normally, just you won’t be able to export your extractors – until the Win32 fix will be shipped. |
|
|
hi scrubber, this is my first venture into web scrapping with any kind of languages. And I have to say this Scrubyt much more intuitive than Mechanize, not to mention better documentation and support :) I tried commenting out *require ‘parse_tree’ *require ‘ruby2ruby’ but i got this error when trying to compile the youtube login example C:/programming/InstantRails/ruby/lib/ruby/gems/1.8/gems/scrubyt-0.2.8/lib/scrubyt/utils/ruby_extensions.rb:109:in `alias_method’: undefined method `to_sexp’ for class `Proc’ (NameError) can’t wait for the windows fix to come out :) |
|
|
Well, the problem is that the win32 fix is not in my hands (so I can not speed up it’s delivery in any way), and the developer working on it left until Sunday – so most probably he will finish the stuff next week. Thanks for your patience. |
|
|
If you are trying to run it from Cygwin, check the followings: 1) Make sure you have ruby (!), gcc, make, openssh and openssl installed in Cygwin 2) You must install rubygems manually. I’ve extracted it in /lib/ruby and run “ruby setup.rb” 3) When you call gem inside Cygwin, you must use the -r switch “gem install -r …” 4) Follow the instructions to install scRUBYt. Make sure you choose the ruby version of all dependencies (and not the mswin32). 5) Also make sure that if you have the native version of ruby installed on your machine, remove it from your PATH variable. Also remove the RUBYOPT variable from your system (NOTE: there may be a way to keep the 2 versions running but I haven’t found it yet) 6) If ruby_inline complains about the permissions of your home folder, make sure it is group and world readable only (chmod g=r,o=r ~) By doing all these, you should be able to have the google extractor from the first tutorial running. I’ve try it on a XP and a Vista machine and it works on both of them. |
|
|
johnny, Thanks for the guide! Now that 0.3.0 is released, we are focusing solely on win32 compatibility – hopefully it should not take more than a few days to come out with a Hpricot like installer (i.e. so you can choose win32, and everything will be installed automatically). |
|
|
Hi I attempted an install on this weekend on WindowsXP and also was unable to get the basic example running. When should I check back? Is there a way to run it on Windows XP? I read somewhere about a C compiler. Not sure if I have one handy, but I’ll get one to get it working if need be :) thanks! |
|
|
If anyone has scRUBYt working in Windows XP (or Vista), please add to the information on the wiki. I don’t run Windows so I can’t be very helpful there. |
|
|
I got it to work on Windows XP at last :-) I had to uninstall Scrubyt version 0.3.0 and install earlier version 0.2.6 gem install – -remote scrubyt – -version “0.2.6″ and it works fine :-) take a look at http://docs.rubygems.org/read/chapter/16 Cheers Hamilton |
|
|
were you unable to get 0.3.1 installed? |
|
|
@hamilton Your solution worked for me as well, and I was able to get the sample google extraction working. Thanks! |
|
|
Hi Scrubber! Any news on version 0.3.1 working without compiler and quirks?? I just wonder when you release it? One more thing, please add ruby2ruby and parsetree as dependencies so that all dependencies are installed with: gem install scrubyt—include-dependencies |
|
|
Jepser, Unfortunately the guy working on the win32 stuff stopped contributing – and I haven’t seen windows for almost 10 years (and not planning to switch back) so unless somebody will volunteer to fix this problem I can’t tell anything new. There is a new (mainly bugfix) release on the way, and FireWatir integration is also progressing nicely. The next release should fix the dependency problems as well. Thanks for the comments! Btw. there is also a nice bugtracker for scrubyt – be sure to enter bugs, problems, suggestions etc there, too! |
|
|
Well, I have got it to work on WinXP (0.3.0) What I did was: 1. Add C:\Program Files\Microsoft Visual Studio\VC98\Bin to the system PATH (this is where CL.EXE is) 2. Copy (yes, I know, ugly) MSVCP60.DLL and MSPDB60.dll (the first file is in the system folder, second one is in the Visual Studio/Common/Bin folder) to the folder listed in above. 3. that’s it. Configuration: WinXP SP2 RubyInLine 3.6.3 Visual Studio 6 SP6 Ruby 1.8.6 P.S don’t forget to restart your computer after you change the PATH. For some reason, it’s just not working. |
|
|
I think I’m almost through but I’m stuck here now (on Vista), using latest versions:
|
|
|
Another alternative to get it to work on XP comment out require ‘parse_tree_reloaded’require ‘ruby2ruby’and modify ruby_extensions.rb to read class Proc
end |
|
|
Hey guys, somebody made JScrubyt which supposedly solves all these problems. I didn’t have time so far to release it or do anything with it, but will look into it during the next days, hopefully. |
|
|
cl.exe is the vc++ compiler. you need to get it to a path where ruby can run it. P.S after every path change, you (for some strange reason) need to restart windows. Thank you, good people in Redmond. |
|
|
Hey guys, I am encouraging everybody experiencing win32 problems to try out JscRUBYt! – check out the announcement here: Announcing JscRUBYt! – no More win32 Problems Please let us know if it worked for you. |
|
|
Jruby install fine but get all kinds of errors when attempting the Packaging of Scrubyt section. Anyone who has this working – would you please let me know how you did it? |
Pages: 1 2