-
Notifications
You must be signed in to change notification settings - Fork 19
/
INSTALL
54 lines (30 loc) · 1.29 KB
/
INSTALL
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
Install System Wide:
====================
Installing altsql system side is best done with the `cpan` tool you probably already have installed on your machine.
$ sudo cpan
cpan[1]> install App::AltSQL
If you don't have cpan or if it's not configured properly, a good alternative is cpanm. If you don't have cpanm, it's pretty easy to install:
$ curl -L http://cpanmin.us | perl - --sudo App::cpanminus
Now install with cpanm:
$ sudo cpanm App::AltSQL
Install User Space:
===================
If you don't have sudo access on the box you're working on, you can install altsql into your userspace fairly easily. This involves using local::lib (http://search.cpan.org/perldoc?local%3A%3Alib).
NOTE: This is not recommended unless you're comfortable getting your hands a bit dirty.
Step 1: Install cpanm
mkdir ~/bin
cd ~/bin
curl -LO http://xrl.us/cpanm
chmod +x cpanm
Step 2: Install local::lib and setup your environment
~/bin/cpanm --local-lib=~/perl5 local::lib
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
Step 3: Recreate this environment on future shells
Bash:
echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >> ~/.bashrc
C shell:
perl -I$HOME/perl5/lib/perl5 -Mlocal::lib >> ~/.cshrc
Step 4: Install altsql
~/bin/cpanm App::AltSQL
Step 5: Run!
altsql