-
Notifications
You must be signed in to change notification settings - Fork 18
/
INSTALL.txt
41 lines (22 loc) · 1.14 KB
/
INSTALL.txt
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
Pre-requisites:
* Java SDK (v1.7 and newer)
* ant (at least 1.8)
* python (on path, v2.5 and newer)
Build everything:
$ git clone git@github.com:romanchyla/montysolr.git montysolr
$ cd montysolr
$ ant build-all
If it finished successfuly, you can run the provided example distribution
$ cd ./build/contrib/examples/adsabs
$ ./run.sh
You need to chdir for this example to work properly.
== FAQ ==
Q: MontySolr (Python) fails with ImportError: module x is not available. But I am sure it is available.
Most likely, the sys.paths are not pointing to the correct folders (ie. when you run Python interpreter
inside Java - when you run Python interpreter directly, the interpreter can deduce path of the site-packages
from its location). Fortunately, the solution is simple, just make sure PYTHONHOME points to the proper
path before you start Java
ie. if you Python executable is in /var/lib/hudson-local/hudson/jobs/001-python/workspace/python/bin/python
do:
export PYTHONHOME=/var/lib/hudson-local/hudson/jobs/001-python/workspace/python
And Python will magically populate sys.path with the dist-packages, site-packages etc.