How to get started with Opencog

196 views
Skip to first unread message

Vanangamudi

unread,
Oct 20, 2017, 6:36:23 AM10/20/17
to ope...@googlegroups.com
Hi,

how do I get started with solving toy problems with opencog to head
grasp of where things are?


Thanks,

Selva.

Nil Geisweiller

unread,
Oct 21, 2017, 6:00:14 AM10/21/17
to ope...@googlegroups.com, Vanangamudi
Hi Selva,

this is typically a good place to start

http://wiki.opencog.org/w/Hands_On_With_OpenCog

it seems down though at the moment.

Nil

Charlie Derr

unread,
Nov 7, 2017, 5:50:12 AM11/7/17
to opencog
I've tried to follow the instructions here (using an ubuntu 16.04 VM and octool16) and I get:

CMake Error at CMakeLists.txt:144 (MESSAGE):
 CogUtil missing: it is needed for everything!


-- Configuring incomplete, errors occurred!
See also "/home/ni/opencog/build/CMakeFiles/CMakeOutput.log".
See also "/home/ni/opencog/build/CMakeFiles/CMakeError.log".

I've googled this error, but don't see any current results. I've searched for cogutils.h and it is not present on my system anywhere. Please advise.

  thanks so very much in advance,
       ~c

Michael Duncan

unread,
Nov 7, 2017, 6:21:50 AM11/7/17
to opencog
hi, fellow sr soccer alumnus!  the cogutil binary is built from a seperate github repo so make sure it's getting installed and check where it's getting installed (on my ubuntu 16.04 it's in /usr/local/lib/cogutil.so).  also a bunch of code just got changed from "cogutils" to "cogutil" for consistency. try looking for "cogutil.h", at this point i think "cogutils.h" would be incorrect.

mike "sweeper" duncan

Charlie Derr

unread,
Nov 7, 2017, 7:26:49 AM11/7/17
to opencog
Hey Mike! 
   Thanks much for the advice, I suspected that's what I wanted to do. I cloned the cogutil repo and then created a build directory inside and then executed "cmake .." then "make" then "sudo make install". After clearing away CMakeCache.txt I got a similar error with regard to atomspace, so I'm building/installing that now.

   It might make sense to update the wiki with these details.

        thanks again,
          ~c

Nil Geisweiller

unread,
Nov 8, 2017, 2:20:34 AM11/8/17
to ope...@googlegroups.com, Charlie Derr
Hi,

On 11/07/2017 02:26 PM, Charlie Derr wrote:
> Hey Mike!
>    Thanks much for the advice, I suspected that's what I wanted to do.
> I cloned the cogutil repo and then created a build directory inside and
> then executed "cmake .." then "make" then "sudo make install". After
> clearing away CMakeCache.txt I got a similar error with regard to
> atomspace, so I'm building/installing that now.
>
>    It might make sense to update the wiki with these details.

Sure! I didn't fully understand what should be updated. Could you do it?
Do you have the permissions to edit the wiki page? If not, or if you
don't have time, could you explain what should be updated?

Thanks,
Nil
> --
> 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
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto: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/17d18f76-fcc6-4247-9a1a-33ce225e29b7%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/17d18f76-fcc6-4247-9a1a-33ce225e29b7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

charlie derr

unread,
Nov 8, 2017, 9:00:45 AM11/8/17
to ope...@googlegroups.com, Nil Geisweiller
On Wed, 8 Nov 2017 09:20:30 +0200
Nil Geisweiller <ngei...@googlemail.com> wrote:

> Hi,
>
> On 11/07/2017 02:26 PM, Charlie Derr wrote:
> > Hey Mike!
> >    Thanks much for the advice, I suspected that's what I wanted to
> > do. I cloned the cogutil repo and then created a build directory
> > inside and then executed "cmake .." then "make" then "sudo make
> > install". After clearing away CMakeCache.txt I got a similar error
> > with regard to atomspace, so I'm building/installing that now.
> >
> >    It might make sense to update the wiki with these details.
>
> Sure! I didn't fully understand what should be updated. Could you do
> it? Do you have the permissions to edit the wiki page? If not, or if
> you don't have time, could you explain what should be updated?
>
> Thanks,
> Nil
>

I did just create an account so as to be able to edit the wiki, but I'm
reluctant to do that for a couple reasons. The first is that I'm brand
new to opencog and so have very little experience with it and wouldn't
want to introduce an error due to my newbie status. The second is that
I'm not sure exactly what the correct solution should be (in terms of
what the wiki ought to say). Let me try to explain.

https://wiki.opencog.org/w/Building_OpenCog_(Hands_On) is the wiki page
I was using to try to get started, and as I had an ubuntu 16.04 VM
available, I was using the instructions from:
3. Installing dependencies on Ubuntu

The command to install octool16 worked great, but when I ran:

./octool16 -rsdpcalv

I (eventually) got the build error about no CogUtil. I have no idea how
octool works, but I think ideally, that above command ought to be
tweaked/edited to check out, build and install from the cogutil and
atomspace git repos prior to attempting to build opencog itself. Which
may be more than a wiki edit.

After seeing your message this morning and looking more closely at the
wiki, I noticed that I still had this other tab open:
https://wiki.opencog.org/w/Installing_OpenCog_for_Noobs#First_Steps_for_.2A.2Aexpert.2A.2A_users:_those_familiar_with_git.2C_Github.2C_and_Linux

As it only referenced an earlier version of ubuntu (versions > 14) I
hadn't looked closely at it. But I now see that under the "New
Instructions" section, that the correct procedure is outlined (manually
though, not using octool).

I hope this helps. And I'm willing to provide more feedback if
necessary. Just ask.

best,
~c

Cassio Pennachin

unread,
Nov 8, 2017, 9:06:41 AM11/8/17
to opencog, Nil Geisweiller
Hello Charlie and welcome!

Been a long time!

The wiki instructions seem correct to me. This may be a bug in octool, that command line should have downloaded, built and installed cogutil and atomspace. 

Cheers,
Cassio


> > To post to this group, send email to ope...@googlegroups.com
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Cassio Pennachin

Nil Geisweiller

unread,
Nov 8, 2017, 10:27:29 AM11/8/17
to ope...@googlegroups.com, charlie derr, Nil Geisweiller
Based on that sort of lines

https://github.com/opencog/ocpkg/blob/master/ocpkg#L862

I believe ocpkg now supports Ubuntu 16.04

Charlie, could you try again using ocpkg instead of ocpkg16?

Thanks,
Nil

charlie derr

unread,
Nov 8, 2017, 3:10:36 PM11/8/17
to Nil Geisweiller, ope...@googlegroups.com
On Wed, 8 Nov 2017 17:27:24 +0200
Nil,

It looked like it was going to succeed (cogutil and atomspace were
fetched and built prior to the build for opencog itself proceeding),
but in the end it errored out due to a misconfiguration of the java
environment:

BUILD FAILED
/tmp/link-grammar-5.4.2/build/bindings/java/build.xml:21: Unable to
find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk-amd64/jre"

Total time: 0 seconds
Makefile:588: recipe for target 'linkgrammar-5.4.2.jar' failed
make[2]: *** [linkgrammar-5.4.2.jar] Error 1
make[2]: Leaving directory '/tmp/link-grammar-5.4.2/build/bindings/java'
Makefile:438: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/link-grammar-5.4.2/build/bindings'
Makefile:535: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


Just let me know if I can be of help testing anything else further.

~c

Charlie Derr

unread,
Nov 8, 2017, 3:25:08 PM11/8/17
to opencog
After installing the ubuntu package 

openjdk-8-jdk

It looks like it finally completed successfully.

     ~c
> >>> To post to this group, send email to ope...@googlegroups.com
> >>> <mailto:opencog@googlegroups.com>.

Nil Geisweiller

unread,
Nov 9, 2017, 7:35:07 AM11/9/17
to ope...@googlegroups.com
On 11/08/2017 10:25 PM, Charlie Derr wrote:
> After installing the ubuntu package
>
> openjdk-8-jdk
>
> It looks like it finally completed successfully.

Cool. I've removed ocpkg16 from the wiki as it appears obsolete.

As far as the openjdk dependency goes, I suppose it should be added to
ocpkg.

Charlie, could you create an issue there

https://github.com/opencog/ocpkg/issues

so the ocpkg maintainers can fix it?

Thanks,
Nil

>
>      ~c
>
>
> On Wednesday, November 8, 2017 at 3:10:36 PM UTC-5, Charlie Derr wrote:
>
> On Wed, 8 Nov 2017 17:27:24 +0200
> Nil Geisweiller <ngei...@googlemail.com
> <mailto:ngei...@googlemail.com>> wrote:
>
> > Based on that sort of lines
> >
> > https://github.com/opencog/ocpkg/blob/master/ocpkg#L862
> <https://github.com/opencog/ocpkg/blob/master/ocpkg#L862>
> >
> > I believe ocpkg now supports Ubuntu 16.04
> >
> > Charlie, could you try again using ocpkg instead of ocpkg16?
> >
> > Thanks,
> > Nil
> >
> > On 11/08/2017 04:00 PM, charlie derr wrote:
> > > On Wed, 8 Nov 2017 09:20:30 +0200
> > > Nil Geisweiller <ngei...@googlemail.com
> > >>> send an email to opencog+u...@googlegroups.com
> <mailto:opencog%2Bunsu...@googlegroups.com>
> > >>> <mailto:opencog+u...@googlegroups.com
> <mailto:opencog%2Bunsu...@googlegroups.com>>.
> > >>> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>
> > >>> <mailto:ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>>.
> > >>> Visit this group at https://groups.google.com/group/opencog
> <https://groups.google.com/group/opencog>.
> <https://groups.google.com/d/msgid/opencog/17d18f76-fcc6-4247-9a1a-33ce225e29b7%40googlegroups.com?utm_medium=email&utm_source=footer
> <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+u...@googlegroups.com
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto: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/1cf94191-039b-47e1-b35a-f21366592d68%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/1cf94191-039b-47e1-b35a-f21366592d68%40googlegroups.com?utm_medium=email&utm_source=footer>.

charlie derr

unread,
Nov 9, 2017, 10:58:12 AM11/9/17
to ope...@googlegroups.com
On Thu, 9 Nov 2017 14:35:01 +0200
"'Nil Geisweiller' via opencog" <ope...@googlegroups.com> wrote:

> On 11/08/2017 10:25 PM, Charlie Derr wrote:
> > After installing the ubuntu package
> >
> > openjdk-8-jdk
> >
> > It looks like it finally completed successfully.
>
> Cool. I've removed ocpkg16 from the wiki as it appears obsolete.
>
> As far as the openjdk dependency goes, I suppose it should be added
> to ocpkg.
>
> Charlie, could you create an issue there
>
> https://github.com/opencog/ocpkg/issues
>
> so the ocpkg maintainers can fix it?
>
> Thanks,
> Nil

Done. #96

~c
Reply all
Reply to author
Forward
0 new messages