-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_script_mac.sh
More file actions
executable file
·39 lines (28 loc) · 1.21 KB
/
install_script_mac.sh
File metadata and controls
executable file
·39 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# install script for OS X (10.9)
# How to install Homebrew:
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# Make sure you have Homebrew Python installed and a working virtualenv
# brew install python # install Python 2.7.x
# pip install virtualenv # Use pip only inside virtualenv afterwards!
# HINT: It's good practise to make a shell command "syspip" or "gpip" for global pip installs,
# see e.g.: http://hackercodex.com/guide/python-development-environment-on-mac-osx/
# for more virtualenv power:
# http://www.marinamele.com/2014/05/install-python-virtualenv-virtualenvwrapper-mavericks.html
# pip install virtualenvwrapper
brew install mongodb
brew install mysql
brew install numpy
brew install scipy
# Activate your Python virtualenv and install requirement:
# pip install -r requirements.txt
# NLTK needs these packages:
# models/maxent_treebank_pos_tagger
# corpora/stopwords
# Restore databases
sudo mysql -u root -p -e "CREATE DATABASE matching_system;"
sudo mysql -u root -p matching_system < database/matching_system.sql
mongorestore database/dump
# Run MongoDB daemon like this (default port should be correct):
# mongod --dbpath database/