-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
64 lines (42 loc) · 2.05 KB
/
README.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
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
# Librets-Gem
This is a gem that includes the Librets library for OS X and Heroku.
The following are directions on how to build the binary bundles:
/lib/librets_native.bundle (OS X Lion)
/lib/librets_native.so (Ubuntu 10.04 64-bit)
## Build librets on Mac OS X Lion
Note: Building Librets-Gem is not currently supported on Mountain Lion.
You will need to install the custom homebrew formula in script/homebrw_formula/librets.rb, or maybe
the latest homebrew already has fredngo's patch in it. Check to see if this pull request has been
honored and released -- https://github.com/mxcl/homebrew/pull/13191
Then:
brew install boost
brew install swig
brew install librets
The important artifacts will be located at:
./versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1/librets.rb
./versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.3.0/librets_native.bundle
mv the freshly built build/swig/ruby/librets_native.bundle to /lib inside gem
mv project/swig/ruby/librets.rb to /lib inside gem
## Build for Heroku Cedar:
Note the following specs for Heroku Cedar dynos --
~ $ arch
x86_64
~ $ cat /etc/issue
Ubuntu 10.04 LTS \n \l
~ $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
~ $ cat /etc/debian_version
squeeze/sid
~ $ uname -a
Linux 513cb734-16db-4a04-b6ab-aaf5e9f573ef 2.6.32-343-ec2 #45+lp929941v1 SMP Tue Feb 21 14:07:44 UTC 2012 x86_64 GNU/Linux
To build the librets_native.so binary, we require vulcan 0.8.0 from https://github.com/fredngo/vulcan
or > 0.8.0 from http://github.com/heroku/vulcan (with fredngo's patch). Check to see if this
pull request has been honored and released -- https://github.com/heroku/vulcan/pull/26
Need to have access to the rew-development-support.s3.amazonaws.com/librets-gem S3 bucket --
look how it is used in script/build_librets.rb (search for tarball_server)
Read, and then run the script/build_librets.rb
move the freshly built librets_native.so to /lib inside gem
mv project/swig/ruby/librets.rb to /lib inside gem