-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREAD_ME
More file actions
67 lines (45 loc) · 2.26 KB
/
Copy pathREAD_ME
File metadata and controls
67 lines (45 loc) · 2.26 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
./src - source code for the core ORBIT C++ classes, including
wrappers, etc.
./py - python modules and wrapper classes for the core ORBIT
classes.
./ext - source code for external modules. Compilations of this
code should be placed into ./lib.
./lib - .so shared libraries to be used under pyORBIT interpreter.
./examples - samples of pyORBIT scripts.
./doc - pyORBIT documentation.
./conf - configuration information.
./bin - a directory containing the pyORBIT executable.
============SETTING THE ENVIRONMENT VARIABLES=============
The user should define:
ORBIT_ROOT - the full path to the directory pyORBIT.
ORBIT_ARCH - architecture of the system. At present it is LINUX only.
PYTHON_VERSION - python version, for example: export PYTHON_VERSION = 2.4
PYTHON_ROOT_LIB - the name of the python library including the full path.
It is usually
/usr/lib/python$(PYTHON_VERSION)/config/libpython$(PYTHON_VERSION).a
or it could be shared python library and in this case
export PYTHON_ROOT_LIB=' -L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}'
PYTHON_ROOT_INC - location of the python header files.
It is usually
/usr/include/python$(PYTHON_VERSION)
PYTHONPATH - should be modified to include access to the ORBIT
python modules:
export PYTHONPATH=${PYTHONPATH}:${ORBIT_ROOT}/py:${ORBIT_ROOT}/lib
LD_LIBRARY_PATH - location of the shared libraries with extenstions of the pyORBIT
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORBIT_ROOT}/lib
FFTW3_ROOT - location of the root directory of the FFTW library, version 3 and above
MPI_CPP - the name of the MPI c++ compiler (could be mpiCC, mpic++ etc.)
===============TROUBLESHOOTING===============================================
You can use another build tool - Scons (http://www.scons.org/) by typing
>scons
in the pyORBIT directory. In this case python will figure all locations by itself.
Another hint.
If you do not know where your Python libraries are, you can use python itself
to figure that out
>python
>>from distutils import sysconfig
>>print sysconfig.get_config_var('LIBPL')
>>print sysconfig.get_config_var('LIBRARY')
>>sysconfig.get_config_var('INCLUDEPY')
These commands will tell you where they are (library and headers).
test