File tree Expand file tree Collapse file tree 1 file changed +0
-47
lines changed Expand file tree Collapse file tree 1 file changed +0
-47
lines changed Original file line number Diff line number Diff line change 33OCaml bindings to
44[ Hdr_histogram_c] ( https://github.com/HdrHistogram/HdrHistogram_c ) .
55
6- ## Hdr_histogram_c
7-
8- The C port of [ HdrHistogram] ( http://hdrhistogram.org/ ) ,
9- [ Hdr_histogram_c] ( https://github.com/HdrHistogram/HdrHistogram_c ) , is a
10- pre-requisite for this library. Here are the steps to install HDR histogram C
11- library:
12-
13- ``` bash
14- $ git clone https://github.com/HdrHistogram/HdrHistogram_c
15- $ mkdir _build
16- $ cd _build
17- $ cmake ..
18- $ make
19- $ make install
20- ```
21-
226## Installation
237
248Install ` hdr_histogram ` :
@@ -28,34 +12,3 @@ $ git clone https://github.com/kayceesrk/hdr_histogram_ocaml
2812$ cd hdr_histogram_ocaml
2913$ opam pin add .
3014```
31-
32- ## macOS Monterey notes
33-
34- On macOS Monterey 12.2.1, the library is installed in ` /usr/local ` . If the C
35- compiler is unable to find the header file ` hdr/hdr_histogram.h ` , then include
36- the following path in ` C_INCLUDE_PATH ` .
37-
38- ``` bash
39- $ export C_INCLUDE_PATH=$C_INCLUDE_PATH :/usr/local/include
40- ```
41-
42- While running programs linked with ` hdr_histogram ` , if you see the error
43-
44- ``` bash
45- symbol not found in flat namespace ' _hdr_close'
46- ```
47-
48- then you will need to include the library explicitly using
49- ` DYLD_INSERT_LIBRARIES ` . For example:
50-
51- ``` bash
52- $ utop
53- utop # #require "hdr_histogram";;
54- Cannot load required shared library dllhdr_histogram_stubs.
55- Reason: /Users/kc/.opam/5.0.0~alpha0/lib/stublibs/dllhdr_histogram_stubs.so: dlopen(/Users/kc/.opam/5.0.0~alpha0/lib/stublibs/dllhdr_histogram_stubs.so, 0x000A): symbol not found in flat namespace ' _hdr_close' .
56- utop #
57- ^d
58- $ DYLD_INSERT_LIBRARIES=/usr/local/lib/libhdr_histogram.6.1.1.dylib utop
59- utop # #require "hdr_histogram";;
60- utop #
61- ```
You can’t perform that action at this time.
0 commit comments