Skip to content

Commit f6afc42

Browse files
author
david hill
committed
the begginning
1 parent 66a31de commit f6afc42

File tree

18,251 files changed

+16460679
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

18,251 files changed

+16460679
-2
lines changed

AUTHORS

Whitespace-only changes.

COPYING

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

ChangeLog

Lines changed: 445 additions & 0 deletions
Large diffs are not rendered by default.

CodeTree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
build - tools to help build InfiniDB
2+
buildFlags
3+
dbcon - most of the code for InfiniBD:
4+
ddlpackage - classes to parse DDL
5+
ddlpackageproc - classes to perform DDL
6+
dmlpackage - classes to parse DML
7+
dmlpackageproc - classes to perform DML
8+
doc - some historical documents
9+
execplan - classes to describe an execution plan from a SQL point of view
10+
ingres - WIP code to interface w/ Ingres
11+
joblist - classes that transform a SQL tree into IDB job instructions
12+
mysql - the MySQL Storage Engine API layer, also the patches to MySQL server
13+
plsql - WIP code to interface w/ Oracle
14+
sm - an abstraction layer for interfacing with ExeMgr
15+
ddlproc - main service loop for DDL
16+
dmlproc - main service loop for DML
17+
exemgr - main service loop for queries
18+
mysql - mostly header files copied from MySQL
19+
net-snmp - SNMP library
20+
oam - OAM service library
21+
oamapps - some OAM apps
22+
primitives - most of the code to build PrimProc, the main block processor
23+
snmpd - snmp utils
24+
tools - tools to debug IDB
25+
utils - utility classes
26+
versioning - classes to help with MVCC
27+
writeengine - classes that write data to disk
28+

INSTALL

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
Installation Instructions
2+
*************************
3+
4+
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
5+
Software Foundation, Inc.
6+
7+
Copyright (C) 2014 InfiniDB, Inc.
8+
9+
This file is free documentation; the Free Software Foundation gives
10+
unlimited permission to copy, distribute and modify it.
11+
12+
InfiniDB, Inc. also gives unlimited permission to copy, distribute and
13+
modify it.
14+
15+
Basic Installation from source
16+
==============================
17+
18+
**** InfiniDB source build instructions ****
19+
20+
Consult the generic installation instructions
21+
that follow for detailed information. The short version is:
22+
23+
cd $HOME
24+
git clone http://github.com/infinidb/mysql
25+
git clone http://github.com/infinidb/infinidb
26+
-- or --
27+
tar -zxf <srcfile>
28+
cd mysql
29+
./configure --prefix=$HOME
30+
make
31+
make install
32+
cd ../infinidb
33+
./configure --prefix=$HOME
34+
make
35+
make install
36+
37+
This will create a directory called Calpont in $HOME which conatins
38+
all the software you need.
39+
40+
Install the InfiniDB software into /usr/local (for example) by copying
41+
the entire Calpont directory tree there.
42+
43+
After untaring the sofware or installing the RPM's, setup the software
44+
to run (this script needs to run with root privileges). Check the Installation
45+
Guide for addition details on using postConfigure:
46+
/usr/local/Calpont/bin/postConfigure
47+
48+
Setup some aliases:
49+
. /usr/local/Calpont/bin/calpontAlias
50+
51+
Connect to MySQL:
52+
idbmysql
53+
54+
A suggested test scenario:
55+
create database calpont;
56+
use calpont;
57+
create table caltest (col1 int, col2 int) engine=infinidb;
58+
show create table caltest;
59+
set autocommit=0;
60+
insert into caltest values (1, 2);
61+
insert into caltest values (3, 4);
62+
commit;
63+
select * from caltest;
64+
65+
To use bulk load:
66+
1. A delimited import file should be created to match the table that
67+
you want to import data to similar to the following. In this
68+
example, the file will be saved as idbtest.tbl:
69+
100|1001|
70+
200|2002|
71+
2. Save/place this file in a directory.
72+
3. From that same directory, import the rows:
73+
/usr/local/Calpont/bin/cpimport calpont caltest caltest.tbl
74+
75+
And check the import:
76+
calpontmysql calpont
77+
select * from caltest;
78+
79+
80+
That's it. Enjoy.
81+
82+
83+
These are generic installation instructions.
84+
85+
The `configure' shell script attempts to guess correct values for
86+
various system-dependent variables used during compilation. It uses
87+
those values to create a `Makefile' in each directory of the package.
88+
It may also create one or more `.h' files containing system-dependent
89+
definitions. Finally, it creates a shell script `config.status' that
90+
you can run in the future to recreate the current configuration, and a
91+
file `config.log' containing compiler output (useful mainly for
92+
debugging `configure').
93+
94+
It can also use an optional file (typically called `config.cache'
95+
and enabled with `--cache-file=config.cache' or simply `-C') that saves
96+
the results of its tests to speed up reconfiguring. (Caching is
97+
disabled by default to prevent problems with accidental use of stale
98+
cache files.)
99+
100+
If you need to do unusual things to compile the package, please try
101+
to figure out how `configure' could check whether to do them, and mail
102+
diffs or instructions to the address given in the `README' so they can
103+
be considered for the next release. If you are using the cache, and at
104+
some point `config.cache' contains results you don't want to keep, you
105+
may remove or edit it.
106+
107+
The file `configure.ac' (or `configure.in') is used to create
108+
`configure' by a program called `autoconf'. You only need
109+
`configure.ac' if you want to change it or regenerate `configure' using
110+
a newer version of `autoconf'.
111+
112+
The simplest way to compile this package is:
113+
114+
1. `cd' to the directory containing the package's source code and type
115+
`./configure' to configure the package for your system. If you're
116+
using `csh' on an old version of System V, you might need to type
117+
`sh ./configure' instead to prevent `csh' from trying to execute
118+
`configure' itself.
119+
120+
Running `configure' takes awhile. While running, it prints some
121+
messages telling which features it is checking for.
122+
123+
2. Type `make' to compile the package.
124+
125+
3. Optionally, type `make check' to run any self-tests that come with
126+
the package.
127+
128+
4. Type `make install' to install the programs and any data files and
129+
documentation.
130+
131+
5. You can remove the program binaries and object files from the
132+
source code directory by typing `make clean'. To also remove the
133+
files that `configure' created (so you can compile the package for
134+
a different kind of computer), type `make distclean'. There is
135+
also a `make maintainer-clean' target, but that is intended mainly
136+
for the package's developers. If you use it, you may have to get
137+
all sorts of other programs in order to regenerate files that came
138+
with the distribution.
139+
140+
Compilers and Options
141+
=====================
142+
143+
Some systems require unusual options for compilation or linking that the
144+
`configure' script does not know about. Run `./configure --help' for
145+
details on some of the pertinent environment variables.
146+
147+
You can give `configure' initial values for configuration parameters
148+
by setting variables in the command line or in the environment. Here
149+
is an example:
150+
151+
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
152+
153+
*Note Defining Variables::, for more details.
154+
155+
Compiling For Multiple Architectures
156+
====================================
157+
158+
You can compile the package for more than one kind of computer at the
159+
same time, by placing the object files for each architecture in their
160+
own directory. To do this, you must use a version of `make' that
161+
supports the `VPATH' variable, such as GNU `make'. `cd' to the
162+
directory where you want the object files and executables to go and run
163+
the `configure' script. `configure' automatically checks for the
164+
source code in the directory that `configure' is in and in `..'.
165+
166+
If you have to use a `make' that does not support the `VPATH'
167+
variable, you have to compile the package for one architecture at a
168+
time in the source code directory. After you have installed the
169+
package for one architecture, use `make distclean' before reconfiguring
170+
for another architecture.
171+
172+
Installation Names
173+
==================
174+
175+
By default, `make install' installs the package's commands under
176+
`/usr/local/bin', include files under `/usr/local/include', etc. You
177+
can specify an installation prefix other than `/usr/local' by giving
178+
`configure' the option `--prefix=PREFIX'.
179+
180+
You can specify separate installation prefixes for
181+
architecture-specific files and architecture-independent files. If you
182+
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
183+
PREFIX as the prefix for installing programs and libraries.
184+
Documentation and other data files still use the regular prefix.
185+
186+
In addition, if you use an unusual directory layout you can give
187+
options like `--bindir=DIR' to specify different values for particular
188+
kinds of files. Run `configure --help' for a list of the directories
189+
you can set and what kinds of files go in them.
190+
191+
If the package supports it, you can cause programs to be installed
192+
with an extra prefix or suffix on their names by giving `configure' the
193+
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
194+
195+
Optional Features
196+
=================
197+
198+
Some packages pay attention to `--enable-FEATURE' options to
199+
`configure', where FEATURE indicates an optional part of the package.
200+
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201+
is something like `gnu-as' or `x' (for the X Window System). The
202+
`README' should mention any `--enable-' and `--with-' options that the
203+
package recognizes.
204+
205+
For packages that use the X Window System, `configure' can usually
206+
find the X include and library files automatically, but if it doesn't,
207+
you can use the `configure' options `--x-includes=DIR' and
208+
`--x-libraries=DIR' to specify their locations.
209+
210+
Specifying the System Type
211+
==========================
212+
213+
There may be some features `configure' cannot figure out automatically,
214+
but needs to determine by the type of machine the package will run on.
215+
Usually, assuming the package is built to be run on the _same_
216+
architectures, `configure' can figure that out, but if it prints a
217+
message saying it cannot guess the machine type, give it the
218+
`--build=TYPE' option. TYPE can either be a short name for the system
219+
type, such as `sun4', or a canonical name which has the form:
220+
221+
CPU-COMPANY-SYSTEM
222+
223+
where SYSTEM can have one of these forms:
224+
225+
OS KERNEL-OS
226+
227+
See the file `config.sub' for the possible values of each field. If
228+
`config.sub' isn't included in this package, then this package doesn't
229+
need to know the machine type.
230+
231+
If you are _building_ compiler tools for cross-compiling, you should
232+
use the option `--target=TYPE' to select the type of system they will
233+
produce code for.
234+
235+
If you want to _use_ a cross compiler, that generates code for a
236+
platform different from the build platform, you should specify the
237+
"host" platform (i.e., that on which the generated programs will
238+
eventually be run) with `--host=TYPE'.
239+
240+
Sharing Defaults
241+
================
242+
243+
If you want to set default values for `configure' scripts to share, you
244+
can create a site shell script called `config.site' that gives default
245+
values for variables like `CC', `cache_file', and `prefix'.
246+
`configure' looks for `PREFIX/share/config.site' if it exists, then
247+
`PREFIX/etc/config.site' if it exists. Or, you can set the
248+
`CONFIG_SITE' environment variable to the location of the site script.
249+
A warning: not all `configure' scripts look for a site script.
250+
251+
Defining Variables
252+
==================
253+
254+
Variables not defined in a site shell script can be set in the
255+
environment passed to `configure'. However, some packages may run
256+
configure again during the build, and the customized values of these
257+
variables may be lost. In order to avoid this problem, you should set
258+
them in the `configure' command line, using `VAR=value'. For example:
259+
260+
./configure CC=/usr/local2/bin/gcc
261+
262+
causes the specified `gcc' to be used as the C compiler (unless it is
263+
overridden in the site shell script). Here is a another example:
264+
265+
/bin/bash ./configure CONFIG_SHELL=/bin/bash
266+
267+
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
268+
configuration-related scripts to be executed by `/bin/bash'.
269+
270+
`configure' Invocation
271+
======================
272+
273+
`configure' recognizes the following options to control how it operates.
274+
275+
`--help'
276+
`-h'
277+
Print a summary of the options to `configure', and exit.
278+
279+
`--version'
280+
`-V'
281+
Print the version of Autoconf used to generate the `configure'
282+
script, and exit.
283+
284+
`--cache-file=FILE'
285+
Enable the cache: use and save the results of the tests in FILE,
286+
traditionally `config.cache'. FILE defaults to `/dev/null' to
287+
disable caching.
288+
289+
`--config-cache'
290+
`-C'
291+
Alias for `--cache-file=config.cache'.
292+
293+
`--quiet'
294+
`--silent'
295+
`-q'
296+
Do not print messages saying which checks are being made. To
297+
suppress all normal output, redirect it to `/dev/null' (any error
298+
messages will still be shown).
299+
300+
`--srcdir=DIR'
301+
Look for the package's source code in directory DIR. Usually
302+
`configure' can determine that directory automatically.
303+
304+
`configure' also accepts some other, not widely useful, options. Run
305+
`configure --help' for more details.
306+

InfiniDBContributorAgreement.pdf

62.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)