Skip to content

Commit af4579f

Browse files
Included MacPorts commands
Included solution to build correctly telegram-cli if using MacPorts on OS X. Details: #237 (comment)
1 parent 442f091 commit af4579f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ Then,
6161

6262
#### Mac OS X
6363

64-
The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually, e.g. using [Homebrew](http://brew.sh/).
64+
The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually.
65+
66+
If using [Homebrew](http://brew.sh/):
6567

6668
brew install libconfig
6769
brew install readline
@@ -72,6 +74,14 @@ The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/rea
7274

7375
Thanks to [@jfontan](https://github.com/vysheng/tg/issues/3#issuecomment-28293731) for this solution.
7476

77+
If using [MacPorts](https://www.macports.org):
78+
79+
sudo port install libconfig-hr
80+
sudo port install readline
81+
sudo port install lua51
82+
export CFLAGS="-I/usr/local/include -I/opt/local/include"
83+
export LDFLAGS="-L/usr/local/lib -L/opt/local/lib/"
84+
./configure && make
7585

7686
Install these ports:
7787

0 commit comments

Comments
 (0)