Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jruby support #9

Open
cforce opened this issue May 16, 2012 · 3 comments
Open

jruby support #9

cforce opened this issue May 16, 2012 · 3 comments

Comments

@cforce
Copy link

cforce commented May 16, 2012

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

@amartel
Copy link
Owner

amartel commented May 22, 2012

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

@cforce
Copy link
Author

cforce commented Jun 18, 2012

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 danmunn/redmine_dmsf#1 (comment)

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
Copy link
Author

cforce commented Dec 18, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants