Yeah i removed the line (load-from-path "opencog.scm"). But still got the same unbound variable error. :-((
I guess you did this, because you found instructions suggesting this, somewhere... where? Those instructions need to be fixed. I followed the instructions as in http://wiki.opencog.org/w/Scheme On Sunday, 18 September 2016 00:08:52 UTC+2, linas wrote: > > > > On Sat, Sep 17, 2016 at 10:49 AM, <vishnup...@gmail.com <javascript:>> > wrote: > >> when i did ldd -r /usr/local/lib/opencog/libquery.so, i got few >> undefined symbols, which i think probably linkage errors. >> >> undefined symbol: >> _ZN7opencog14EvaluationLink15do_eval_scratchEPNS_9AtomSpaceERKNS_6HandleES2_b >> >> (/usr/local/lib/opencog/libquery.so) >> undefined symbol: >> _ZN7opencog14EvaluationLink11do_evaluateEPNS_9AtomSpaceERKNS_6HandleEb >> (/usr/local/lib/opencog/libquery.so) >> undefined symbol: >> _ZN7opencog12Instantiator11instantiateERKNS_6HandleERKSt3mapIS1_S1_St4lessIS1_ESaISt4pairIS2_S1_EEE >> >> (/usr/local/lib/opencog/libquery.so) >> > > Hmm. actually, that's normal. Its not fixable, due to a design flaw in > CMake. But that does not explain your crash, since I have the same thing, > and it works for me. > >> >> What to do now? >> >> But the thing is, i have newly installed and built atomspace, cogutils >> and opencog in a new laptop. Still i got the unbound variable error. >> > > Did you remove (load-from-path "opencog.scm")? > > Apparently, I sent you on a wild goose chase: the above (load-from-path > "opencog.scm") is the cause of your problems. It places you into a model > context, where the global context is not visible. Its absolutely the wrong > thing to do. > > I guess you did this, because you found instructions suggesting this, > somewhere... where? Those instructions need to be fixed. > > --linas > > > >> >> >> --Vishnu >> >> >> >> On Thursday, 15 September 2016 18:44:52 UTC+2, linas wrote: >>> >>> >>> >>> On Thu, Sep 15, 2016 at 10:28 AM, <vishnup...@gmail.com> wrote: >>> >>>> Hello, >>>> >>>> my ~/.guile has >>>> >>>> (use-modules (ice-9 readline)) (activate-readline) >>>> (add-to-load-path "/usr/local/share/opencog/scm") >>>> (add-to-load-path ".") >>>> (use-modules (opencog)) >>>> (use-modules (opencog query)) >>>> (use-modules (opencog exec)) >>>> (load-from-path "opencog.scm") >>>> >>> >>> You almost surely should not be doing this last line. >>> >>> >>>> >>>> 1. When i run, >>>> -->(define find-body(GetLink(ChoiceLink(EvaluationLink(PredicateNode >>>> "tweet-info")(ListLink(VariableNode "$body")(ConceptNode "Montgomery"))) >>>> (EvaluationLink(PredicateNode "tweet-info")(ListLink (VariableNode >>>> "$body")(ConceptNode "Washington")))))) >>>> >>>> -->(cog-satisfying-set find-body), >>>> >>>> it throws a following error: >>>> >>> >>> Beats me, it works for me. My best guess is that some earlier compile >>> failed, and/or you did not do a "make install" after some compile, or that >>> possibly you have some old version of the query module that does not >>> contain cog-satisfying-set. You can verify by hand that its there, >>> in /usr/local/share/opencog/scm/opencog/query.scm >>> >>> Looking at that file, it tries to load two shared >>> libraries: libexecution and libquery berhaps one or both of these are >>> borked or not installed. You can verify these by saying >>> >>> ldd -r /usr/local/lib/opencog/libexecution.so and also libquery and >>> make sure there are no errors about unlinked functions. >>> >>> It is also possible that, by directly loading opencog.scm, which you >>> should never do, that you clobbered the LTDL_LIBRRY_PATH causing the two >>> libraries not to be found. >>> >>> >>>> >>>> >>>> 2. I have the following in my testAtomspace.scm file >>>> >>>> >>>> >>>> when i run >>>> (add-to-load-path >>>> "/home/vishnu/Documents/opencog_relatedPackages/opencog/build") >>>> (add-to-load-path >>>> "/home/vishnu/Documents/opencog_relatedPackages/opencog/opencog/scm") >>>> (load-from-path "testAtomspace.scm") >>>> >>>> It always shows only the last part : >>>> >>> >>> That's normal. You can suppress even that by adding *unspecified* to >>> the bottom of the file, and so nothing at all will be printed. >>> >>> --linas >>> >>>> >>>> >>>> >>>> Thanks in advance , >>>> Vishnu >>>> >>>> >>>> >>>> -- >>>> 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/cb5a0ebe-6095-42ee-ba2a-fcea5453dc6d%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/opencog/cb5a0ebe-6095-42ee-ba2a-fcea5453dc6d%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to opencog@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/fdd67c32-2234-419c-99cc-28c1216ebe58%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.