KDB Installation

Download Link : http://kx.com/software-download.php
Installation instructions : http://code.kx.com/wiki/Tutorials/Installation?_ga=1.228375069.1038810810.1445944746
Go to http://kx.com/software-download.php. Click through the form and proceed to download. Choose the latest version and click ZIP.
Unzip the downloaded file (linux.zip), and move the extracted q directory into your home directory.

[ root @ dbfry.com : /tmp ] ll -lhrt linux.zip
-rw-r–r– 1 sm70768 mongod 300K Oct 27 07:20 linux.zip
[ root @ dbfry.com : /tmp ]
[ root @ dbfry.com : /tmp ] dos2unix linux.zip
dos2unix: converting file linux.zip to UNIX format …
[ root @ dbfry.com : /tmp ]
[ root @ dbfry.com : /tmp ] unzip linux.zip
Archive: linux.zip
error [linux.zip]: missing 1 bytes in zipfile
(attempting to process anyway)
error [linux.zip]: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
(attempting to re-compensate)
inflating: q/README.txt
inflating: q/l32/q
inflating: q/q.q
inflating: q/q.k bad CRC 7cb0443e (should be 7d4eee6d)
file #5: bad zipfile offset (local header sig): 301933
(attempting to re-compensate)
inflating: q/s.k
inflating: q/trade.q
inflating: q/sp.q
[ root @ dbfry.com : /tmp ]

[ root @ dbfry.com : /tmp ] mv q ~/.
[ root @ dbfry.com : /tmp ]

[ root @ dbfry.com : /tmp ] cd ~/.
[ root @ dbfry.com : ~ ] ll -lhtr
total 37M
-rw-r–r– 1 root root 37M Jul 23 06:47 mongodb-linux-i686-3.0.4.tgz
drwxr-xr-x 2 root root 4.0K Oct 26 18:12 yum.repos.old
drwxr-xr-x 3 root root 4.0K Oct 27 07:26 q
[ root @ dbfry.com : ~ ]
Is your machine running a 32-bit or a 64-bit linux distribution? Use the uname command to check.

[ root @ dbfry.com : /tmp ] uname -m
x86_64
[ root @ dbfry.com : /tmp ]

If the result is i686 (or i386 or something similar), you can proceed to the Install section (you are running a 32-bit distribution).

However, if the result is x86_64, you will need to install a 32-bit library.
Use your usual package installer to install i686 or i386, for example:

Add the following lines to your .bashrc file, which can be found in your home directory. If you do not have one, you can create it.

[ root @ dbfry.com : ~ ] q
-bash: q: command not found
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ] export QHOME=~/q/
[ root @ dbfry.com : ~ ] export PATH=$PATH:$QHOME/l32
[ root @ dbfry.com : ~ ] alias q=’$QHOME/l32/q’

Note: Rather than adding to the PATH variable, you can instead refer to the full filepath in an alias.
[ root @ dbfry.com : ~ ] vi ~/.bashrc
# .bashrc

# User specific aliases and functions
export QHOME=~/q/
export PATH=$PATH:$QHOME/l32
alias q=’$QHOME/l32/q’

~
~
~
~
“.bashrc” 22L, 432C written
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ] source ~/.bashrc
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ] env | grep QHOME
QHOME=/root/q/
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ]

[ root @ dbfry.com : ~ ] q
KDB+ 3.3 2015.09.02 Copyright (C) 1993-2015 Kx Systems
l32/ 2()core 3832MB root dbfry.com 10.42.105.44 NONEXPIRE

‘]
@
“k”
“count:#:;first:*:;svar:{(n*var x)%-1+n:(#x)-+/^x};sdev:{sqrt svar x};scov:{(..
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ] chmod +x /root/q/l32/q
[ root @ dbfry.com : ~ ]
[ root @ dbfry.com : ~ ] q
KDB+ 3.3 2015.09.02 Copyright (C) 1993-2015 Kx Systems
l32/ 2()core 3832MB root dbfry.com 10.42.105.44 NONEXPIRE

‘]
@
“k”
“count:#:;first:*:;svar:{(n*var x)%-1+n:(#x)-+/^x};sdev:{sqrt svar x};scov:{(..
[ root @ dbfry.com : ~ ]

  • Ask Question