Correction: no link-grammar-java
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/8c05b715-a4ed-4540-b696-20f0997575c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wed, May 29, 2019 at 10:14 PM Jack Park <jack...@topicquests.org> wrote:Correction: no link-grammar-javaWell, that just says that something somewhere is not finding the link-grammar java bindings. I cannot speculate why. Maybe some CLASSPATH doesn't point to the where the link-grammar jar file is. Normally, I think it ends up in /usr/local/share/java/linkgrammar.jarviz. java -classpath /usr/local/share/java/linkgrammar.jar relex.RelationExtractor -hIf that doesn't fix it try adding-Djava.library.path=/usr/local/lib:/usr/local/lib/jniI assume it's something like that.-- Linas
--
On Wednesday, May 29, 2019 at 6:35:56 PM UTC-7, Jack Park wrote:That's the error message in a small testbed to feed RelEx sentences and learn how to process the results.Context:Simple Eclipse project on an Ubuntu box with LinkGrammar parser 5.6.1 installed and RelEx did run its simple test, which, I believe, means it's working.This project is not that RelEx but instead, uses the entire RelEx library of jars in the Eclipse project, including the linkgrammar.5.6.1.jar; it's all in there.I create a copy of RelationExtractor and then ask it getVersion() - that's when the error occurs; it's not finding the parser.Is there a simple explanation for that error message?BTW: I posted this question in the OpenCog slack as well.
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ope...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/8c05b715-a4ed-4540-b696-20f0997575c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you. I did some other experiments and managed to make this deduction:I did not have Ant installed when I built the platform. I only discovered that when I went in to hand build the linkgrammar.jarBut, that led to this: it apparently did not install the JNI stuff; there is no /usr/lib/jni or /usr/local/lib/jni directory.With Ant installed, I tried to run make install again on LinkGrammar - you can tell I'm not a *nix pro - and it says 'nothing to do'
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/d38f7676-c25e-4341-851a-fbb0d40556de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/d38f7676-c25e-4341-851a-fbb0d40556de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ran configure, then make clean. Here's the trace for java-jni
make[2]: Entering directory '/home/jackpark/Downloads/link-grammar-5.6.1/bindings/java-jni'
CC jni-client.lo
CXXLD liblink-grammar-java.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[1]: Entering directory '/home/jackpark/Downloads/link-grammar-5.6.1/bindings'
Making install in java-jni
make[2]: Entering directory '/home/jackpark/Downloads/link-grammar-5.6.1/bindings/java-jni'
make[3]: Entering directory '/home/jackpark/Downloads/link-grammar-5.6.1/bindings/java-jni'
/bin/mkdir -p '/usr/local/lib'
/bin/bash ../../libtool --mode=install /usr/bin/install -c liblink-grammar-java.la '/usr/local/lib'
libtool: warning: relinking 'liblink-grammar-java.la'
libtool: install: (cd /home/jackpark/Downloads/link-grammar-5.6.1/bindings/java-jni; /bin/bash "/home/jackpark/Downloads/link-grammar-5.6.1/libtool" --silent --tag CXX --mode=relink g++ -D_DEFAULT_SOURCE -std=c++11 -g -O2 -O3 -Wall -version-info 11:1:6 -export-dynamic -no-undefined -export-symbols ./link-grammar-java.def -o liblink-grammar-java.la -rpath /usr/local/lib jni-client.lo ../../link-grammar/liblink-grammar.la ../../link-grammar/minisat/libminisat.la -lm )
libtool: install: /usr/bin/install -c .libs/liblink-grammar-java.so.5.6.1T /usr/local/lib/liblink-grammar-java.so.5.6.1
libtool: install: (cd /usr/local/lib && { ln -s -f liblink-grammar-java.so.5.6.1 liblink-grammar-java.so.5 || { rm -f liblink-grammar-java.so.5 && ln -s liblink-grammar-java.so.5.6.1 liblink-grammar-java.so.5; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f liblink-grammar-java.so.5.6.1 liblink-grammar-java.so || { rm -f liblink-grammar-java.so && ln -s liblink-grammar-java.so.5.6.1 liblink-grammar-java.so; }; })
libtool: install: /usr/bin/install -c .libs/liblink-grammar-java.lai /usr/local/lib/liblink-grammar-java.la
libtool: install: /usr/bin/install -c .libs/liblink-grammar-java.a /usr/local/lib/liblink-grammar-java.a
libtool: install: chmod 644 /usr/local/lib/liblink-grammar-java.a
libtool: install: ranlib /usr/local/lib/liblink-grammar-java.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/jackpark/Downloads/link-grammar-5.6.1/bindings/java-jni'