Navigation Menu

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

Can't install libyajl2 #184

Closed
hiroyuki-sato opened this issue May 21, 2015 · 7 comments · Fixed by #185
Closed

Can't install libyajl2 #184

hiroyuki-sato opened this issue May 21, 2015 · 7 comments · Fixed by #185

Comments

@hiroyuki-sato
Copy link
Contributor

For new plugin, I would like to use libyajl2 gem.

I execute embulk gem install libyajl2 and got error

error: Unknown subcommand "extconf.rb".

  • OSX 10.10.3
  • Embulk 0.6.9
embulk gem install libyajl2 
2015-05-22 00:53:20.863 +0900: Embulk v0.6.9
Building native extensions.  This could take a while...
ERROR:  Error installing libyajl2:
    ERROR: Failed to build gem native extension.

    java -jar /path/to/.embulk/bin/embulk extconf.rb
2015-05-22 00:53:45.056 +0900: Embulk v0.6.9
Embulk v0.6.9
usage: <command> [--options]
commands:
   bundle    [directory]                              # create or update plugin environment.
   run       <config.yml>                             # run a bulk load transaction.
   preview   <config.yml>                             # dry-run the bulk load without output and show preview.
   guess     <partial-config.yml> -o <output.yml>     # guess missing parameters to create a complete configuration file.
   gem       <install | list | help>                  # install a plugin or show installed plugins.
                                                      # plugin path is /path/to/.embulk/jruby/1.9
   new       <category> <name>                        # generates new plugin template
   example   [path]                                   # creates an example config file and csv file to try embulk.
   selfupdate                                         # upgrades embulk to the latest released version.

error: Unknown subcommand "extconf.rb".


Gem files will remain installed in /path/to/.embulk/jruby/1.9/gems/libyajl2-1.2.0 for inspection.
Results logged to /path/to/.embulk/jruby/1.9/gems/libyajl2-1.2.0/ext/libyajl2/gem_make.out
@frsyuki
Copy link
Contributor

frsyuki commented May 21, 2015

JRuby doesn't support native extension well. I highly recommend not to use libyajl2. Why don't you use jrjackson?

@hiroyuki-sato
Copy link
Contributor Author

Thak you for your replying.

I want to make embulk-output-groonga gem.
groonga

groonga-comand-parser depend on ffi-yajl. Maintainer does not want to maintain multiple json package.

And also It need json stream api.

Support JRuby

@frsyuki
Copy link
Contributor

frsyuki commented May 22, 2015

I see. As a workaround, you can use this way:

  1. Install JRuby
  2. run gem install embulk
  3. run gem instal lembulk-output-groonga

With this way, embulk is run by jruby.jar.

@hiroyuki-sato
Copy link
Contributor Author

Thanks!!. I'll try it.

@frsyuki
Copy link
Contributor

frsyuki commented May 22, 2015

#185 fixes this issue. Next release includes it.

@hiroyuki-sato
Copy link
Contributor Author

I tested gem-fix branch. I succeed to install libyajl2.
Thanks!!

java -jar pkg/embulk-0.6.9.jar gem install libyajl2
2015-05-22 13:31:59.677 +0900: Embulk v0.6.9
Building native extensions.  This could take a while...
Successfully installed libyajl2-1.2.0
1 gem installed

@frsyuki
Copy link
Contributor

frsyuki commented May 22, 2015

Good 👍

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

Successfully merging a pull request may close this issue.

2 participants