Closed soumitraj closed 10 years ago
This is most likely an Rjb install issue. Try gem install rjb
and please report your results.
On 2014-05-15, at 4:34 PM, Soumitra notifications@github.com wrote:
Even though JAVA_HOME is correctly set I am getting the following error while installing :
XXX@XXX-Lenovo-H430 ~/xxx/ruby $ echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk/. XXX@XXX-Lenovo-H430 ~/xxx/ruby $ sudo gem install open-nlp stanford-core-nlp Building native extensions. This could take a while... ERROR: Error installing open-nlp: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.9.1 extconf.rb:53:in `': JAVA_HOME is not set. (RuntimeError)
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rjb-1.4.9 for inspection. Results logged to /var/lib/gems/1.9.1/gems/rjb-1.4.9/ext/gem_make.out Building native extensions. This could take a while... ERROR: Error installing stanford-core-nlp: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.9.1 extconf.rb:53:in `': JAVA_HOME is not set. (RuntimeError)
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rjb-1.4.9 for inspection. Results logged to /var/lib/gems/1.9.1/gems/rjb-1.4.9/ext/gem_make.out
Please advise !
— Reply to this email directly or view it on GitHub.
gem install rjb also fails with the same error
$ sudo gem install rjb Building native extensions. This could take a while... ERROR: Error installing rjb: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1
extconf.rb:53:in `
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rjb-1.4.9 for inspection. Results logged to /var/lib/gems/1.9.1/gems/rjb-1.4.9/ext/gem_make.out
Hi @louismullie , I even followed the instructions in a similar issue raised by you earlier , but no luck so far. https://github.com/travis-ci/travis-ci/issues/586
Are you using RVM, rbenv or the likes? Seems like your ruby isn't picking up your environment variables.
Hi, This particular error seems to have been solved , see following : $ sudo env JAVA_HOME=$JAVA_HOME gem install open-nlp stanford-core-nlp [sudo] password for soumitra: Building native extensions. This could take a while... Fetching: bind-it-0.2.7.gem (100%) Fetching: open-nlp-0.1.4.gem (100%) Successfully installed rjb-1.4.9 Successfully installed bind-it-0.2.7 Successfully installed open-nlp-0.1.4 Fetching: stanford-core-nlp-0.5.1.gem (100%) Successfully installed stanford-core-nlp-0.5.1 4 gems installed Installing ri documentation for rjb-1.4.9... Installing ri documentation for bind-it-0.2.7... Installing ri documentation for open-nlp-0.1.4... Installing ri documentation for stanford-core-nlp-0.5.1... Installing RDoc documentation for rjb-1.4.9... Installing RDoc documentation for bind-it-0.2.7... Installing RDoc documentation for open-nlp-0.1.4... Installing RDoc documentation for stanford-core-nlp-0.5.1...
HI @louismullie ,
I am now facing the following error with Treat :
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- treat (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from document_parser.rb:1:in `
Can you please help me out here, I see your comments here https://github.com/louismullie/treat/issues/54 but am still facing this issue.
Well, you need to install treat gem install treat
Thanks a lot!
Even though JAVA_HOME is correctly set I am getting the following error while installing :
XXX@XXX-Lenovo-H430 ~/xxx/ruby $ echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk/. XXX@XXX-Lenovo-H430 ~/xxx/ruby $ sudo gem install open-nlp stanford-core-nlp Building native extensions. This could take a while... ERROR: Error installing open-nlp: ERROR: Failed to build gem native extension.
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.9.1 extconf.rb:53:in `': JAVA_HOME is not set. (RuntimeError)
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rjb-1.4.9 for inspection. Results logged to /var/lib/gems/1.9.1/gems/rjb-1.4.9/ext/gem_make.out Building native extensions. This could take a while... ERROR: Error installing stanford-core-nlp: ERROR: Failed to build gem native extension.
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby1.9.1 extconf.rb:53:in `': JAVA_HOME is not set. (RuntimeError)
Gem files will remain installed in /var/lib/gems/1.9.1/gems/rjb-1.4.9 for inspection. Results logged to /var/lib/gems/1.9.1/gems/rjb-1.4.9/ext/gem_make.out
Please advise !