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

Kares/yard-method-overrides repo problem #596

Closed
beholdr-ai opened this issue Nov 4, 2014 · 2 comments
Closed

Kares/yard-method-overrides repo problem #596

beholdr-ai opened this issue Nov 4, 2014 · 2 comments
Labels

Comments

@beholdr-ai
Copy link

Hi,

I'm trying to install the activerecord-jdbcmysql-adapter gem (using Jruby 1.7.16.1) but getting a message about the yard-method-overrides repo. See log below. If I'm correct the repo name has changed to now/yard-method-overrides and the activerecord-jdbcmysql-adapter Gemfile should be updated. Is this correct?

Part of my Gemfile:

platforms :jruby do
gem 'activerecord-jdbcmysql-adapter', :github => 'jruby/activerecord-jdbc-adapter'
gem 'jdbc-mysql'
end


Updating git://github.com/jruby/activerecord-jdbc-adapter.git
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies......................................................................................................................................................................................................................................................................................................................................................................................
Using rake 10.3.2
Using i18n 0.6.11
Using minitest 4.7.5
Using multi_json 1.10.1
Using thread_safe 0.3.4
Using tzinfo 0.3.42
Using activesupport 4.0.0
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.0
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.0
Using activemodel 4.0.0
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.0

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

"/usr/local/rvm/rubies/jruby-1.7.16.1/bin/jruby" -rubygems /usr/local/rvm/gems/jruby-1.7.16.1/gems/rake-10.3.2/bin/rake RUBYARCHDIR=/usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c/lib RUBYLIBDIR=/usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c/lib

rake aborted!
Bundler::GitError: The git source git://github.com/kares/yard-method-overrides.git is not yet checked out. Please run bundle install before trying to start your application
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git/git_proxy.rb:151:in allowed_in_path' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git/git_proxy.rb:47:inrevision'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git.rb:212:in revision' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git.rb:81:ininstall_path'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/path.rb:126:in load_spec_files' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git.rb:185:inload_spec_files'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/path.rb:92:in local_specs' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/source/git.rb:155:inspecs'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:516:in converge_locked_specs' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:505:inconverge_locked_specs'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:190:in resolve' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:132:inspecs'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:177:in specs_for' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/definition.rb:166:inrequested_specs'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/environment.rb:18:in requested_specs' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:13:insetup'
/usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler.rb:121:in setup' /usr/local/rvm/gems/jruby-1.7.16.1@global/gems/bundler-1.7.4/lib/bundler/setup.rb:17:in(root)'
/usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c/Rakefile:1:in (root)' /usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c/Rakefile:102:in(root)'
(See full trace by running task with --trace)

Gem files will remain installed in /usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c for inspection.
Results logged to /usr/local/rvm/gems/jruby-1.7.16.1/bundler/gems/activerecord-jdbc-adapter-63bcb879ea9c/./gem_make.out
An error occurred while installing activerecord-jdbc-adapter (1.4.0.dev), and
Bundler cannot continue.

@kares
Copy link
Member

kares commented Nov 4, 2014

hey @truesynergy ... as the trace states there's an error before the bundle install message :

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

master is trying to elminate the need to have the native .jar commited, but clearly it's not working for you.
you will need to have JDK installed at minimum to have it working with a :git path, there are still issues, I will hopefully look at them at some point. in the mean time just do not use master it's unfinished anyways!

@kares kares added the wontfix label Nov 4, 2014
@beholdr-ai
Copy link
Author

Hi Kares,

Thanks for the help. I'll use the proper branch!

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

No branches or pull requests

2 participants