MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
47 stars 12 forks source link

Unable to make #58

Closed w32zhong closed 10 years ago

w32zhong commented 10 years ago

I encountered the following error when I tried to make the project ....

-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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  
CMake Error at scripts/cmake-modules/FindMicroHttpd.cmake:55 (IF):
  if given arguments:

    "LESS" "0.9"

  Unknown arguments specified
Call Stack (most recent call first):
  src/mws/daemon/CMakeLists.txt:30 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/home/tk/Desktop/mws/bin/CMakeFiles/CMakeOutput.log".
See also "/home/tk/Desktop/mws/bin/CMakeFiles/CMakeError.log".
make: *** [bin/cmake_bootstrap_success] Error 1
cprodescu commented 10 years ago

It seems the MicroHttpd library is not installed. On Ubuntu/Debian the package is libmicrohttpd-dev.

w32zhong commented 10 years ago

I continue to make but failed with JSON dependency I guess, even if I have already installed libjson-c-dev

tk@~/Desktop/mws$ sudo apt-get install libjson-c-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libjson-c-dev is already the newest version.
The following packages were automatically installed and are no longer required:
  asymptote asymptote-doc libgsl0ldbl libpoppler-qt4-4 linux-image-generic python-imaging-tk texlive-lang-english texmaker-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
tk@~/Desktop/mws$ make
-- Could NOT find JSON (missing:  JSON_INCLUDE_DIRS) 
-- Found ICU header files in /usr/include/x86_64-linux-gnu
-- Found ICU libraries: /usr/lib/x86_64-linux-gnu/libicuuc.so
-- Could NOT find JSON (missing:  JSON_INCLUDE_DIRS) 
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:
JSON_INCLUDE_DIRS (ADVANCED)
   used as include directory in directory /home/tk/Desktop/mws/src/mws/xmlparser
   used as include directory in directory /home/tk/Desktop/mws/src/crawler
   used as include directory in directory /home/tk/Desktop/mws/src/crawler
   used as include directory in directory /home/tk/Desktop/mws/src/crawler
   used as include directory in directory /home/tk/Desktop/mws/src/crawler
   used as include directory in directory /home/tk/Desktop/mws/src/crawler
   used as include directory in directory /home/tk/Desktop/mws/src/crawler

-- Configuring incomplete, errors occurred!
See also "/home/tk/Desktop/mws/bin/CMakeFiles/CMakeOutput.log".
See also "/home/tk/Desktop/mws/bin/CMakeFiles/CMakeError.log".
make: *** [bin/cmake_bootstrap_success] Error 1
w32zhong commented 10 years ago

Also, it would be nice if I can see any demo search page that uses mws...

cprodescu commented 10 years ago

What is the running environment? (i.e. operating system)

A demo is available at http://search.mathweb.org/zbl/?query-text=Fermat&query-math=%3Fa%5E%3Fn%20%2B%20%3Fb%5E%3Fn%3D%3Fc%5E%3Fn#1 Please note that this GitHub project is only the backend service.

w32zhong commented 10 years ago

Ubuntu 14.04

cprodescu commented 10 years ago

You should install libjson0-dev

w32zhong commented 10 years ago

Thank you!