Thanks Amen. It turned out to be a dependency problem, not really cannot
find the lib file, but cannot find another lib that this lib depends on.
Guile gives a wrong error message.
On Thu, Mar 30, 2017 at 5:49 AM, AmeBel wrote:
>
>
> On Wednesday, March 29, 2017 at 6:02:24 PM UTC+8, shujingke wr
On Wednesday, March 29, 2017 at 6:02:24 PM UTC+8, shujingke wrote:
>
> Thanks Amen.
>
> I found that ADD_GUILE_MODULE (x.scm) will install x.scm to
> /usr/local/share/opencog/scm/opencog/x's dictionary, like
> patternminer.scm is installed in:
> /usr/local/share/opencog/scm/openco
Let me make the problem more clearly:
I start cogserver, and enter guile by rlwrap telnet localhost 17001
If I do (load-extension "libguile-cogserver" "opencog_cogserver_init") ,
it works, but If I do (load-extension "libguile-patternminer.so"
"opencog_patternminer_init") , it gives the below err
Thanks Amen.
I found that ADD_GUILE_MODULE (x.scm) will install x.scm to
/usr/local/share/opencog/scm/opencog/x's dictionary, like
patternminer.scm is installed in:
/usr/local/share/opencog/scm/opencog/learning/ , but this dictionary will
not be searched by guile (use-modules (opencog
Place
https://github.com/opencog/docker/blob/master/opencog/base/scripts/.guile in
your home directory, or or execute the second line in your guile shell.
On Wednesday, March 29, 2017 at 3:38:29 AM UTC+8, shujingke wrote:
>
> Actually, it still doesn't work
>
>
> After I did make install,
Actually, it still doesn't work
After I did make install, I found libguile-patternminer.so in
/usr/local/lib/opencog/ but when I load patternminer.scm in guile manually
, it still cannot find the so file:
guile> (load "opencog/scm/opencog/learning/patternminer.scm")
ERROR: In procedure
Thanks, Linas, it works. I forgot that OpenCog does make install now.
Shujing
On Tue, Mar 28, 2017 at 5:34 PM, Linas Vepstas
wrote:
> they should all be in /usr/local/lib/opencog
>
> Did you run 'make install'? I'm pretty sure that none of the scheme
> modules work, until you install them.
>
>
they should all be in /usr/local/lib/opencog
Did you run 'make install'? I'm pretty sure that none of the scheme
modules work, until you install them.
--linas
On Tue, Mar 28, 2017 at 11:19 PM, Shujing Ke wrote:
> Hi,
>
> Anyone know is there a file or somewhere that specify the paths that
>
Hi,
Anyone know is there a file or somewhere that specify the paths that
"load-extension" will search? I am adding a new module , it always says
"ERROR: In procedure dynamic-link: file: "libguile-patternminer", message:
"file not found"".
libguile-patternminer.so is in build/opencog/learning/Patte