ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

Similar bug someone had 2 years ago: invalid ELF header problem #68

Open XULRunner42 opened 11 years ago

XULRunner42 commented 11 years ago

it's not just those samples (referencing #16 which sounds like it's having similar errors to what I'm having now)

Using ubuntu precise, with rvm head and latest ruby 1.9.3-p194

try gshoes -m I get invalid elf headers for hpricot_scan.so

It is resolved with gem install hpricot, removing the binary hpricot_scan.so from lib/ext/ (along with hpricot.rb and hpricot/), building the green_shoes gem from source using rake install, and try gshoes -m again. I can now read the shoes manual through shoes. The only problem I notice is that the navigation bar on the left is slightly not tall enough. to_html overlaps the last entry. Everything looks great! But I don't hear any theme music.

I found similar win32 DLLs that were not causing me any problems in chipmunk and bloops, I could not immediately resolve bloops with rubygems, but eventually found it as bloopsaphone, there is also highlighter and projector that don't seem to have any strange binaries in them. If you can tell me what these are meant to do, I will report back whether the feature is working now or not.

I also got 'projector' from rubygems and put it in a Gemfile, took it out of lib/ext, but I could not find a gem for 'highlighter'... looking at it I guess it appears to be something you made, sounds useful!

ashbb commented 11 years ago

@XULRunner42 Thanks for using Green Shoes. :)

It is resolved with gem install hpricot, removing the binary hpricot_scan.so from lib/ext/ (along with hpricot.rb and hpricot/)

Yes, the green_shoes/lib/ext/hpricot/hpricot_scan.so is a binary file for only Windows. So, on Linux and OSX, you have to install hpricot gem. But I think it's not necessary to remove green_shoes/lib/ext/hpricot to open Green Shoes built-in manual. Look at the code: green_shoes/lib/shoes/help.rb line 1-5.

The only problem I notice is that the navigation bar on the left is slightly not tall enough. to_html overlaps the last entry.

Oh, too bad... I'm a Windows user. It's not easy to use Linux box for now. So, could you take a screenshot?

But I don't hear any theme music.

Ah,... the chipmunk.so and bloops.so are binary files for Windows. Sorry, I have never play chipmunk and bloopsaphone on Linux and OSX. xx-P

The highlighter and projector use no binary files. So, I think they work on every platforms. Do you have any troubles?