Hello,

I have installed opencog in a custom location using the 
-DCMAKE_INSTALL_PREFIX and other such options. I did
this so that whenever I really mess up things and need to start over I can 
just delete the whole install directory and 
start again.

Currently, I can run the cogserver and create links and nodes using the 
scheme shell. However, when I try to run cog-execute!
I get an error.  I have edited the LTDL_LIBRARY_PATH in the scheme modules 
in local/share/scm to point to the 
appropriate directories.  

I know all of you are busy with AGI right now, so if there isn't anything 
obviously wrong then I will try running the script
after installing in /usr/local as opecog does by default.

Here is the code I am running:

----------------
(use-modules (ice-9 readline)) 
(activate-readline)
(add-to-load-path 
"/home/gaurav/Codes/AI/OpenCog/SOFTWARE/local/share/opencog/scm")
(add-to-load-path ".")
(use-modules (opencog))
(use-modules (opencog query))
(use-modules (opencog exec))
(load-from-path "opencog.scm")
(display 
"-----------------------------------------------------------------------")
(newline)(newline)

;cog-execute! is a opencog exec function that knows how to execute certain 
links.
;It will be used in this script.

;PlusLink: For adding numbers
(define link
      (cog-new-link 'PlusLink
          (cog-new-node 'NumberNode 2)
        (cog-new-node 'NumberNode 3)
    )
)
(cog-execute! link)
-----------------------

The error I get is this:

Backtrace:
In ice-9/boot-9.scm:
 157: 7 [catch #t #<catch-closure 1621400> ...]
In unknown file:
   ?: 6 [apply-smob/1 #<catch-closure 1621400>]
In ice-9/boot-9.scm:
  63: 5 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 4 [eval # #]
In ice-9/boot-9.scm:
2320: 3 [save-module-excursion #<procedure 1653d40 at 
ice-9/boot-9.scm:3961:3 ()>]
3968: 2 [#<procedure 1653d40 at ice-9/boot-9.scm:3961:3 ()>]
In unknown file:
   ?: 1 [load-compiled/vm 
"/home/gaurav/.cache/guile/ccache/2.0-LE-8-2.0/home/gaurav/Codes/AI/OpenCog/WORKSPACE/AtomTypes/links.scm.go"]
In /home/gaurav/Codes/AI/OpenCog/WORKSPACE/AtomTypes/links.scm:
  16: 0 [#<procedure 1652700 ()>]

/home/gaurav/Codes/AI/OpenCog/WORKSPACE/AtomTypes/links.scm:16:0: In 
procedure #<procedure 1652700 ()>:
/home/gaurav/Codes/AI/OpenCog/WORKSPACE/AtomTypes/links.scm:16:0: In 
procedure module-lookup: Unbound variable: cog-execute!

Yours sincerely
Gaurav Gautam

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/59742a2b-feec-4c18-854a-523f56e295fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to