Skip to content

Commit 60e31a5

Browse files
committed
updated install from source instructions for mac
1 parent edc83f8 commit 60e31a5

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

docs/install.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,32 @@ See the [homebrew formula](https://formulae.brew.sh/formula/ta-lib) for the late
5858

5959
### macOS Build from Source
6060

61-
TODO
61+
Ensure you have the required dependencies: `brew install automake && brew install libtool`
62+
63+
1. **Download** latest [ta-lib-0.6.2-src.tar.gz](https://github.com/ta-lib/ta-lib/releases/download/v0.6.2/ta-lib-0.6.2-src.tar.gz) (or, alternatively, clone down [https://github.com/ta-lib/ta-lib/](https://github.com/ta-lib/ta-lib/) and checkout the main branch)
64+
65+
2. **Extract the Tarball** if you downloaded the source manually:
66+
```bash
67+
tar -xzf ta-lib-0.6.2-src.tar.gz
68+
cd ta-lib-0.6.2
69+
```
70+
71+
3. **Build and Install**:
72+
```bash
73+
chmod +x autogen.sh # ensure the permissions are set to generate the configure file
74+
./autogen.sh # generate the configure file
75+
./configure
76+
make
77+
sudo make install
78+
```
79+
80+
Follow the same procedure for an update (the older version is overwritten, no need to uninstall).
81+
82+
If you choose to uninstall do:
83+
```bash
84+
sudo make uninstall
85+
```
86+
6287

6388
## Linux
6489

@@ -90,9 +115,9 @@ Recommended for all debian-based distributions (e.g. Ubuntu, Mint...)
90115

91116
### Linux Build from Source
92117

93-
1. **Download** latest [ta-lib-0.6.2-src.tar.gz](https://github.com/ta-lib/ta-lib/releases/download/v0.6.2/ta-lib-0.6.2-src.tar.gz)
118+
1. **Download** latest [ta-lib-0.6.2-src.tar.gz](https://github.com/ta-lib/ta-lib/releases/download/v0.6.2/ta-lib-0.6.2-src.tar.gz) (or, alternatively, clone down [https://github.com/ta-lib/ta-lib/](https://github.com/ta-lib/ta-lib/) and checkout the main branch)
94119

95-
2. **Extract the Tarball**:
120+
2. **Extract the Tarball** if you downloaded the source manually:
96121
```bash
97122
tar -xzf ta-lib-0.6.2-src.tar.gz
98123
cd ta-lib-0.6.2

0 commit comments

Comments
 (0)