Installation and configuration process for Ubuntu14.04 under Deepdive

Source: Internet
Author: User
Tags git clone

Deepdive is an open source knowledge mining system offered by Stanford University, with GitHub at: https://github.com/HazyResearch/deepdive, Project homepage: http://deepdive.stanford.edu/. Please refer to the two links for their code and detailed descriptions. This article mainly introduces the process of installing configuration deepdive under Ubuntu14.04.

A Install all dependencies

Depend on:

Java (1.7.0_45 version or above )

Python 2.X (pre- installed )

PostgreSQL (9.1 or later )

SBT

Gnuplot

In the Command Line window, enter the following command:

sudo apt-get install openjdk-7-jdk icedtea-7-pluginsudo apt-get install postgresqlsudo apt-get install Curlecho "Deb HTTPS ://dl.bintray.com/sbt/debian/"| sudo tee-a/etc/apt/sources.list.d/sbt.listsudo apt-get updatesudo apt-get install sbtsudo apt-get Install gnuplot-x11

Two . download and compile deepdive

1. Download the Deepdive Project

git clone https://github.com/HazyResearch/deepdive.git

2. Configure the Maven warehouse image (SBT package project will download a variety of dependencies from the Maven repository, some of which are dependent on the wall will cause the package to fail, the workaround can be to configure the VPN or configure the Maven warehouse of the domestic mirror)

Add a ' repositories ' file to the ' ~/.SBT ' directory and enter the following:

[Repositories]  localosc:http://maven.oschina.net/content/groups/public/typesafe:http://repo.typesafe.com/typesafe/ Ivy-releases/, [organization]/[module]/(scala_[scalaversion]/) (sbt_[sbtversion]/) [Revision]/[type]s/[artifact] ( -[classifier]). [ext], Bootonlysonatype-oss-releasesmaven-centralsonatype-oss-snapshots

3. Compile the Deepdive project and enter make in the command window:

Make

It will take a long time for the success to display the following message:

success! Deepdive binary has been put into $HOME/local/bin.

Three. Configure Deepdive

After compiling the test script that runs the deepdive directly, there are many tests that fail and some configuration is required.

1. Setting Environment variables

Add the following two lines to the ' ~/.BASHRC ' file

Export Deepdive_home=[your path to install Deepdive]export ld_library_path= $DEEPDIVE _home/lib/dw_linux/lib: $DEEPDIVE _home/lib/dw_linux/lib64

Exit after saving, and then enter in the command window:

SOURCE ~/.BASHRC

2. PostgreSQL User Settings

To enable deepdive to access PostgreSQL normally, you need to create a new user for PostgreSQL (the username must match the Ubuntu current user name using Deepdive), as follows:

First, in the Command Line window, enter:

Sudo-u Postgres psql Postgres

You then enter the interactive interface of PostgreSQL, in which you enter the following command to create a new user:

CREATE ROLE Tom with SUPERUSER createdb Createrole REPLICATION LOGIN; ALTER ROLE Tom with PASSWORD ' the user password '; \q

Note that the ' Tom ' in the above command should be replaced by a specific Ubuntu user name, and the password will be set by itself.

Finally, go to the Deepdive directory and modify the 3rd, 4 lines in the test/test_psql.sh file:

Export Pguser=tom (replace here with the user name you just created) export pgpassword=***** (this is replaced by the password you just created for user input)

Save exit.

After the above configuration, run in the Deepdive directory./test.sh can pass all the tests.

Follow-up will continue to describe how deepdive is used and the algorithms involved.

Reference Documentation:

Http://www.scala-sbt.org/download.html

http://blog.csdn.net/mmical/article/details/41925823

Http://deepdive.stanford.edu/doc/basics/installation.html

Http://deepdive.stanford.edu/doc/advanced/ubuntu.html

Installation and configuration process for Ubuntu14.04 under Deepdive

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.