Problems starting the opencog server.

643 views
Skip to first unread message

Karl Sackett

unread,
Nov 5, 2012, 9:05:59 PM11/5/12
to ope...@googlegroups.com
I can finally build and install OpenCog on my Linux workstation. Now I'm
trying to get it to run. I want to open a shell according to the Cookbook
page on the wiki, and I'm running the server out of build directory:

miranda$ pwd
/home/krs/git/opencog/bin/opencog/server
miranda$ ./cogserver &
[1] 7539
Using default config at /usr/local/etc/opencog.conf
Listening on port 17001
miranda$ rlwrap nc localhost 17001
opencog> help
command "help" not found
opencog> exit
command "exit" not found
opencog> quit
command "quit" not found
opencog> ^C
miranda$

How do I get the help and exit commands to work?

--
Karl Sackett                                      karl.s...@gmail.com


My profiles: about.me LinkedIn Twitter Plancast Tungle.me Google Plus goodreads Last.fm Tumblr
Contact me: Google Talk karl.sackett

Alex van der Peet

unread,
Nov 5, 2012, 9:40:37 PM11/5/12
to ope...@googlegroups.com

I get that sometimes too, but I haven’t been able to pinpoint the cause yet. I’ve always been able to get it going again though…

 

Try rebuilding the whole thing by going to your ochack/bin (or opencog/bin) folder and do

 

rm –rf *

 

cmake ..

 

make –j1

 

It may take a while, but at least you know everything is being built in sequence.

 

If that doesn’t fix it, check the opencog.conf file in your ochack/lib (or opencog/lib) directory, some of the modules may have been commented out? If you used the Ocpckg script mentioned on the wiki you can get a new opencog.conf file from your /usr/local/src/opencog/lib folder.

 

cp /usr/local/src/opencog/lib/opencog.conf ~/src/ochack/lib

 

(or wherever your own version of the source files is instead of ~/src/ochack/lib)


Or else just reboot the environment…

 

Take care,

 

Alex

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to
opencog+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/opencog?hl=en.

Joel Pitt

unread,
Nov 5, 2012, 9:43:22 PM11/5/12
to ope...@googlegroups.com
If help and quit don't exist, then it implies that the builtinreqs module is either not being built or loaded.

If you look at the server log file it should say whether it tries to load the module and whether it fails or is just not found.

Alex van der Peet

unread,
Nov 5, 2012, 11:52:58 PM11/5/12
to ope...@googlegroups.com

Hi Karl,

 

Since I’m kinda new to the project myself, I figured you might appreciate some of the tutorials I’ve been writing (assuming you get around your problem with the OpenCog shell of course).

 

The most recent one is:

 

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

 

It has prerequisites that should take you up the chain of tutorials to whatever information you need. Let me know if you get stuck ok?

 

Take care,

 

ALex

 

From: ope...@googlegroups.com [mailto:ope...@googlegroups.com] On Behalf Of Karl Sackett
Sent: 06 November 2012 10:06
To: ope...@googlegroups.com
Subject: [opencog-dev] Problems starting the opencog server.

 

I can finally build and install OpenCog on my Linux workstation. Now I'm

--

Joe Da Silva

unread,
Nov 6, 2012, 2:38:08 PM11/6/12
to ope...@googlegroups.com
Can anyone shed some light on why I'm getting the error below while trying to build?
make: *** No targets specified and no makefile found. Stop.

Cheers!

[Ubuntu 12.04]

joe@macMiniUbuntu:~/opencog/bin$ sudo rm -rf *
joe@macMiniUbuntu:~/opencog/bin$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1202 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:134 (FIND_PACKAGE)


-- Boost program_options missing: needed for Spatial tools (MapTools).
-- Boost math missing: needed to run combo learning tests.
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
-- libcurl missing: needed for ubigraph module.
-- Could NOT find EXPAT (missing:  EXPAT_LIBRARY EXPAT_INCLUDE_DIR) 
-- Expat XML parser missing: needed for embodiment.
FindGSL.cmake: gsl-config not found. Please set it manually. GSL_CONFIG=GSL_CONFIG-NOTFOUND
-- Guile (>=1.8.6) was not found. Make sure GUILE_LIBRARY and GUILE_INCLUDE_DIR are set.
-- Guile was not found; the scheme shell will not be built.
To over-ride, make sure GUILE_LIBRARIES and GUILE_INCLUDE_DIRS are set.
-- HyperTable was not found. Make sure HYPERTABLE_LIBRARY and HYPERTABLE_INCLUDE_DIR are set.
-- Hypertable not found; the experimental distributed persistence DB needs it.
-- Could NOT find MPI_C (missing:  MPI_C_LIBRARIES MPI_C_INCLUDE_PATH) 
-- Could NOT find MPI_CXX (missing:  MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH) 
-- MPI missing: needed for MPI-MOSES.
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY) 
-- OpenGL missing: needed for Spatial tools (MapExplorer, MapTools, etc.).
-- Protobuf was not found. Make sure PROTOBUF_LIBRARY and PROTOBUF_INCLUDE_DIR are set.
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) 
-- Protobuf was not found; the new message decoding functions would not work.
   To over-ride, make sure PROTOBUF_LIBRARIES and PROTOBUF_INCLUDE_DIRS are set.
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Could NOT find PythonLibs (missing:  PYTHON_INCLUDE_DIRS) 
-- Python libs NOT found.
-- Cython executable not found.
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- SDL missing: needed for Spatial tools (MapExplorer, MapTools, etc.).
-- SDL_gfx missing: needed for Spatial tools (MapExplorer, MapTools, etc.).
-- Found Tclsh: /usr/bin/tclsh 
-- Could NOT find TCL (missing:  TCL_LIBRARY TCL_INCLUDE_PATH) 
-- Could NOT find TCLTK (missing:  TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) 
-- Could NOT find TK (missing:  TK_LIBRARY TK_INCLUDE_PATH) 
-- TCL shell was found here: /usr/bin/tclsh
-- UnixODBC was not found; persistence subsystem will not be built.
To over-ride, make sure UnixODBC_LIBRARIES and UnixODBC_INCLUDE_DIRS are set.
-- Valgrind Prefix: 
-- Could NOT find VALGRIND (missing:  VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM) 
-- VALGRIND missing: needed for thread debugging.
CMake Warning at lib/FindXercesC.cmake:71 (MESSAGE):
  Could not find Xerces-C !
Call Stack (most recent call first):
  CMakeLists.txt:375 (FIND_PACKAGE)


-- Xerces-C missing: needed for embodiment
-- XMLRPC was not found. Make sure the entries XMLRPC_* are set.
-- libxmlrpc missing: needed for ubigraph module.
-- ZeroMQ was not found. Make sure ZMQ_LIBRARY and ZMQ_INCLUDE_DIR are set.
-- ZeroMQ was not found; the message system used by GUI monitor for OAC will not be built.
To over-ride, make sure ZMQ_LIBRARIES and ZMQ_INCLUDE_DIRS are set.
-- Cxxtest was not found. Make sure CXXTEST_BIN_DIR is set.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Doxygen not found, you won't be able to generate API documentation.

The following components WILL NOT be built:
-----------------------------------------------
   AtomSpace         - A weighted and typed hypergraph database.
   Attention         - Agents for attention allocation dynamics.
   ComboReduct       - Library for reduction of combo program trees.
   CythonBinding     - Cython (python) bindings.
   Dim. Embedding    - Compute dimensional embedding of the AtomSpace.
   Doxygen           - Code documentation.
   Embodiment        - Architecture for embodiment.
   FeatureSelection  - MOSES based feature selection tool.
   Hypertable        - HyperTable for scalable persistance (experimental).
   MOSES             - Meta-Optimizing Semantic Evolutionary Search.
   SchemeBinding     - Scheme bindings and shell.
   Server            - The CogServer.
   Spatial           - Vizualisation of the 3D spacemap.
   SQL Persist       - Interfaces for SQL persistance of the AtomSpace.
   Ubigraph          - Visualisation of the AtomSpace.
   Util              - General utility library.
   WebInterface      - Web server and REST API.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_FILESYSTEM_LIBRARY (ADVANCED)
    linked by target "util" in directory /home/joe/opencog/opencog/util
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/joe/opencog
   used as include directory in directory /home/joe/opencog/opencog
   used as include directory in directory /home/joe/opencog/opencog/util
   used as include directory in directory /home/joe/opencog/opencog/comboreduct
   used as include directory in directory /home/joe/opencog/opencog/comboreduct/combo
   used as include directory in directory /home/joe/opencog/opencog/comboreduct/reduct
   used as include directory in directory /home/joe/opencog/opencog/comboreduct/ant_combo_vocabulary
   used as include directory in directory /home/joe/opencog/opencog/comboreduct/main
   used as include directory in directory /home/joe/opencog/opencog/comboreduct/crutil
   used as include directory in directory /home/joe/opencog/opencog/reasoning
   used as include directory in directory /home/joe/opencog/opencog/learning
   used as include directory in directory /home/joe/opencog/opencog/learning/statistics
   used as include directory in directory /home/joe/opencog/opencog/spacetime
   used as include directory in directory /home/joe/opencog/opencog/spatial
   used as include directory in directory /home/joe/opencog/lib
   used as include directory in directory /home/joe/opencog/tests
   used as include directory in directory /home/joe/opencog/examples
   used as include directory in directory /home/joe/opencog/examples/modules
Boost_PROGRAM_OPTIONS_LIBRARY (ADVANCED)
    linked by target "eval-table" in directory /home/joe/opencog/opencog/comboreduct/main
    linked by target "gen-disj-conj" in directory /home/joe/opencog/opencog/comboreduct/main
    linked by target "gen-table" in directory /home/joe/opencog/opencog/comboreduct/main
Boost_REGEX_LIBRARY (ADVANCED)
    linked by target "util" in directory /home/joe/opencog/opencog/util
Boost_SYSTEM_LIBRARY (ADVANCED)
    linked by target "util" in directory /home/joe/opencog/opencog/util
Boost_THREAD_LIBRARY (ADVANCED)
    linked by target "util" in directory /home/joe/opencog/opencog/util
    linked by target "SpaceMap" in directory /home/joe/opencog/opencog/spatial

-- Configuring incomplete, errors occurred!
joe@macMiniUbuntu:~/opencog/bin$ make -j1
make: *** No targets specified and no makefile found. Stop.
joe@macMiniUbuntu:~/opencog/bin$ 

Joel Pitt

unread,
Nov 6, 2012, 4:27:47 PM11/6/12
to ope...@googlegroups.com
Hi Joe -

If you look back over the output, and then check the lines below:

"CMake Error: The following variables are used in this project, but
they are set to NOTFOUND."

Basically, you need the boost libraries/headers to build OpenCog.
Cmake won't create a Makefile unless you resolve these issues.

-Joel
>> Contact me: karl.sackett
>>
>> Get a signature like this. CLICK HERE.
>>

Alex van der Peet

unread,
Nov 6, 2012, 7:09:55 PM11/6/12
to ope...@googlegroups.com
Search the OpenCog wiki for ocpkg and run that, it installs all these prereq packages for you and then builds the sources.

Search for 'Installing OpenCog for Noobs' if you want to have a (or several) build runs that you initiate yourself.

Sent from my iPhone / 发自我的 iPhone / iPhone から送信

Karl Sackett

unread,
Nov 6, 2012, 9:58:38 PM11/6/12
to ope...@googlegroups.com
On Mon, Nov 5, 2012 at 8:40 PM, Alex van der Peet <alex.van...@gmail.com> wrote:
 

make –j1


The make option didn't appear to make any difference.

Here's the head of the log file. It has similar error
messages for every module listed in the conf file.

miranda$ ./cogserver
Using default config at /usr/local/etc/opencog.conf
[INFO] Using config file found at: /usr/local/etc/opencog.conf
[2012-11-07 02:36:50:041] [INFO] Cache lru_cache_threaded
[2012-11-07 02:36:50:042] [INFO] Loading module "opencog/server/libbuiltinreqs.so"
[2012-11-07 02:36:50:042] [ERROR] Unable to load module "opencog/server/libbuiltinreqs.so": opencog/server/libbuiltinreqs.so: cannot open shared object file: No such file or directory
        Stack Trace:
        2: /home/krs/git/opencog/bin/opencog/util/libutil.so (opencog::Logger::Error::operator()(char const*, ...) +0x92) [0x7fb4b66b9a42]
        3: /home/krs/git/opencog/bin/opencog/server/libserver.so (opencog::CogServer::loadModule(std::string const&) +0x163) [0x7fb4b793cef3]
        4: /home/krs/git/opencog/bin/opencog/server/libserver.so (opencog::CogServer::loadModules() +0xcd) [0x7fb4b793d51d]
        5: ./cogserver (� +0x178b) [0x40d31b]
        6: /lib/x86_64-linux-gnu/libc.so.6 (� +0xfd) [0x7fb4b4282ead]
        7: ./cogserver() [0x40dc4d]

[2012-11-07 02:36:50:042] [INFO] Loading module "opencog/persist/sql/libpersist.so"
[2012-11-07 02:36:50:042] [ERROR] Unable to load module "opencog/persist/sql/libpersist.so": opencog/persist/sql/libpersist.so: cannot open shared object file: No such file or directory                                                                                                                           [161/1891]
        Stack Trace:
        2: /home/krs/git/opencog/bin/opencog/util/libutil.so (opencog::Logger::Error::operator()(char const*, ...) +0x92) [0x7fb4b66b9a42]
        3: /home/krs/git/opencog/bin/opencog/server/libserver.so (opencog::CogServer::loadModule(std::string const&) +0x163) [0x7fb4b793cef3]
        4: /home/krs/git/opencog/bin/opencog/server/libserver.so (opencog::CogServer::loadModules() +0xcd) [0x7fb4b793d51d]
        5: ./cogserver (� +0x178b) [0x40d31b]
        6: /lib/x86_64-linux-gnu/libc.so.6 (� +0xfd) [0x7fb4b4282ead]
        7: ./cogserver() [0x40dc4d]

--
Karl Sackett                                      karl.s...@gmail.com

David Hart

unread,
Nov 6, 2012, 10:20:43 PM11/6/12
to ope...@googlegroups.com
On Wed, Nov 7, 2012 at 10:58 AM, Karl Sackett <karl.s...@gmail.com> wrote:
opencog/server/libbuiltinreqs.so: cannot open shared object file: No such file or directory

Yeah, it's likely that libbuiltinreqs.so and the other modules are simply not being built.

Referencing the previous error in the cmake output, did you check that all of the required Boost components and their development counterparts containing header files are installed, then re-run cmake? Following the dependencies from opencog/server/CMakeLists.txt shows that Boost is required to build libbuiltinreqs.so. Probably the same is true of most of the other modules and certainly it's true of the atomspace.

-dave

--
David Hart |  +852 9875 1345
OpenCog Foundation | http://opencog.org

Alex van der Peet

unread,
Nov 6, 2012, 10:25:58 PM11/6/12
to ope...@googlegroups.com
Are you starting the server from the /bin folder with

./opencog/server/cogserver

?


Sent from my iPhone / 发自我的 iPhone / iPhone から送信

Joe Da Silva

unread,
Nov 9, 2012, 4:52:37 AM11/9/12
to ope...@googlegroups.com
Joel & Alex, thanks so much, following the page below did it for me. I now have a fully compiled opencog. now to the tests...


Joe

Alex van der Peet

unread,
Nov 9, 2012, 8:34:15 AM11/9/12
to ope...@googlegroups.com
Great to hear it! Looking forward to hear how you go on the rest of the tutorials!

Take care,

Alex


Sent from my iPhone / 发自我的 iPhone / iPhone から送信

Matt Kruse

unread,
Nov 10, 2012, 2:02:15 AM11/10/12
to ope...@googlegroups.com
I too am having issues with the cogserver. I am trying to use the opencog from the github repo. I've tried building it twice on one machine and once on another and I keep running into this issue where no commands work. I understand I could probably follow that tutorial but I would like to continue using the github repo.

Alex van der Peet

unread,
Nov 10, 2012, 3:08:12 AM11/10/12
to ope...@googlegroups.com
The tutorial for installing OpenCog (for Noobs) should be up to date regarding Github. It tells you to run ocpkg which downloads the source from Github, followed by a git clone command to the folder of your choice.

If you still have old ocpkg scripts from the pre-git ocpkg script in the folder you ran the wget command previously you should delete those first with

rf -rm ocpkg*

Is it possible the fork you made is not up to date perhaps? A snippet from your /tmp/cogserver.log file may be useful to help you further, as well as your /lib/opencog.conf file if you've changed it.

Take care,

Alex


Sent from my iPhone / 发自我的 iPhone / iPhone から送信

Karl Sackett

unread,
Nov 9, 2012, 1:03:30 PM11/9/12
to ope...@googlegroups.com
On Tue, Nov 6, 2012 at 9:25 PM, Alex van der Peet <alex.van...@gmail.com> wrote:
Are you starting the server from the /bin folder with

./opencog/server/cogserver

?

If I start the server from the /bin directory the help and quit commands
work. If I start the server from /usr/local/bin (after running 'make install'
and 'ldconfig') I get the error message about loading shared libraries.

Compare this:

$ pwd
/home/krs/git/opencog/bin
$ ./opencog/server/cogserver
Using default config at /usr/local/etc/opencog.conf
Using default config at ../lib/opencog.conf
Listening on port 17001
^C

...with this:

$ which cogserver
/usr/local/bin/cogserver
$ cogserver
cogserver: error while loading shared libraries: libserver.so: cannot open shared object file: No such file or directory

David Hart

unread,
Nov 11, 2012, 8:17:33 PM11/11/12
to ope...@googlegroups.com
On Tue, Nov 6, 2012 at 1:01 PM, Keith McPherson <damo...@gmail.com> wrote:
I was in the same boat as you 20 minutes ago.  Just got it built for the first as well.  I had ran the same command as you, but couldn't get help/exit/etc to work.  I tried a few more things, and got it to work after running this line (from the proper place,naturally):

./opencog/server/cogserver -c ../lib/opencog.conf

I believe this is the most reliable way to run OpenCog at present. 'make install' has been broken for a while now. Amber Jain is working on creating packages for OpenCog, which will likely happen before 'make install' is fixed.

-dave
 

Lian Ruiting

unread,
Jan 15, 2013, 6:07:35 AM1/15/13
to ope...@googlegroups.com
I got the same problem many times in the last two days... I re-installed OpenCog and the scheme shell only worked for the first time, i.e. stopped working again after I shut down the terminals and relaunched new ones, even couldn't recognize the quit commands

*****
opencog> .
command "." not found
opencog> .
command "." not found
opencog> ^D    
command "^D" not found
opencog> ^C
command "^C" not found
opencog> ^C" not found
opencog> command "" not found
opencog> ^C" not found
opencog> command "" not found
opencog> ^C" not found
opencog> command "" not found
opencog> ^C" not found
*****

I tried the advice from this email thread and didn't work unless re-installing the whole system but that only solved the problem temporally. 

--
Ruiting Lian



---------- Forwarded message ----------
From: Karl Sackett <karl.s...@gmail.com>
Date: Tue, Nov 6, 2012 at 10:05 AM
Subject: [opencog-dev] Problems starting the opencog server.
--

Alex van der Peet

unread,
Jan 15, 2013, 6:52:34 AM1/15/13
to ope...@googlegroups.com
Ok, I'm still setting up my system, will see if I can find out the problem tomorrow :(


Sent from Samsung Mobile

Lian Ruiting

unread,
Jan 15, 2013, 6:55:01 AM1/15/13
to ope...@googlegroups.com
Do you know which version of OpenCog is the latest? I'm still using the one from launchpad... maybe that's the problem

Ruiting Lian

Alex van der Peet

unread,
Jan 15, 2013, 7:00:07 AM1/15/13
to ope...@googlegroups.com
Haha yes that's it!

Check the wiki for "installing opencog for noobs", it will run David's ocpkg script with the github packages and download and build it in your /usr folder. The wiki also explains how to clone that download to your /home/src folder, build it there again, and then everything will work!

Nil Geisweiller

unread,
Jan 15, 2013, 7:04:15 AM1/15/13
to ope...@googlegroups.com
On Tue, Jan 15, 2013 at 12:55 PM, Lian Ruiting <lianli...@gmail.com> wrote:
Do you know which version of OpenCog is the latest? I'm still using the one from launchpad... maybe that's the problem

That definitely is a problem!!!

We've moved to github for a while now.

https://github.com/opencog/opencog

I guess we should either remove the one from launchpad or have some automatic update mechanism.

Nil
 

Lian Ruiting

unread,
Jan 15, 2013, 8:35:39 AM1/15/13
to ope...@googlegroups.com
BTW, I got the same problem after installing the latest version from github (the scheme shell still only worked for the first time). The only thing I did slightly different from the introduction from the wiki page was renaming the "/home/ruiting/src/ochack/README.md" to "/home/ruiting/src/ochack/README", since I got a problem of not finding the README file while cmak-ing it...

*******
CMake Error at /usr/share/cmake-2.8/Modules/CPack.cmake:338 (message):
  CPack package description file: "/home/ruiting/src/ochack/README" could not
  be found.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CPack.cmake:342 (cpack_check_file_exists)
  CMakeLists.txt:632 (INCLUDE)



The following components will be built:
-----------------------------------------------
   AtomSpace         - A weighted and typed hypergraph database.
   Attention         - Agents for attention allocation dynamics.
   ComboReduct       - Library for reduction of combo program trees.
   CythonBinding     - Cython (python) bindings.
   Dim. Embedding    - Compute dimensional embedding of the AtomSpace.
   Doxygen           - Code documentation.
   Embodiment        - Architecture for embodiment.
   FeatureSelection  - MOSES based feature selection tool.
   MOSES             - Meta-Optimizing Semantic Evolutionary Search.
   SchemeBinding     - Scheme bindings and shell.
   Server            - The CogServer.
   Spatial           - Vizualisation of the 3D spacemap.
   SQL Persist       - Interfaces for SQL persistance of the AtomSpace.
   Ubigraph          - Visualisation of the AtomSpace.
   Util              - General utility library.
   WebInterface      - Web server and REST API.

The following components WILL NOT be built:
-----------------------------------------------
   Hypertable        - HyperTable for scalable persistance (experimental).

-- Configuring incomplete, errors occurred!
ruiting@seneca:~/src/ochack/bin$ make
make: *** No targets specified and no makefile found.  Stop.

*******

--
Ruiting Lian

Linas Vepstas

unread,
Jan 15, 2013, 11:20:56 AM1/15/13
to ope...@googlegroups.com
On 15 January 2013 07:35, Lian Ruiting <lianli...@gmail.com> wrote:
BTW, I got the same problem after installing the latest version from github (the scheme shell still only worked for the first time). 

What do you mean "it worked only the first time?"  For me, I can telnet in multiple times, exit, and reconnect just fine. 

However, I did notice that if I telnet in from two terminals at the same time, and then exit from both, I get a boost exception which crashes the server.  According to gdb, its because opencog/server/ServerSocket.cc line 62 throws an exception.   I assume that either boost is broken, or that we are using it incorrectly.  I am guessing that commenting out that line might fix the crash, but I did not test.

--linas

David Hart

unread,
Jan 15, 2013, 6:49:20 PM1/15/13
to ope...@googlegroups.com, ope...@googlegroups.com
The launchpad/bazaar repo for opencog has been in sync with GitHub since the changeover, so that may not be the source of the cogserver problem.

-dave

David Hart | phone +61 419 483 263 | sent from iPhone  

Alex van der Peet

unread,
Jan 16, 2013, 2:06:35 AM1/16/13
to ope...@googlegroups.com
Thanks for clearing that up! :)

It works now, the only issue that I found was that the /tmp/cogserver.log file was owned by root, most likely due to starting the cogserver as root.

Removed the log file and now it works fine, even in subsequent sessions.

Alex


Sent from Samsung Mobile

ptr...@gmail.com

unread,
Mar 6, 2014, 3:50:42 AM3/6/14
to ope...@googlegroups.com, Alex van der Peet
before you cmake rename the line in opencog/CMakeLists.txt:
FIND_PACKAGE(PThreads REQUIRED)
   to
FIND_PACKAGE(Threads REQUIRED)

line 107 for me.. seems to pick up the threading library then.
also you might want to change:

LINK_LIBRARIES(pthread)
  to something like:      ^(although this seem to work fine for me on wheezy.)
LINK_LIBRARIES(${CMAKE_THREAD_LIBS_INIT})         

Reply all
Reply to author
Forward
0 new messages