redmine_webdav icon indicating copy to clipboard operation
redmine_webdav copied to clipboard

jruby support

Open cforce opened this issue 13 years ago • 3 comments

Can u help me installing unicode gem for jruby envirnment?

MissingSourceFile: no such file to load -- unicode

jruby -S gem install unicode Building native extensions. This could take a while... ERROR: Error installing unicode: ERROR: Failed to build gem native extension.

    z:/ruby/jruby-1.6.7/bin/jruby.exe extconf.rb

WARNING: JRuby does not support native extensions or the `mkmf' library very well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. creating Makefile

make Der Befehl "make" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

Gem files will remain installed in z:/ruby/jruby-1.6.7/lib/ruby/gems/1.8/gems/unicode-0.4.2 for inspection. Results logged to z:/ruby/jruby-1.6.7/lib/ruby/gems/1.8/gems/unicode-0.4.2/./gem_make.out

cforce avatar May 16 '12 13:05 cforce

Hi Terence, Sorry but I don't use jruby nor redmine on windows and I have absolutely no idea on how to help you...

amartel avatar May 22 '12 15:05 amartel

There is another plugin dmsf which recently added webdav support. They use ruby gem "dav4rack" which seems to be plattform independent Check it out and contact danmunn https://github.com/danmunn/redmine_dmsf/issues/1#issuecomment-6376615

Fetching: nokogiri-1.5.4-java.gem (100%) Fetching: uuidtools-2.1.2.gem (100%) Fetching: dav4rack-0.2.10.gem (100%) Successfully installed nokogiri-1.5.4-java Successfully installed uuidtools-2.1.2 Successfully installed dav4rack-0.2.10 3 gems installed

cforce avatar Jun 18 '12 12:06 cforce

unicode gem does not run on jruby because it needs native extension. Please use a plattform extension instead or just another dav gem like dav4rack

C extensions are disabled, can't load /home/.rvm/gems/jruby-1.7.0/gems/unicode-0.4.3/./unicode.so' org/jruby/RubyKernel.java:1019:inrequire'

If i allow native extension via "export JRUBY_OPTS=-Xcext.enabled=true" i get following error

Load error: unicode -- java.lang.UnsatisfiedLinkError: failed to load shim library, error: /home/sidfunktion/.rvm/rubies/jruby-1.7.0/lib/native/i386-Linux/libjruby-cext.so: cannot open shared object file: No such file or directory org/jruby/RubyKernel.java:1019:in `require'

The problem ist that C extension support is deprecated in JRuby 1.7. Won't Fix.

Would be great if you can abdicate on c extenions generally.

cforce avatar Dec 18 '12 15:12 cforce